资源列表
[数据结构常用算法] kkk
说明:给定K个单词作为文本的开始。程序每次生成一个单词,其过程为:读取文本中最后的K个单词,并在书中寻找这K个单词连续出现的所有位置,然后从中随机挑选一个位置,并把该位置之后的一个单词加入到文本中。该过程不断重复,直到生成的文本达到最大单词数,或者生成的单词恰好是这本书的最后一个单词。-Given K words as the beginning of the text. Each program generates a word, the process is: read the text in a<燕子> 在 2025-06-19 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Haffmantree
说明:进行哈夫曼树的建立,并且以哈夫曼树的存储形式输出-Huffman tree for the establishment, and to output the Huffman tree storage<刘媛> 在 2025-06-19 上传 | 大小:1kb | 下载:0
[数据结构常用算法] jusephus
说明:编号为1,2,3,。。。,n的n个人围坐在一圆桌旁,每人持有一个正整数密码。从第一个人开始报数,报到一个预先约定的正整数m 时,停止报数,报m 的人退席,下一个人重新从1开始报数,依此重复,直至所有的人都退席。-Numbered 1,2,3,. . . , N of n individuals sitting at a round table, each holding a positive integer code. The number of individuals starting fro<wending> 在 2025-06-19 上传 | 大小:1kb | 下载:0