-
joseph
用链表解决约瑟夫问题。
约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。
其中包括一个实验报告,介绍了编程思路和输出结果截图。(List to resolve Joseph. Josephus is the application of a mathematical problem: Given n individuals (numbered 1, 2, 3, ... n, respectively) sitting around a round table around. From number k people began to count off the number to m the man out of the line his next person and from a number off, the man was out of the line number to m so regularly repeated down until roundtable around of the people all of the columns. Including a lab report describes the programming ideas and output screenshots.)
- 2012-08-27 22:37:52下载
- 积分:1
-
sy1.cpp
实验内容:
建立一个包含图书(书号,书名,定价)信息的的链表,并具有如下功能:
(1) 根据指定图书个数,逐个输入图书信息;
(2) 根据书名进行查找,返回此书的书号和定价;
(3) 根据指定的位置可返回相应的图书信息(书号,书名,定价);
(4) 给定一个图书信息,插入到表中指定的位置;
(5) 删除指定位置的图书记录;
(6) 统计表中图书个数。
(It is a good c++.)
- 2012-10-26 15:23:15下载
- 积分:1
-
touziwenti
1. 熟悉动态规划的使用方法
2. 分析投资问题的最优子结构
3. 用动态规划求解投资问题
求解总投资额为m,共有n个项目,Gi(x)为向第i项工程投资费用为x时的收益,如何分配资源才能获得最大利润。
(1. Familiar with dynamic programming using method 2. Analysis of the optimal sub-structure of investment 3 investment using dynamic programming to solve a total investment of $ m, a total of n items, Gi (x) for the project to the investment costs of the i when the income of x, how to allocate resources in order to maximize profits.)
- 2011-07-03 22:41:07下载
- 积分:1
-
1
说明: 贪婪算法的简单描述 不过没做完 只是想下个程序 用用。。。。
(greed math)
- 2012-04-26 19:56:56下载
- 积分:1
-
约瑟夫环的循环链表实现
约瑟夫环的循环链表实现,这个程序比较完整,有需要做试验的请速速下载。(Josephus cycle Chain achieved, the procedure is complete, the pilot needs to be done urgently requested to download.)
- 2005-07-03 19:38:38下载
- 积分:1
-
0-1bag
经典的0-1背包问题,程序可以自动输入并且有注释(Classical 0-1 knapsack problem, the program can automatically entered and annotated)
- 2014-01-31 08:54:38下载
- 积分:1
-
shuxue
MATLAB queen常见的来到过程有定长输入、泊松(Poisson)输入、埃尔朗(A. K. Erlang)输入等(MATLAB queen)
- 2009-09-12 16:40:38下载
- 积分:1
-
432
数据结构的习题和解答,特别希望我能上传上去啊(data structure of the questions and answers, and I especially hope that I can upload up ah )
- 2007-06-02 00:20:48下载
- 积分:1
-
QuickSort
改进的基于c++的快速排序算法排序算法大体可分为两种:
一种是比较排序,时间复杂度O(nlogn) ~ O(n^2),主要有:冒泡排序,选择排序,插入排序,归并排序,堆排序,快速排序等。
另一种是非比较排序,时间复杂度可以达到O(n),主要有:计数排序,基数排序,桶排序等。(Improved fast sorting algorithm based on C ++)
- 2018-01-19 15:12:55下载
- 积分:1
-
threads
Nachos操作系统 修改线程的数据结构增加线程ID和用户ID(Add ThreadId and UserID for Nachos)
- 2014-03-08 20:47:41下载
- 积分:1