资源列表
3_2
- 主元素 线性选择算法主元素的判定(分治策略) 设T[0:n-1]是n个元素的数组,如果其中某个元素x在整个数组中的出现次数超过n/2,则称x为数组T的主元素。 请设计一个分治算法,判断数组T={1,2,2,2,3,4,3,2,2,4,2,2,6,7,2,2}中是否存在主元素。 -main character
summary-of-data-structures
- 找工作时总结的数据结构常考的算法,找工作的朋友可以-Summary data structures often test algorithm to find a job, looking for friends can see
josephus
- C++约瑟夫问题采取链表实现任意输出 链表实现-josephus problems
kuohao
- 括号匹配。对C语言程序中必须成对出现的符号如“()”、“[]”、“{}”等进行配对检测。-Matching parenthesis. C language program must be paired with symbols such as "()" "[]", "{}" pair detection.
guibing
- 归并排序算法,可以为数据结构初学者提供参考-sorting algorithm,as reference for junior learners in data structure
1
- 任意16以内的数制转换用栈实现vc上编程-number change
chapter7tree
- c++描述的树及二叉树知识的讲解。包括树的遍历及哈弗曼树的内容。-C++ descr iption of the tree and binary tree of knowledge to explain. Including the contents of the tree traversal and Ha Fuman tree.
a
- 建一个表示雇员信息的employee类,其中包含数据成员name、empNo和salary,分别表示雇员的姓名、编号和月薪。再从employee类派生出3个类worker、technician和salesman,分别代表普通工人、科研人员、销售人员。三个类中分别包含数据成员productNum、workHours和monthlysales,分别代表工人每月生产产品的数量、科研人员每月工作的时数和销售人员每月的销售额。要求各类中都包含成员函数pay,用来计算雇员的月薪,并假定: 普通工人的月薪
javasuanfa
- 最短路径算法,(有向)带权图的单源点最短路径算法-Shortest path algorithm,The right diagram) with a single-source shortest path algorithm
11
- 对于一个连通图G,请采用深度优先搜索的方法,识别出该连通图的所有关节点。如下图所示。 输入:首先输入连通图G的结点个数n、边的个数m以及搜索的起始结点号,然后输入各边(u,v); 输出:首先输出DFN和LOW数组的值,然后输出所有关节点。-For a connected graph G, use depth first search method, identify the connected graph all key points. As below. Input: first
calculator
- 用C语言通过堆栈算法实现的一个简单的计算器.可是实现四则运算。-a calculator
RF
- RF算法属于多模式匹配算法,可以处理常见的模式匹配中遇到的问题。-The RF algorithm is a multi-pattern matching algorithm that can handle the problems encountered in the common pattern matching.
