-
一辆汽车加满油后可行驶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
-
工资管理系统
每个员工收到的工资,薪金,与数量的列表。一个完整的系统,他们计算一个员工的工资,打印工资单。你可以配置你的列表中。
- 2023-07-30 18:10:04下载
- 积分:1
-
求解约瑟夫问题。设有n个人围成一个圆圈坐下,对所有围从的人从某个位置开始编号为1,2,3,……,n,从编号为1的人开始报数1,报数依交进行,报数n的人即出列,下...
求解约瑟夫问题。设有n个人围成一个圆圈坐下,对所有围从的人从某个位置开始编号为1,2,3,……,n,从编号为1的人开始报数1,报数依交进行,报数n的人即出列,下一个人从1开始报数,再报数m的人便是第二个出列的人如此重复下去,直到最后一个人出列为止,于是便得到一个出列的顺序,这称之为约瑟夫(Josephu)问题。-solving problems. N individuals have formed a circle to sit down, all right Wai from the start from a position of No. 1, 2, 3, ..., n, for a number of people reported a few, according to several newspaper pay, the newspaper n ie the out, the next person was from the beginning a few , and reported m is the second out of this series continue to repeat until the final out in a series, then get a series out of order, which called Joseph (Josephu) problem.
- 2022-05-21 23:13:13下载
- 积分:1
-
This program use for topological sorting
This program use for topological sorting
- 2022-07-11 19:14:24下载
- 积分:1
-
simpleaccounts
GnuCash是一个免费的会计软件,可以维护您的帐簿
- 2023-07-03 01:20:03下载
- 积分:1
-
语料 chiffres en 纯文学
ch_lettres est une 统一德尔福倒拉转换
des chiffres en 纯文学法文
- 2022-01-26 00:11:16下载
- 积分:1
-
Queen
皇后问题,第2解法! 皇后问题,第2解法!-Queen
- 2022-01-27 20:31:45下载
- 积分:1
-
Marketing Information System
供销信息查询系统-Marketing Information System
- 2022-03-21 19:26:34下载
- 积分:1
-
2.1将n个人围成一圈,m为未进入游戏前的先行码,用来淘汰第一个出 局的人,然后依次给出淘汰者的密码,根据输入的密码来确定下一个淘汰是哪一个,并依次输出被淘汰的...
2.1将n个人围成一圈,m为未进入游戏前的先行码,用来淘汰第一个出 局的人,然后依次给出淘汰者的密码,根据输入的密码来确定下一个淘汰是哪一个,并依次输出被淘汰的人对应的号码。 2.2用单向循环链表实现操作。-2.1 n personal cordons m not yet entered the game before the first yards out for the first out, then eliminated were given the password, the password to determine under which a one-out, and turn out the output of the corresponding number. 2.2 List circle with a one-way operation to achieve.
- 2022-01-26 01:24:55下载
- 积分:1
-
established procedures for the use of binary tree, the source of intron way, the...
建立、使用二叉树的程序,内含源程,是数据结构中必学知识。-established procedures for the use of binary tree, the source of intron way, the data structure is certainly knowledge.
- 2023-06-21 19:55:03下载
- 积分:1