-
实现堆栈先入后出的功能
堆栈是一种执行“先入后出”算法的存储器。数据一个一个顺序的存入(也就是压入——push)存储区中。有一个地址指针总是指向最后一个压入堆栈的数据所在的数据单元,存放这个地址的指针的寄存器叫做堆栈指示器。开始放入数据的单元叫做“栈底”,最后放入的数据的单元叫做“栈顶”。数据一个一个地存入,这个过程叫做“压栈”。在压栈的过程中,每有一个数据压入堆栈,就放在和前一个单元相连的后面的一个单元中,堆栈指示器中的地址自动加1。读取这些数据时,按照堆栈指示器中的地址读取数据,堆栈指示器的地址数自动减1,这个过程叫做“弹出——pop”。如此,就可以实现了“先入后出”的原则。
- 2022-02-14 16:34:28下载
- 积分:1
-
二叉树与二叉链表
假设以如下说明的三元组 (F、C、L/R) 序列输入一棵二叉树的诸边(其中 F 表示双亲结点的标识,C 表示孩子结点标识,L/R 表示 C 为 F 的左孩子或右孩子),且在输入的三元组序列中,C 是按层次顺序出现的。设结点的标识是字符类型。F=‘^’时 C 为根结点标识,若 C 亦为‘^’,则表示输入结束。试编写算法,由输入的三元组序列建立二叉树的二叉链表,并以中序序列输出。^AL ABL ACR BDL CEL CFR DGR FHL ^^L -Assuming the following description of the triple (F, C, L/R) sequence of a binary tree of all the input side (where F that identifies the parent node, C, said child node ID, L/R that C is F, left or right child child), and triples in the input sequence, C is the emergence of a hierarchical order. Node identity is established character types. F = " ^" C for the root identity when, if C is also a " ^" , then enter the end. Test preparation algorithm, the input sequence of triples binary build the binary tree list, and in order to sequence the output
- 2022-09-25 12:40:03下载
- 积分:1
-
是对加快程序运行时间,合理程序类型最有效,最有说服力的一本书...
是对加快程序运行时间,合理程序类型最有效,最有说服力的一本书-Introduction to Algorithm
- 2022-01-31 00:04:19下载
- 积分:1
-
这是一个学生数据库管理的小程序,本人乃学生,刚学习数据库编程,做了个这个,献丑了...
这是一个学生数据库管理的小程序,本人乃学生,刚学习数据库编程,做了个这个,献丑了-This is a small student database management procedures, it is my students, just to learn database programming, had to do this, show one
- 2022-06-15 11:39:13下载
- 积分:1
-
采用EVEN方法实现排列
生成{1,2,3,4,……n}的全排列,每个排列只出现一次...
采用EVEN方法实现排列
生成{1,2,3,4,……n}的全排列,每个排列只出现一次-EVEN method used to generate array (1,2,3,4, ... ... n) of the entire array, each with only one
- 2022-08-22 23:54:17下载
- 积分:1
-
A very short version of expression of evaluation, be builted using the principle...
很短的表达式求值,利用了编译原理里面的只是构建的-A very short version of expression of evaluation, be builted using the principle of the compiler.
- 2022-02-02 07:49:58下载
- 积分:1
-
一个解码的类,常用在条形码的解码中,是老外写的比较实用...
一个解码的类,常用在条形码的解码中,是老外写的比较实用-a decoder category, commonly used in bar code decoding, the foreigner is more practical writing
- 2022-01-25 19:50:48下载
- 积分:1
-
c language using the six methods of sorting operations, thus comparing the chara...
c语言编写,利用六种方法进行排序运算,以此对比各种排序方法的特点,包含源程序和课程设计报告。-c language using the six methods of sorting operations, thus comparing the characteristics of a variety of sorting methods, including source code and curriculum design report.
- 2023-02-17 23:20:03下载
- 积分:1
-
-
- 2023-03-02 05:00:03下载
- 积分:1
-
.Net显示了友好的人机界面,以及非常少量的原代码就能够完成所要的功能...
.Net显示了友好的人机界面,以及非常少量的原代码就能够完成所要的功能-. Net shows the friendly human-machine interface, as well as a very small amount of the original code to be able to complete the function of
- 2023-03-20 03:20:04下载
- 积分:1