-
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n和k个加油站位置,编程计算最少...
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n和k个加油站位置,编程计算最少加油次数。并证明算法能产生一个最优解-Fill up the car after driving an n km. There are a number of gas stations journey. Design an efficient algorithm that at which stations should stop to refuel along the way so that the least number of refueling. For a given n and k-station location, the calculation program for at least the number of refueling. And to prove that the algorithm can produce an optimal solution
- 2023-08-07 06:10:03下载
- 积分:1
-
directly through ODBC read and write Excel document
直接通过ODBC读写Excel表格文件-directly through ODBC read and write Excel document
- 2022-06-17 16:00:27下载
- 积分:1
-
数据库课程设计,设计一个订户订阅报刊的应用系统
数据库课程设计,设计一个订户订阅报刊的应用系统-Database of curriculum design, the design of a subscriber subscriptions to newspapers and magazines of the application system
- 2022-01-21 05:03:03下载
- 积分:1
-
Written in C language string handling methods based on the data structure prepar...
C 语言写的字符串处理方法 依据数据结构的方法编写的关于串处理的各个函数-Written in C language string handling methods based on the data structure prepared by the various string handling functions
- 2022-08-15 07:41:41下载
- 积分:1
-
哈夫曼编码,实现了哈夫曼编码中的编码,译码,以及打印的功能....
哈夫曼编码,实现了哈夫曼编码中的编码,译码,以及打印的功能.-Huffman coding, achieving Huffman coding of encoding, decoding, and printing functions.
- 2022-01-25 23:07:03下载
- 积分:1
-
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最...
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最厉害的一名海盗提出分配方案,然后所有的海盗(包
括提出方案者本人)就此方案进行表决。如果50%或更多的海盗赞同此方案,此方
案就获得通过并据此分配战利品。否则提出方案的海盗将被扔到海里,然后下提名
最厉害的海盗又重复上述过程-10 pirates seize a cache of 100 gold, and plan to divide up these spoils of war. This is the democracy of some pirates (of course it was their own unique democracy), their habits are based on the following manner allocation : one of the most powerful pirate proposed distribution plan, and then all the pirates (including the proposal himself) on this program for a vote. If 50% or more of the pirates agreed to this program, this program was adopted and on the allocation of spoils of war. Otherwise, the proposals will be pirates thrown into the sea, and then nominate the most serious piracy repeated this process
- 2023-06-24 15:35:03下载
- 积分:1
-
遗传算法C
很好用的c
注:前两个文件存储为m文件并放在工作目录下,运行结果为
p =
0.0000 -0.0000 0.0055
大家可以直接绘出f(x)的图形来大概看看f(x)的最值是多少,也可是使用优化函数来验证。matlab命令行执行命令:
fplot("x+10*sin(5*x)+7*cos(4*x)",[0,9])
evalops是传递给适应度函数的参数,opts是二进制编码的精度,termops是选择maxGenTerm结束函数时传递个maxGenTerm的参数,即遗传代数。xoverops是传递给交叉函数的参数。mutops是传递给变异函数的参数。
- 2023-05-18 06:50:04下载
- 积分:1
-
数据结构银行模拟指导
数据结构银行模拟指导-simulation data structure to guide banks
- 2023-07-29 12:00:03下载
- 积分:1
-
十字链表和求鞍点的程序
十字链表和求鞍点的程序-Cross and saddle point for the procedure
- 2023-09-03 17:35:04下载
- 积分:1
-
The document completed Kruskal algorithm. This document consists of three catego...
本文件主要完成Kruskal算法。本文件包括三个类,分别是顶点类、边类和Kruskal类。-The document completed Kruskal algorithm. This document consists of three categories, namely category vertex, edge type and Kruskal category.
- 2022-05-23 10:24:28下载
- 积分:1