搜索资源列表
Lagrange
- Lagrange数值计算,根据键盘输入的插值点进行Lagrange插值-Lagrange
LinkedList
- 数据结构单链表,实现单链表的基本操作,根据键盘输入实现不同的操作-LinkedList
graphoperation
- 根据从键盘输入的数据创建图(图的存储结构可采用邻接矩阵或邻接表),并对图进行深度优先搜索和广度优先搜索(实验类型:验证型) 1)问题描述:在主程序中提供下列菜单: 1…图的建立 2…深度优先遍历图 3…广度优先遍历图 0…结束 2)实验要求:图的存储可采用邻接表或邻接矩阵;定义下列过程: CreateGraph(): 按从键盘的数据建立图 DFSGrahp():深度优先遍历图 BFSGrahp():广度优先遍历图-According to dat
clac_for_postfix
- 后缀表达试的运算:键盘输入一串后缀表达式字符串,运行得结果-Expression of the operation test suffix: the suffix string of keyboard input expression string, the results of run
post_to_pre
- 将后缀表达式转换成前缀表达式:从键盘读入一后缀表达式,转化成前缀式-Prefix to postfix expression into the expression: read from the keyboard into a postfix expression, converted into a prefix-style
chengxu
- 从键盘输入若干字符,统计每个字符出现的频率,将字符出现的频率作为结点的权值,建立哈夫曼树,然后对各个字符进行哈夫曼编码,最后打印输出每个字符及对应的哈夫曼编-Enter the number of characters from the keyboard, statistics, the frequency of each character, the character frequency of occurrence as the node weights to build the Huffm
CQueen
- //八皇后问题:在国际象棋中,能否在空格棋盘上摆放八个皇后,并使其中任意两个皇后不能在同一行或同一列或同一对角线上,编写完整的摆放八皇后问题的程序。要求:第一个皇后的起始位置由键盘输入,国际象棋的棋盘为8*8的方格。-//Eight queens problem: In chess, can be placed in the space of eight on board the Queen, the Queen can not make any two of them in the same
DS02
- 将两个带头结点的有序循环链表合成一个带头结点的有序循环链表。 实验内容:使用键盘输入表达式,计算表达式的值并输出;将表达式转化成后缀表达式输出,利用后缀表达式求表达式的值并输出 -The two take the lead in the ordered circular list node synthesis of a lead in the ordered circular list node. Experiment: use the keyboard to enter an expr
Singlelistofheoperation
- 随机产生或键盘输入一组元素,建立一个带头结点的单链表(无序)。 2.遍历单链表(即输出单链表中各结点元素)。 3.把单链表中元素逆置。 4.在单向链表中删除所有的偶数元素结点。 5.编写在非递减有序链表中插入一个元素使链表元素仍有序的函数,并利用该函数建立一个非递减有序单链表。 6.利用算法5建立两个非递减有序单链表,然后合并成一个非递减有序单链表。 -Randomly generated or keyboard input of a group of elem
DS2
- 2、 表达式求值 问题描述:使用键盘输入表达式,计算表达式的值并输出;将表达式转化成后缀表达式输出,利用后缀表达式求表达式的值并输出。 -2, the expression evaluation problem descr iption: Use the keypad to enter an expression to calculate the value of the expression and output the expression into postfix express
tiaoshi
- 需要求3个长方柱的体积,请编写一个基于对象的程序。 数据成员包括length(长)、 width(宽)、height(高)。要求用成员函数实现以下功能: 1、由键盘分别输入3个长方柱的长、宽、高; 2、计算长方柱的体积; 3、输出3个长方柱体积; 请编写程序,上机调试并运行。-Demand for the volume of 3 rectangular column, please write a object-based programs. Data members,
Tetris
- 该程序可以是俄罗斯方块游戏。可以用键盘改变“方块”的方向而完成游戏。-The program can be a Tetris game. Can use the keyboard to change " box" in the direction of complete games.
lisanshuxushiyan1
- 1. 从键盘输入两个命题变元P和Q的真值,求它们的合取、析取、条件和双条件的真值。(A) 2. 求任意一个命题公式的真值表(B,并根据真值表求主范式(C)) -1. From the keyboard input variables of two propositions P and Q of the true value, find their conjunction, disjunction, conditional and biconditional true value. (A)
matching
- 利用循环队列模拟舞伴配对问题:在舞会上,男、女各自排成一队。舞会开始时。依次从男队和女队的队头各出一人配成舞伴。如果两队初始人数不等,则较长的那一队中未配对者等待下一轮舞曲。假设初始男、女人数及性别已经固定,舞会的轮数从键盘输入。-Simulation using circular queue partner matching problem: at the ball, male and female each queue. Party starts. Turn from the men'
qiuzhi
- 2、 表达式求值 问题描述:使用键盘输入表达式,计算表达式的值并输出;将表达式转化成后缀表达式输出,利用后缀表达式求表达式的值并输出。 -2, the expression evaluation problem descr iption: Use the keypad to enter an expression to calculate the value of the expression and output the expression into postfix express
33
- 在霍比特人的圣庙里,有一块黄铜板,上面插着3根宝石针(分别为A号,B号和C号)。在A号针上从下到上套着从大到小的n个圆形金片。现要将A针上的金片全部移到C针上,且仍按照原来的顺序叠置。移动的规则如下:这些金片只能在3根针间移动,一次只能一片,且任何时候都不允许将较大的金片压在较小的上面。从键盘输入n,要求给出移动的次数和方案。-Hanoi
astar
- a星算法 神经网络编程,对于空地左键单击后会产生障碍,对障碍左键单击会消除障碍,对于起点,两次左键盘单击会消除起点,如果不存在起点,单击右键会产生起点,如果存在起点不存在终点,单击右键会产生终点,如果既存在起点又存在终点,单击右键会消除终点,点击开始寻路回画出路径-a star algorithm neural network programming, for the vacant left-click will create an obstacle on the obstacle left-c
expressionEvaluation
- 1)从键盘输入任意一个语法正确的(中缀)表达式,显示并保存该表达式。 (2)利用栈结构,把上述(中缀)表达式转换成后缀表达式,并显示栈的状态变化过程和所得到的后缀表达式。 (3)利用栈结构,对上述后缀表达式进行求值,并显示栈的状态变化过程和最终结果。-1) input from the keyboard correct any syntax (infix) expressions, display and save the expression. (2) the use of
ex_2
- 1.编写生成栈的函数,栈的元素从键盘输入 2.编写在栈中压入一个元素的函数 3.编写在栈中弹出一个元素的函数 4.编写主函数,调用以上各函数,以便能观察出各函数的屏幕输出。 -1. Preparation of the function generating the stack, the stack of elements from the keyboard 2. Preparation of pressure on the stack into an element of th
hufuman
- 从键盘输入一组关键字序列分别实现下列排序: 1.实现简单选择排序、直接插入排序和冒泡排序。 2.实现快速排序算法。 3.实现折半插入排序。 4.采用几组不同数据测试各个排序算法的性能(比较次数和移动次数)。 -paixu