搜索资源列表
编译原理及实践
- 目 录 译者序 前言 第1章 概论 1 1.1 为什么要用编译器 2 1.2 与编译器相关的程序 3 1.3 翻译步骤 5 1.4 编译器中的主要数据结构 8 1.5 编译器结构中的其他问题 10 1.6 &
Tree+Postorder
- 层次输入建立二叉树并后序遍历,三叉链式存储,递归遍历-import levels and the establishment of a binary tree after preorder, trigeminal chain store, recursive traversal
0420
- 1.程序名称:表达式求值 要求: *以字符序列的形式从键盘输入不含变量的整数算术四则表达式(可以有小括号); *检查表达式的正确性 *将其转换为二叉树的存储表示; *通过后序遍历得到其后缀表达式序列,输出该序列; *利用后缀表达式进行求值运算,输出求值结果
实习五 二叉树的存储与遍历
- 二叉树的存储与遍历-binary tree traversal and storage
1
- 利用哈夫曼树的构造原理,可以对字符进行编码,并且可以对已 经编译好的代码进行译码,并且包括进行显示输出和文件保存,文件存储。
er
- 遍历二叉树(*) 任务:按先序次序输入二叉树中结点的值(一个字符),`0`表示空树,生成二叉树的二叉链表存储结构,然后按中序顺序遍历二叉树。
HaffmanTree.h
- 哈夫曼编码的算法实现(数据结构c++语言描述)用仿真指针实现二叉树节点双亲孩子结点存储结构
parser
- 采用递归下降分析法实现C0语言的语法分析器,其中中间表示采用抽象语法树的形式。 程序的输入:词法分析阶段的输出文件 程序的输出:存储了抽象语法树相关信息的XML格式的文件 -Decline in the use of recursive analysis method to achieve C0 language parser, which indicated that the use of intermediate abstract syntax tree form. Proced
Binaryoperation
- 1.创建以二叉链表作存储结构的二叉树; 2.按前序遍历二叉树; 3.按中序遍历二叉树; 4.按后序遍历二叉树; 5.计算二叉树的单枝结点数; 6.按层次遍历二叉树。 -1. Create a list binary tree structure for storage 2. According to pre-order tree traversal 3. According to the binary tree traversal 4. After the tree
cyuyanshishangbianchengbaili
- 第二篇 文件操作 实例24 文件加密(1) 实例25 文件加密(2) 实例26 批处理程序的加密 实例27 给自己的程序加上行号 实例28 文件分割程序 实例29 删除目录树 实例30 显示系统文件表 实例31 显示一个目录的存储内容 实例32 递归读取磁盘文件 实例33 C语言直接读取FoxPro的.DBFYYWR 实例34 用索引文件读取数据项 实例35 加密数据库 第三篇 系统调用 实例36 用C语言内嵌汇编语言实现
Dictory
- 用B-树作为查找存储结构,对中文单词进行哈希,用最长逆向匹配算法进行中文句段分词,实现中文词典以及分词。中文词典规模为十万八千多词汇。分词的正确率在90 以上。-Use the B-tree as storage structure , and hash the Chinese word while storing or searching. Use the longest reverse matching algorithm to split Chinese sentence to word
C
- 主要介绍线性结构,树型结构,图状结构三种逻辑结构元素的存储实现,在此基础上介绍一些典型算法及时,空效率分析.-Introduces the linear structure, tree structure, graph-like structure of three elements of the logical structure of the storage to achieve, on this basis are some typical algorithms in time, spac
erchashu
- 采用二叉链表作为存储结构,完成二叉树的建立、前序、中序、后序和按层遍历的操作,并求出二叉树的高度、所有叶子及树结点总数的算法,输出二叉树的广义表表示-List using the binary storage structures, the establishment of complete binary tree, the former order, in order, the order and by level traversal of the operation, and calcula
Cpp1
- 二叉树的链式存储,以及使用链式存储统计叶子结点个数-Binary tree chain store, chain store statistics and the use of the number of leaf nodes
BiTree
- 建立一棵含有n个结点的二叉树,采用二叉链表存储, 前序(或中序、后序)遍历该二叉树。 -Create a binary tree with n nodes, using a binary linked list storage, pre-order (or sequence order) traversal of the binary tree.
-binary-tree
- 本文介绍了二叉树的定义、性质及存储方式,各种遍历算法。 以及求所有叶子及结点总数。-This article describes the definition, nature and storage of binary tree, various traversal algorithm. And the demand of all the leaves and the total number of nodes.
file-management-experiment
- 操作系统文件管理实验:利用交互式命令实现树型目录结构和文件管理,同时利用位示图表示外存的分配情况,新建文件时分配必要的空间,模拟文件分配表记录文件在外存上的存储方式。了解系统对文件的操作。 在文件中保存目录内容,创建文件或子目录可以用命令行命令:MD、CD、RD、MK(创建文件)、DEL(删除文件)和DIR-Operating system file management experiment: the use of interactive command tree directory st
Bny2
- 基于目录树存储的二叉树模板类定义,基础类,派生类-Binary-tree base define
Main
- 这里我利用LabVIEW的Register变量和分离链地址法实现了一个类似于HashTable的员工信息存储,从而可以实现在限定范围内(5000员工)的快速搜索――复杂度为O(1),另外在存储员工的信息中加上直接下级员工的编号,就可以实现树型人员组织结构的遍历搜索。-Here I use the LabVIEW Register variables and separate chaining address method to achieve a similar HashTable employ
二叉链表
- 一、 实验目的 (一) 掌握二叉树的逻辑结构和二叉链表存储结构; (二) 验证二叉树的二叉存储和遍历及其基本操作的实现; (三) 理解算法与程序的关系,能够将顺序表算法转化为对应程序;(First, the purpose of the experiment (1) master the logical structure of the two tree and the storage structure of the two linked list; (two) verify the