-
c#实现voronoi
c#实现voronoi,可以按自己要求自动的生成相应点对应的voronoi,使读者可以更加清楚的了解voronoi和Delaunay三角网,使用户的体验更加的直接。
- 2023-02-06 08:20:03下载
- 积分:1
-
贪心算法解决部分背包问题
本程序研究了贪心算法,并把此算法用于部分背包问题上,基于C语言实现,达到最优解。所谓贪心算法是指,在对问题求解时,总是做出在当前看来是最好的选择。也就是说,不从整体最优上加以考虑,所做出的仅是在某种意义上的局部最优解。贪心算法不是对所有问题都能得到整体最优解,但对范围相当广泛的许多问题他能产生整体最优解或者是整体最优解的近似解。部分背包问题: 给定一个最大载重量为M的卡车和N种食品,有食盐,白糖,大米等。已知第 i 种食品的最多拥有Wi 公斤,其商品价值为Vi元/公斤,编程确定一个装货方案,使得装入卡车中的所有物品总价值最大。
- 2022-01-30 12:45:27下载
- 积分:1
-
素数环: 把从1到10这10个数摆成一个环,要求相邻的两个数的和是一个素数。 〖问题分析〗 这是一道回溯的题目。从1开始,每个空位有9种可能,每种可能加入约束...
素数环: 把从1到10这10个数摆成一个环,要求相邻的两个数的和是一个素数。 〖问题分析〗 这是一道回溯的题目。从1开始,每个空位有9种可能,每种可能加入约束条件即可
1.与前面所有的数不重复
2.与前一个数和为素数(最后一个和第一个也要满足)。 〖算法流程〗 1、数据初始化; 2、递归填数: 判断第J种可能是否合法; A、如果合法:填数;判断是否到达目标(10个已填完): 是,打印结果;不是,递归填下一个; B、如果不合法:选择下一种可能;-Prime Central: 1-10 from 10 the number of put this into a ring, asked the two adjacent numbers and is a prime number. 〗 〖Analysis is a retrospective this topic. From 1 year, 9 out of every space possible, each may be bound by the conditions of accession to 1. And in front of all the number of non-repetition, 2. With a few and for a prime number (the last and the first to meet). 1〗 〖algorithm processes the data to initialize 2, fill in the number of recursion: first to determine the legality of J possible A, if the legitimate: the number of Reclamation to determine whether the target (10 have been completed): Yes, print the results of not, fill in the next recursive B, if not legitimate: a possible alternative
- 2022-03-13 12:39:07下载
- 积分:1
-
循环链表实现约瑟夫环,并对输入错误进行检查和提示。
循环链表实现约瑟夫环,并对输入错误进行检查和提示。-cycle Chain achieve Josephus, and input error check and tips.
- 2023-01-04 20:40:03下载
- 积分:1
-
algoritmo de Dijkstra implementado EN C + +
应用背景EL algoritmo de Dijkstra,tambiéN llamado de algoritmo卡米诺斯MíNiMoS,Es Un algoritmo对位La determinación del Camino Má的联合国Corto墙裙Vértice俄利根Al Resto de洛斯Vértices EN联合国grafo CON比索EN CADA芒。苏“硒refiere一Edsger Dijkstra,谁瞧describióPOR西甲查韦斯EN 1959。香格里拉的想法subyacente恩埃斯algoritmo consiste恩红外王子托多斯洛杉矶大街Má的cortos阙Parten del Vértice俄利根Y阙llevan一待办事项洛杉矶DEMáS Vértices;当SE obtiene El Camino Mádesde EL的战争Vértice俄利根,Al Resto Vértices阙埃尔grafo组成,ELalgoritmo SE detiene。埃尔algoritmo ES UNA especialización de la Búsqueda德肋均匀,Y科莫塔尔,没有funciona EN grafos CON阿里斯塔斯de介绍negativo(Al elegir SIEMPRE CON EL不是DISTANCIA弟弟,可以在现在quedar de la Búsqueda诺德斯阙恩公关óximas iteracionesbajaríEL肋一般del Camino al Pasar Por Una芒CON肋negativo)。关键技术dirigido ponderado teniendo联合国grafo N诺德斯没有aislados,海X EL实际工作,联合国矢量D德多摩ñO N和消费á最终del algoritmo拉斯维加斯distancias从x Al Resto de los诺德斯。所有的inicializar拉斯维加斯distancias EN D反对联合国英勇Infinito雷拉蒂沃鸦鹊儿desconocidas原则,exceptuando LA的X阙本身必须colocar EN 0 debido一阙LA DISTANCIA X X S
- 2022-06-16 23:42:21下载
- 积分:1
-
Differential Evolution Strategy C++ source code. The algorithm is to find an opt...
微分进化策略的C++源代码。该算法是寻找一个集合中最优个体的一种遗传算法。-Differential Evolution Strategy C++ source code. The algorithm is to find an optimal set of individuals of a genetic algorithm.
- 2022-02-09 11:57:41下载
- 积分:1
-
DES算法实现
最精简的DES算法实现,让你能快速的了解DES的用法。
- 2023-06-08 20:25:03下载
- 积分:1
-
最小集合算法
最小集合算法 采用类似贪婪算法 运行速度快
- 2022-03-09 21:21:36下载
- 积分:1
-
插值算法,介绍了10种常用插值算法,插值算法, 介绍了10种常用插值算法...
插值算法,介绍了10种常用插值算法,插值算法, 介绍了10种常用插值算法-Interpolation algorithm, introduced 10 kinds of commonly used interpolation algorithm, interpolation algorithm, introduced 10 kinds of commonly used interpolation algorithm
- 2022-02-10 06:05:05下载
- 积分:1
-
数值算法
各种数学算法的实现,里面包括矩阵的运算,方差,以及一些其他的常用数学算法,C#编写。
- 2022-01-30 10:36:45下载
- 积分:1