搜索资源列表
重言式判别问题
- 逻辑表达式从终端输入,长度不超过一行。逻辑运算符包括“|”、“&”和“~”,分别表示或、与和非,运算优先程度递增,但可有括号改变,即括号内的运算优先。逻辑变元为大写字母。表达式中任何地方都可以含有多个空格符。 若是重言式或矛盾式,可以只显示“True Forever”或“False Forever”,否则显示“Satisfactible”以及变量名序列,与用户交互。若用户对表达式变元取定一组值,程序就求出并显示逻辑表达式的值。-logic expression from the termin
haffmantree
- 按照data.txt格式输入权值&字符名覆盖原data的内容,就可以使用程序对由这些字符组成的字符串进行编码了,结果将输出至code.txt中-data.txt format with input weights & characters from the original data covering the contents it can be used to process these characters from the string of code and the result
20050708131632_luzhijianr
- 一个单列表的循环例子,可供用户学习&参考,决定可以执行-a single list of examples of the cycle for users learning & reference, the decision can be implemented
avlTree
- avlTree&bst c++实现代码
TranslateCalc
- 实现数据结构中的数学中序表达式转换为后继表达式. 并且运算出后序表达式的结果. 运算符号包括 + - * / & | ! ( ) 加 减 乘 除 与 或 非-Implementation data structure in the math expression in the sequence is converted to a subsequent expression. And after computing the result of the expression sequen
Kruskal
- 克鲁斯卡尔算法思想.cpp int seekedge(EDGE * (&a), int n) void bubble(EDGE * (&a), int size) void searchandjoin(EDGE * (&a1), int k) // a1是图边集头指针,a2是最小生成树边集的头指针,k为所要删的边 void storepicture(EDGE * (&a), int n, VERTEX *b, int m) -Thinking of Kruskal algor
include
- 定义一个栈,并实现栈的基本操作: void Push( const T& x) // bool Pop(T& x) // bool getTop(T& x) const // ostream& operater<<(ostream& os, Stack<T>& s) //overload -The definition of a stack, and to achieve the basic operation of the stack: void P
zz
- 这一算法实现了堆存存储结构的串的置换操作REPLACE(&S,T,V)-This algorithm achieved a stockpiling storage structure of the string replacement operation REPLACE (& S, T, V)
Data_struct_1
- 数据结构课后设计题第一章 ◆1.16② 试写一算法,如果三个整数X,Y和Z 的值不是依次非递增的,则通过交换,令其为 非递增。 要求实现下列函数: void Descend(int &x, int &y, int &z) void Descend(int &x, int &y, int &z) { int temp if(x<=y){temp=x x=y y=temp } if(y<=z){temp=y y=z z
Data_struct_2
- 数据结构课后设计题第二章(2009-06-17 23:19:42)转载标签:数据结构第二章杂谈 分类:编程 ◆2.11② 设顺序表L中的数据元素递增有序。 试写一算法,将x插入到L的适当位置上,并保 持该表的有序性。 要求实现下列函数: void InsertOrderList(SqList &L, ElemType x) 顺序表类型定义如下: typedef struct { ElemType *elem int length
data_struct3
- 数据结构课后设计题第三章 ◆3.17③ 试写一个算法,识别依次读入的一个以@ 为结束符的字符序列是否为形如 序列1&序列2 模式 的字符序列。其中序列1和序列2中都不含字符 & , 且序列2是序列1的逆序列。例如, a+b&b+a 是属该 模式的字符序列,而 1+3&3-1 则不是。 实现下列函数: Status match(char *str) -Data structure design question after class Chapter ◆
Huffmantree
- 赫夫曼树: 按先序输入二叉树 数的结点是: 输入赫夫曼树的mm个权值: HuffmanCoding(HT,HC,&HT[mm].weight,mm) printf(HC,mm) -Huffman tree: sequence input by the first node is a binary number: Enter a Huffman tree mm Weight: HuffmanCoding (HT, HC, & HT [mm]. Weight, mm)
c(list_detial_explanation)
- 长达13页,专门针对C链表的总结,配有全部代码,清晰易懂。-A total of 138 of the C++ Q & A, Questions cover a wide range of rich, which in addition to reference the answer there is the difficulty of each question, cognitive level, is expected to answer time and so on. Not on
Tree
- 1.建立完全二叉树 2.先序非递归遍历二叉树函数 & 先序递归遍历二叉树验证 3.中序非递归遍历二叉树函数 & 中序递归遍历二叉树验证 4.后序非递归遍历二叉树函数 & 后序递归遍历二叉树验证 -1 to establish a fully binary tree 2 first order non-recursive binary tree traversal function preorder recursive traversal of binary tree &
tree_completely
- 二叉树的总结 -构造链式二叉树&查找二叉树中某节点&求深度(高度, 层数)前序,中序, 后序遍历(递归, 和非递归)&求出二叉树所有节点总数-Summary of binary tree- the constructed chain binary tree & Find a node in the binary tree & seek depth (height, number of layers) preorder, inorder, postorder traversal (
To-Miss-Our-Children-Time-DP
- /*hdu4001To Miss Our Children Time DP 每块积木有四个参数a(长),b(宽),c(高),d(属性) d==0 它下面的积木为X a>=X.a b>=X.b d==1 a>=X.a b>=X.b&&(a>X.a||b>X.b) d==2 a>X.a&&b>X.b 所以先按长从小到大 再宽从小到大 属性从大到小排序 f[i]表示以第i个积木为顶的已搭积木的最大高度 */-/* Hdu400
Snooker-Referee
- 解决ZOJ 3426 & HDU 3719 Snooker Referee的问题,实现斯诺克智能裁判的功能。-Solve the problem of ZOJ 3426 & HDU 3719 Snooker Referee snooker intelligent referee function.
yy
- 把在链表中插入语删除节点的操作写成一个函数。 bool insert(Node *&h,int a,int pos) pos(>=0)为0的时候在表头插入,否则在第pos个结点的后面插入。 bool remove(Node *&h,int &a,int pos) -Written as a function of the parenthesis in the linked list delete node operation. bool insert (Node* &
ACMsuanFaDaQuan
- acm算法大全,常用的有代表性的经典题,旅行者预算(动态&&贪心)等等59道题-acm algorithm Guinness, the common representative of the classic title, travelers budget (dynamic & & greedy) 59 questions
SM2&SM3&SM4国密算法C语言实现
- SM2&SM3&SM4国密算法C语言实现,分别有3个算法的pdf文档,以及测试代码(SM encryption algorithm,including test code & docs)
