搜索资源列表
Cpp1
- 用户用main表示主函数,每个c程序必有一个main函数。
Cpp1
- 约瑟夫环问题:设有编号为1,2,3……n的n个人顺时针方向围坐一圈,每人有一密码(正整数)。开始时给出一报数上限m,从编号为1的人开始报数,报m的人出列;以后将出列者的密码作为新的m,从顺时针方向紧挨着他的下一个人开始报数……直至所有人出列。-Joseph Central question: has numbered 1,2,3 ... ... n of n individuals clockwise around a circle, each have a password (positive
Cpp1
- 二叉树的链式存储,以及使用链式存储统计叶子结点个数-Binary tree chain store, chain store statistics and the use of the number of leaf nodes
Cpp1
- 单链表的实现,一条字符串,实现插入,删除,合并-Single linked list
Cpp1
- 顺序表就地逆置,二叉数叶子节点个数帝圭算法-Reverse the order form on the spot home
Cpp1
- 十个数交换位置,如输入5,则把后5个数放到前5个数位置-ten numbers you can alter the position of th different numbers
Cpp1
- 编写背包问题的动态规划求解代码。 背包问题 ,背包容量为W,物品个数为n,随机产生n个物品的体积(物品的体积不可大于W)与价值,求解该实例的最优解。 -Write knapsack problem dynamic Solver code. Knapsack problem, knapsack capacity of W, the number of items is n, randomly generated volume of n items (bulky items ca
Cpp1
- 遗传算法TSP,旅行商问题,1. 假设有一个旅行商人要拜访n个城市,他必须选择所要走的路径,路径的限制是每个城市只能拜访一次,而且最后要回到原来出发的城市。路径的选择目标是要求所经过的路径路程尽量短。-Genetic algorithm TSP, Traveling Salesman Problem, 1. Suppose you have a traveling businessman to visit n cities, he must choose the path to go, a re