资源列表
tree
- 二叉树根结点到某点路径,算法简单清晰,方便acm同学-Binary tree root to a certain point on the path, the algorithm is simple and clear, easy acm students
stack1
- 栈的链式存储结构与操作,栈的基本操作,可以ac过-The basic structure and operation of the chain store operations, stack stack can be ac over
stack2
- 栈的顺序存储结构与操作,简单的算法,清晰,可以ac过-The stack order of the storage structure and operation, a simple algorithm, clear, too can ac
ds_3_5
- 本程序定义了一个wordstack类,可以储存字符串。 在pop字符串时候能够正确pop。 先将文件进行分析,对需要压入堆栈的字符串压入堆栈,然后进行判断。 可更改第20行中的test.txt为test2.txt和text3.txt测试其他结果-The program defines a wordstack class, you can store strings. In the pop strings when correctly pop. First file for an
ds_6_8
- 数据结构优先级序列 Priority sequence data structure-Priority sequence data structures Priority sequence data structure
ds_5_8
- 此处可输入以下树来进行调试。 构建的树为 1 / | 2 3 4 / | \ 5 6 7 B | / 8 9 A 前序遍历:1 2 5 6 8 7 9 A 3 4 B 后序遍历:5 8 6 9 A 7 2 3 B 4 1 层次遍历:1 2 3 4 5 6 7 B 8 9 A-Here you can enter the following tree for debugging. Construction of the tree 1/| \ 2 3 4/|
ds_5_3
- 生成二叉树 按照普通的二叉树输入方法进行输入,空节点还是用@表示。 例如输入以下这棵树: A / B C / D E / F G 输入根节点:A 输入A的两个儿子(@表示空节点):BC 输入B的两个儿子(@表示空节点):@@ 输入C的两个儿子(@表示空节点):DE 输入D的两个儿子(@表示空节点):FG 输入E的两个儿子(@表示空节点):@@ 输入F的两个儿子(@表示空节点):@@ 输入G的两个儿子(@表示空节点):-Generat
ds_2_9
- 本程序没有使用类,事实上将下面的函数封装到类中可以实现一样的功能。 方便起见,直接在main函数中写好这些程序。 使用了系统自带的list类。 本程序没有进行错误的捕捉与处理,例如在没有open的情况下执行其他命令也没有报错。 执行帮助: 运行文件后输入open打开文件。 输入list,按照提示操作可以查看文件。 输入del,按照提示操作删除某些字符。 输入ins,按照提示操作插入某些字符。 输入quit,保存并退出。-The program
ds_15_2
- 其中已经包含测试数据,find函数为书中自带,find2函数为新写的非递归函数。-Which already contains the test data, find the function of the book comes, find2 function write new non-recursive functions.
tanxinwenti
- 各种贪心策略情况下的背包问题的算法并实现;其中:量度标准分别取:效益增量P、物品重量w、P/w比值-Various greedy strategy in case the knapsack problem and implement algorithms wherein: a measure were taken: the incremental benefits of P, articles weight w, P/w ratio
infix
- 中缀表达式转后缀表达式并提供一位数的计算-infix to posfix
ysf
- C语言实现约瑟夫环通过总人数和最大报数值找到幸存者-ysf loop