-
ministack类的实现,数据结构的作业,模拟出类似stack类的ministack,已经通过测试...
ministack类的实现,数据结构的作业,模拟出类似stack类的ministack,已经通过测试-ministack class implementation, data structure operations to simulate a similar stack class ministack, has passed the test! !
- 2022-05-26 17:08:12下载
- 积分:1
-
数据结构银行模拟指导
数据结构银行模拟指导-simulation data structure to guide banks
- 2023-07-29 12:00:03下载
- 积分:1
-
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n和k个加油站位置,编程计算最少...
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n和k个加油站位置,编程计算最少加油次数。并证明算法能产生一个最优解-Fill up the car after driving an n km. There are a number of gas stations journey. Design an efficient algorithm that at which stations should stop to refuel along the way so that the least number of refueling. For a given n and k-station location, the calculation program for at least the number of refueling. And to prove that the algorithm can produce an optimal solution
- 2023-08-07 06:10:03下载
- 积分:1
-
数据结构堆栈之后缀表达式求值
此程序用的是后缀表达式求值的方法,其中用到了一个栈,而中缀表达式求值需用到两个栈(操作数栈和操作符栈),所以阅读程序前提是了解中缀表达式和后缀表达式
之间的转换,和后缀表达式求值的过程。关于他们之间的转换,我的概括为:中缀表达式:a*(b+c)-d/f ,先做b+c,即bc+;再做a*(b+c),即abc+*;然后做d/f,即df/;
最后做a*(b+c)-d/f,得abc+*df/-。关于后缀表达式求值过程请参照你的《数据结构指导书》P60~62(下文所指参照页均在此书)。程序里中有些我说的可有可无的东西,我已经说明
程序里只给出了+ - * / 四种运算,其它运算符若需要,
可向程序里插入。你的指导书堆栈实验里提示用到了“运算符重载”,所以添加其他运算时,有可能用到重载,但这里的四则运算我没用到,运算符重载是很重要的
- 2022-11-10 19:15:04下载
- 积分:1
-
/*数字三角形问题 问题描述: 给定一个由n行数字组成的数字三角形如下图所示。试设计一个算法,计算出从三角形的顶至底的一条路径,使该路径经过的数字总和最大。 7...
/*数字三角形问题 问题描述: 给定一个由n行数字组成的数字三角形如下图所示。试设计一个算法,计算出从三角形的顶至底的一条路径,使该路径经过的数字总和最大。 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 编程任务: 对于给定的由n行数字组成的数字三角形,编程计算从三角形的顶至底的路径经过的数字和的最大值-/* Digital triangle Issue Description : given an OK by the number n of triangular figures shown in the diagram below. Design of a test algorithm, calculated from the top of the triangle to the end of a path, the path through the largest sum of the figures. 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 programming tasks : for a given n line by the number of digits triangle, triangle programming calculated from the top to the bottom of the path through the figures and the maximum
- 2022-09-23 22:05:03下载
- 积分:1
-
多项式的计算器,可以用来加减乘除各类多项式并得出正确结果...
多项式的计算器,可以用来加减乘除各类多项式并得出正确结果-Polynomial calculator can be used all kinds of polynomial addition and subtraction multiplication and division and reached a correct result
- 2022-01-30 15:25:40下载
- 积分:1
-
对Oracle OCI的封装
对Oracle OCI的封装- To Oracle OCI seal
- 2023-03-23 13:45:03下载
- 积分:1
-
List storage structure used to achieve the basic operation of the linear form. (...
用链表存贮结构实现线性表的基本操作。(包括各种操作)-List storage structure used to achieve the basic operation of the linear form. (Including a variety of operation)
- 2023-01-19 20:45:04下载
- 积分:1
-
《学籍管理系统》 “c# WinForm 数据库操作的简单范例 (SQL Server 2000)”...
《学籍管理系统》 “c# WinForm 数据库操作的简单范例 (SQL Server 2000)”-"expulsion management systems," "c# WinForm operation of the database simple paradigm (SQL Server 2000)"
- 2023-08-19 19:55:04下载
- 积分:1
-
HANOI 塔问题求解.cpp,HANOI 塔问题是数据结构中具有典型的代表性问题...
HANOI 塔问题求解.cpp,HANOI 塔问题是数据结构中具有典型的代表性问题-HANOI tower question solution cpp, the HANOI tower question
is in the construction of data has the model the representative
question
- 2022-06-29 23:56:23下载
- 积分:1