-
思想很简单,就是一个循环链表
但要说明的是:我之所以用clist(1)来初始化,主要是我刚开始编的时候没打算解决约瑟夫环,只是想编一个带表头的循环链表...
思想很简单,就是一个循环链表
但要说明的是:我之所以用clist(1)来初始化,主要是我刚开始编的时候没打算解决约瑟夫环,只是想编一个带表头的循环链表,然后我用从这个程序改过来的,所以代码可以进一步优化。-Thinking is very simple, that is, a cycle list but would like to note is: I use clist (1) to initialize, mainly because I had just started when Joseph did not intend to resolve the ring, just want to provision a table with the head circulation list, and then I used to come from this process, so the code can be further optimized.
- 2022-09-15 15:25:03下载
- 积分:1
-
一条供需线的护航程序。他们用最短的时间..
一个关于供求陪送的线路程序。里面用到了最短路径的知识,给初学者参考-one of the lines of supply and demand escort procedures. They use the shortest path of knowledge, reference to beginners
- 2022-06-25 23:31:09下载
- 积分:1
-
ODBC API访问数据库的文章却少之又少。虽然用ODBC访问数据库比较麻烦,但却很灵活,效率高,
ODBC API访问数据库的文章却少之又少。虽然用ODBC访问数据库比较麻烦,但却很灵活,效率高,-ODBC API to access the database of the article are few and far between. Although access to the database using ODBC is too much trouble, but it is very flexible, high efficiency,
- 2022-07-08 05:31:07下载
- 积分:1
-
输入以字符串,依顺序表存储,查找一个元素,删除一个元素...
输入以字符串,依顺序表存储,查找一个元素,删除一个元素-Input to a string, depending on the order of tables to store, find an element, delete an element
- 2022-02-05 12:29:55下载
- 积分:1
-
1.1 算法与程序
1.2 算法与数据结构
1.3 表达算法的抽象机制
1.4 描述算法与算法设计
1.5 算法分析的基本原则
1.6 算法...
1.1 算法与程序
1.2 算法与数据结构
1.3 表达算法的抽象机制
1.4 描述算法与算法设计
1.5 算法分析的基本原则
1.6 算法复杂性分析
- 2022-02-15 08:08:36下载
- 积分:1
-
Data structure of the source code and supporting notes, very complete, very usef...
数据结构的源代码和配套讲义,非常齐全,初学者非常实用。-Data structure of the source code and supporting notes, very complete, very useful for beginners.
- 2023-07-06 18:45:03下载
- 积分:1
-
数据结构课程实验中所编的判断哈夫曼编码.参考可用
数据结构课程实验中所编的判断哈夫曼编码.参考可用-experimental data structure courses, which include the judgment Huffman coding. Reference available
- 2022-05-25 18:23:03下载
- 积分:1
-
建立带表头结点的单链表,打印所有结点的数据域;输入一个值,若某个结点的数据域为该值,则在其后插入另一个新结点,若无此结点,则在表尾插入新结点,然后打印;给一个值...
建立带表头结点的单链表,打印所有结点的数据域;输入一个值,若某个结点的数据域为该值,则在其后插入另一个新结点,若无此结点,则在表尾插入新结点,然后打印;给一个值,删除结点的数据域是该值的所有结点,然后打印。(表生成时可用前插法或后插法)-table with the establishment of the first node of a single linked list, print all nodes of the data domain; An input value, If a node"s data fields for the values, and subsequently inserted in a new node, in the absence of such nodes, at the end of the insertion of a new form nodes, then Print; to a value of the node to delete data domain is the value of all the nodes, then Print. (Table Generation available houses or after interpolation)
- 2023-01-23 20:10:04下载
- 积分:1
-
哈弗曼编码/译码系统
设计一个哈夫曼编码、译码系统。对一个ASCII编码的文本文件中的字符进行哈夫曼编码,生成编码文件;反过来,可将编码文件译码还原为一个文本文件。1.初始化。任意读入一个ASCII编码的文件,统计数据,建立哈夫曼树。2.编码。利用已建立的哈夫曼树给出每个字符的哈夫曼编码。3.图形化输出哈夫曼树中各结点以及哈夫曼编码。4.译码。利用已建立的哈夫曼树对输入文件进行译码并存储为.huf压缩文件。5.反译码。将huf文件译码为ASCII编码的txt文件,与原txt文件进行比较。
- 2022-03-09 20:49:57下载
- 积分:1
-
Bottom
自底向上排序:思想: 将数组的个部分,两两有序数组进行合并
算法平均时间复杂度: O(nlogn)
-Bottom-up sequencing: thinking: The array of parts 22 in an orderly array merge algorithm for the average time complexity: O (nlogn)
- 2022-03-24 22:35:09下载
- 积分:1