资源列表
[数据结构常用算法] 2.3
说明:2.3 主元素问题(课本2-9) 问题描述:设T[0:n-1]是n个元素的数组,如果其中某个元素x在整个数组中的出现次数超过n/2,则称x为数组T的主元素。输入数据由文件名为input.txt的文本文件提供。 请设计一个线性时间算法,判断input中的数据是否存在主元素。在实验报告中对算法时间复杂度作出分析。 输入:文件的第1行为数组S中元素个数n;接下来的n 行中,每行有一个自然数。程序运行结束时,将计算结果输出到文件output.txt中。输出文件中包含问题的答案:找不到主元素时<陈星风> 在 2025-06-18 上传 | 大小:7kb | 下载:0
[数据结构常用算法] danlianbiao
说明:本程序为数据结构作业,完成功能为单链表的生成及各项操作。-The procedures for data structure operations, a single list for the completion of the formation and operation.<黄毅骏> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Huge
说明:It contain an implementation for string class and a class for huge numbers. In some practical usage of mathematics, we need to use numbers lager than long int and 64 bit integer numbers, for example we need a number with 100 digits to be multiple or<Behzad Solaymoney> 在 2025-06-18 上传 | 大小:1.65mb | 下载:0
[数据结构常用算法] Data-structures
说明:数据结构-用面向对象方法与C++描述-源程序 清华大学 殷人昆 vc6-Data structures- Object-oriented methods and C++ descr iption- source Tsinghua University, Yan Renkun<杨炎云> 在 2025-06-18 上传 | 大小:1.79mb | 下载:0
[数据结构常用算法] dataLINKES
说明:此程序实现了数据结构中链对的建立,插入,删除,排序等操作。-data reverse establish<liuxing> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] dataStruct
说明:数据结构中的算法实现,能够对一个串中的节点进行插入删除回复排序等工作。-data base<liuxing> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Calculator
说明:数据结构,算术算法。自己写的。比较完善。简单易懂。注释齐全-Arithmetic algorithm data structure. Wrote it myself. Improve.<ali> 在 2025-06-18 上传 | 大小:603kb | 下载:0