文件名称:33
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2.3mb
- 下载次数:
- 0次
- 提 供 者:
- we***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1、设单链表中存放着n个字符,设计算法,判断该字符串中是否有中心对称关系。例如:xyzzyx、xyzyx都算是中心对称的字符串。
2、设计算法判断一个算术表达式的圆括号是否配对。(提示:对表达式进行扫描,遇‘(’进栈,遇‘)’退掉栈顶的‘(’,表达式被扫描完毕,栈为空)
3、假设以带头结点的循环链表表示队列,并只设一个指针指向队尾,编写相应的置队空、入队和出队算法。
-Set single linked list storage n characters, design algorithm determines whether the string centrosymmetric relationship. In example: xyzzyx, xyzyx be considered the centrosymmetric string. 2, the design algorithm to determine an arithmetic expression in parentheses is paired. (Hint: scan the expression, in case ' (' into the stack, in case ' )' drained away the top of the stack ' (' expression is scanning is completed, the stack is empty), assumed to take the lead in the circular linked list nodes queue, and allowed only a pointer to the tail, the preparation of the home team empty, enqueue and dequeue algorithm.
2、设计算法判断一个算术表达式的圆括号是否配对。(提示:对表达式进行扫描,遇‘(’进栈,遇‘)’退掉栈顶的‘(’,表达式被扫描完毕,栈为空)
3、假设以带头结点的循环链表表示队列,并只设一个指针指向队尾,编写相应的置队空、入队和出队算法。
-Set single linked list storage n characters, design algorithm determines whether the string centrosymmetric relationship. In example: xyzzyx, xyzyx be considered the centrosymmetric string. 2, the design algorithm to determine an arithmetic expression in parentheses is paired. (Hint: scan the expression, in case ' (' into the stack, in case ' )' drained away the top of the stack ' (' expression is scanning is completed, the stack is empty), assumed to take the lead in the circular linked list nodes queue, and allowed only a pointer to the tail, the preparation of the home team empty, enqueue and dequeue algorithm.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验4\1
.....\.\Cpp1.cpp
.....\.\Cpp1.dsp
.....\.\Cpp1.dsw
.....\.\Cpp1.ncb
.....\.\Cpp1.opt
.....\.\Cpp1.plg
.....\.\Debug
.....\.\.....\Cpp1.bsc
.....\.\.....\Cpp1.exe
.....\.\.....\Cpp1.ilk
.....\.\.....\Cpp1.obj
.....\.\.....\Cpp1.pch
.....\.\.....\Cpp1.pdb
.....\.\.....\Cpp1.sbr
.....\.\.....\vc60.idb
.....\.\.....\vc60.pdb
.....\2
.....\.\2.cpp
.....\.\2.dsp
.....\.\2.dsw
.....\.\2.ncb
.....\.\2.opt
.....\.\2.plg
.....\.\Debug
.....\.\.....\2.exe
.....\.\.....\2.ilk
.....\.\.....\2.obj
.....\.\.....\2.pch
.....\.\.....\2.pdb
.....\.\.....\vc60.idb
.....\.\.....\vc60.pdb
.....\3
.....\.\Cpp1.cpp
.....\.\Cpp1.dsp
.....\.\Cpp1.dsw
.....\.\Cpp1.ncb
.....\.\Cpp1.opt
.....\.\Cpp1.plg
.....\.\Debug
.....\.\.....\Cpp1.exe
.....\.\.....\Cpp1.ilk
.....\.\.....\Cpp1.obj
.....\.\.....\Cpp1.pch
.....\.\.....\Cpp1.pdb
.....\.\.....\vc60.idb
.....\.\.....\vc60.pdb