搜索资源列表
(1)
- 1、 用随机数生成的方式(要求用户输入随机数)产生一个迷宫:“1”表示墙,“0”表示路,最后的路径用“8”表示,若没有路径则打印报文,若有路径则打印出路径。 2、 通过堆栈及判断实现迷宫的自动寻找路径功能 -1, the random number generator of (requiring user input random number) produces a maze : "a" Wall said, "0" Lu said, the f
shuhuan
- 几个C的小程序,有汉诺塔,数环打印,链表的创建并自动排序 -several small programs, Tower of Hanoi, several Central Print, Chain automatically create and order
shiyan01
- 功能强大,包括:创建新十字链表、节点删除、节点插入、打印十字链表 、存盘、文件中恢复(读出)矩阵、检索指定矩阵元素(关键字是行列下标) 、检索一个指定矩阵元素(关键字是矩阵元素值)-powerful features, including : creating a new Cross List, delete nodes, the nodes to insert, print Cross Chain, archive, the paper recovery (read) matrix, retr
传教士与野人问题
- 传教士和野人问题是人工智能中的经典问题。本程序采用递归算法求解。定义一个函数,该函数返回一个解路径,路径可以用规则序列表示,也可以用状态序列表示。比如,用规则序列表示,可以表示为:(1 1)(1 0)。。。 表示:过去1个传教士,一个野人,回来一个传教士,。。。如果用状态序列表示,可以表示为:(3 3 1)(2 2 0)(3 2 )。。。 路径用一个链表表示,该函数返回该链表。在main中调用该函数,并打印输出该路径。-missionaries and Savage is a classic A
accept
- 数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in
shuju1
- 利用顺序表模拟Joseph问题过程,按出列顺序打印各人编号。-use order forms Joseph problems process simulation, according to print out the order everyone out numbered.
acjanchan
- 2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^?
erchatree
- 根据数据文件内的数据对二叉树进行操作。分别完成:二叉树节点数据的插入、删除、查找和打印输出等功能。-basis of the data within the data file to binary tree operate. Completed : binary tree node data insert, delete, search and print capabilities.
yanhuisanjiao
- 打印杨辉三角前n行算法.-Print Pascal's Triangle n algorithm for the former.
duichengcha
- 求两个集合的对称差 ,用户给出输入 程序打印结果,是通过分别求并集,交集而得-for two pools symmetric difference, and give users the importation procedures Print results were seeking through and sets derived intersection
Beautifulprint
- 该程序用Java实现了算法中的动态规划问题_漂亮打印-the program using Java to achieve a dynamic algorithm planning _ pretty Print
LimitedLabyrinth
- labyrinth: you need to find the doable way to go to the destinaton.And then print out the path.-labyrinth: You need to find the doable way to go to the destinaton.And then print out the path.
cstring
- 定义一个字符串类String,其私有成员为一个字符串指针。设计构造函数,拷贝构造函数,析构函数,设置新值函数Set, 打印成员值函数Print。借助此String类,将操作符"=="、">"、"<"的重载函数设置为String类的成员函数,实现对操作符"=="、">"、"<"的重载,使之能直接比较两个String类类型的字符串的大小,设计各种情况调用此三个重载操作符。-definition of a string type String, its private members as a str
cclasspoint
- 首先定义一个点类Point,其私有成员为其坐标X,Y。设计构造函数,拷贝构造函数,析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值函数Set, 打印成员值函数Print。再定义一个线类Line,线类是在公有继承点类的基础上,新增私有成员斜率S,并设计构造函数,拷贝构造函数,析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值函数Set, 打印成员值函数Print以及其它你认为对访问此Line类对象有用的成员函数。并用此Line类定义对象,调用所有成员函数。尤其是考察构造函
singlelist
- 建立带表头结点的单链表,打印所有结点的数据域;输入一个值,若某个结点的数据域为该值,则在其后插入另一个新结点,若无此结点,则在表尾插入新结点,然后打印;给一个值,删除结点的数据域是该值的所有结点,然后打印。(表生成时可用前插法或后插法)-table with the establishment of the first node of a single linked list, print all nodes of the data domain; An input value, If a no
chinahorse
- 如果車不動,請設計算法:按馬走日的方法但又不能被車吃掉,用回溯法設計馬的走法,並打印出路程.可以做為軟體設計的參考-If the car does not move, please algorithm design : taking Japan by Ma but the car can not be eaten, Design Retrospective with a horse walk, and print out distance. can be used as a reference
graphbfs
- 读图并输出图的邻接链表,输入两个结点,用广度优先寻找它们之间的最短路径并输出,并判断其是否是树,是否连通,是否有环,有要打印出来环.-interpret drawings and prints of adjacent chain, the importation of two nodes, with breadth between them priority for the shortest path and output, and a judgment whether it is trees,
RegPay
- Print a string backwards.rar Print a string backwards.rar-Print a string backwards.rarPrint a strin g backwards.rarPrint a string backwards.rar
yhsj_
- 打印杨辉三角,输出杨辉三角形数据,呈直角形状-Print Pascal's Triangle, Yang Hui triangle output data showed rectangular shape
B+树算法
- B+树算法:从磁盘读取数据文件,可以进行插入,删除操作,两种方式打印出元素信息。树型打印和依关键字大小打印。-B Tree Algorithm : From disk to read data files that can be inserted, deleted operation, Print out both elements of information. Tree-Print and Print size according to the keyword.