资源列表
q
- Joseph环 编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个仍开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序-Joseph
CZS
- 数据结构的C语言编程——长整数四则运算的源程序代码-The C programming language data structure- a long integer arithmetic of the source code
Huffmantree
- 赫夫曼树: 按先序输入二叉树 数的结点是: 输入赫夫曼树的mm个权值: HuffmanCoding(HT,HC,&HT[mm].weight,mm) printf(HC,mm) -Huffman tree: sequence input by the first node is a binary number: Enter a Huffman tree mm Weight: HuffmanCoding (HT, HC, & HT [mm]. Weight, mm)
Hashtable
- 哈希表: HashTable H int s,a,n,w,i,q,t g=1 cout<<"输入元素个数n:\n" cin>>n InitList_H(H) for(i=0 i<16 i++) H.elem[i]=10000 for(i=0 i<n i++) {cout<<"输入你要输入的n个数:\n" cin>>s t=1 H.count++ if(H.e
triangle
- 给定一个由n行数字组成的数字三角形如下图所示。 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 试设计一个算法,计算出从三角形 的顶至底的一条路径,使该路径经过的数字总和最大。-Given an n-line numbers from the number of triangles as shown below. 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 trial design an algor
diaodu
- 2、 程序中用一个栈形象的表示为车厢的调度站。演示程序以用户和计算机的对话方式执行,即在计算机终端上显示“提示信息”之后,由用户在键盘上输入演示程序中规定的命令;相应的输入数据和运算结果显示在其后。程序的输入为整形数据,并且要在1—20之间,若超出此范围,会显示“输入错误”的提示信息。-2, the program that used the image of a stack for the car dispatch station. Demo program to computer users
jisuanqi
- 1. 演示程序以用户和计算机的对话方式执行,即在计算机终端上显示“提示信息”之后,由用户在键盘上输入演示程序中规定的运算命令;相应的输入数据和运算结果显示在其后。-1. Demo user and computer dialogue manner, that is displayed on the computer terminal " reminder" after, by the user at the keyboard inputs illustrate procedur
mowangyuyan
- 在这两种形式中,从左到右均表示解释。用下述两条具体规则和上述规则形式实现。设大写字母表示魔王语言的词汇;小写字母表示人的语言词汇;希腊字母表示可以用大写字母或小写字母代换的变量。魔王语言可含人的词汇。-In both forms, from left to right are said to explain. Rules and with the following two specific forms of realization of the above rules. Located in
Park
- 这是长安大学的一个实习作业,是对链表、队列、堆栈的联合应用。-This is an internship job Chang' an University, is a linked list, queue, stack combination.
spaceList
- 这是长安大学的一个教学程序,是关于空间链表的应用,相当有水平~-This is a teaching program of Chang' an University, is on the list of applications of space, quite the level of ~
Unilaterlism
- 这是本人写的一个双向链表的代码,水平有限,大家互相指导~~谢谢!-This is a doubly linked list, I write the code, is limited, we guide each other ~ ~ Thank you!
Josephus
- 约瑟夫问题,这是用VC环境实现的一个数据结构经典问题-Joseph, and this is a VC environment data structure to achieve the classic problem
