搜索资源列表
数据结构的C++描述
- 目 录 译者序 前言 第一部分 预备知识 第1章 C++程序设计 1 1.1 引言 1 1.2 函数与参数 2 1.2.1 传值参数 2 1.2.2 模板函数 3 1.2.3 引用参数 3 1.2.4 常量引用参数 4 1.2.5 返回值 4 1.2.6 递归函数 5 1.3 动态存储分配
Datastruct_C 实现顺序表的就地逆置
- Descr iption 试写一算法,实现顺序表的就地逆置,即利用原表的存储空间将线性表(a1,a2,…..an),逆置为( an,an-1, …….a2,a1)。 Input 输入长度n 接下来是n个数 Output 操作后的序列。 Sample Input 7 2 4 1 7 5 3 6 Sample Output 6 3 5 7 1 4
DataStructure_Search
- 1.6.1 顺序表的查找 273 范例1-94 顺序表的查找 273 ∷相关函数:Search_Seq函数 1.6.2 静态树表的查找 276 范例1-95 静态树表的查找 276 ∷相关函数:Search_SOSTree函数 1.6.3 二叉排序树的基本操作 280 范例1-96 二叉排序树的基本操作 280 ∷相关函数:InsertBST函数 1.6.4 平衡二叉树的基本操作 285 范例1-97 平衡二叉树的基本操作 285 ∷相关函数:Sear
6.7.1
- 图的深度和广度优先搜索 1.图采用邻接表的存储结构 2.深度优先搜索图 3.广度优先搜索图-1. Graph using adjacency list of the storage structure 2. Depth-first search Figure 3. Breadth-first search graph
5.6.1
- 1、二叉树的创建和遍历演示 1)从键盘输入二叉树的各结点值,按先序递归方式创建二叉树 2)分别实现先序、中序、后序递归遍历二叉树 3)输出二叉树的按层次遍历序列 4)输出二叉树的中序非递归遍历下的结点访问次序-1, binary tree traversal of the creation and demonstration of 1) from the keyboard input of the binary tree node value, according to firs
6
- 程序功能: 由{4,9,0,1,8,6,3,5,2,7}创一棵二叉树并由括号表示法输出 -Program features: (4,9,0,1,8,6,3,5,2,7) hit by a binary tree representation output by the brackets
7
- 程序功能: 由{4,9,0,1,8,6,3,5,2,7}创一棵二叉树并由括号表示法输出 -Program features: (4,9,0,1,8,6,3,5,2,7) hit by a binary tree representation output by the brackets
LongestIncSubSeq
- 求最长单调递增子序列。举例:原数组:1 5 1 3 1 56 21 6 86 2 1 6 5 22 1 5 9 62 1 3 56 31 1 56 3 1 1 66 3 1 6 6 3 1 6 6 1 结果: the longest monotonically increasing sub-sequence: Length: 14 Content:-Seeking the longest monotonically increasing subsequence. For exam
Copimtion
- C代码优化方案 目录 __ 2 C代码优化方案__ 4 1、选择合适的算法和数据结构__ 4 2、使用尽量小的数据类型__ 5 3、减少运算的强度__ 5 (1)、查表(游戏程序员必修课)_ 5 (2)、求余运算__ 6 (3)、平方运算__ 6 (4)、用移位实现乘除法运算__ 6 (5)、避免不必要的整数除法__ 8 (6)、使用增量和减量操作符__ 8 (7)、使用复合赋值表达式__ 8
zhongzui_wcj
- 中缀表达式完美版,差 运算 如 (3+5*6)/3+3= 得到答案 14-Perfect version of the infix expression, and poor in operator such as (3+5* 6)/3+ 3 = 14 answer
3
- 本文件包含《数据结构》第三章部分习题源码,全部可运行,开发平台为visual C++6.0-This document contains " data structure" part of exercises of Chapter III source, the entire operation, development platform for the visual C++6.0
6
- 1.定义哈希表数据结构。 2.除留余数法做为哈希函数、 H(key) = key P 用线性探测再散列解决冲突方法,编写函数,实现哈希造表的过程,并输出哈希表。 3.编写函数,求查找成功时的平均查找长度(ASL)。-1. Define the hash table data structure. 2. In addition to leaving the remainder as the hash function method, H (key) = key P re-ha
zhizhengzifuzchuan
- 6-3(4)用指针找统计字符个数,例题,通过指针引用数组元素,指针矩阵转置,指针链表,指针排序,指针数组排序Cpp,指针字符串连接-6-3 (4) with a pointer to the number of characters to find statistics, examples, reference array elements via pointers, pointer matrix transpose, the pointer list, sorting pointers, po
Bank
- 清华严蔚敏数据结构算法3.6 3.7银行业务模拟-<<Data Structure>> Qinghua. Author:YanWeimin. algorithm 3.6 && 3.7 "Bank Simulation"
3
- 输入一个循环链表,每个结点存一些东西,比如存int 数字, 即构造链表, Node1(存数字3)->Node2(6)-> Node3->Node4->Node1, 然后输入一个位置,比如1, 定位到Node2,从Node2开始每隔三个Node删除一个Node,直到该链表删除完-Enter a circular linked list, each node keep some things, such as deposit int number, that is co
301-25-6-1
- 学生成绩管理,假设每个学生信息包括学号、姓名和3门课程的考试分数。从键盘输入10个学生的数据,采用结构体 //* 数组数据的存储,程序实现如下功能: //* 1)输出三门课的平均成绩。 //* 2)输出三门功课分数分别最高的学生的信息。 //* 3)按总分对这10个学生从高到低排序,并输出排序结果。 //* 4)输出平均分高于80分那些学生的信息。-it s a student s score manage program,it has many function.
exp3-6
- 病人排队看病,功能1:排队 2:就诊 3:查看排队 4.不再排队,余下依次就诊 5:下班 请选择- Patients line up to see a doctor, Function 1: Line 2: treatment 3: View queued 4 no longer line up, and the remaining followed by treatment 5: work Please select
enscript-1.6.3-9-doc
- Enscr ipt: convert text files to Postscr ipt, HTML, RTF, ANSI, and overstrikes
1
- 1)使用先序遍历序列构造算法,使用二叉链表,表示算术表达式2*3+6/3的标识符树; 2)求标识符树的先序、中序、后序序列,各存入数组中并显示结果; 3) 求树中叶子结点的个数 附加:3)使用后序序列求表达式的值(使用栈实现); -1) Use a preorder traversal sequence construction algorithm, using the linked list of binary, indicating that the arithmetic
3-6-Yacht-rental-issues
- 3-6 Yacht rental issues 算法设计与分析 课后答案 算法实现题3-6-3-6 Yacht rental issues