搜索资源列表
_inline
- Inline函数的使用,这是C++与C中函数不一样的地方,所以专门写出来供参考-Inline Functions, this is C and C function is not the same place, so specifically written for reference
Generic_Pool_demo
- Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grow
TrainReset
- TrainReset:there are many trains need to drive out of the station .In terms of their numbers from small to large.There are only three railways used to place the trains ,and also need the same order.-TrainReset : there are many trains need to drive ou
8_puzzle
- 8_puzzle问题,初始状态下8个方块随机排列。编程序排列1~8方块的顺序,使得位于3*3的网格中,并且8个方块处于正确的位置。-8_puzzle problem, the initial state of eight box random order. Programmed with a box-8 in the order, made at the 3 * 3 grid, and eight box at the right place.
place测试算法
- place测试算法-place testing algorithm
car
- 停车场管理系统 c语言实现 停车场拥有M个车位和一条进入停车场的便道,便道上最多停放N辆汽车。汽车要想进入车位,首先进入便道等候。若有空闲车位,则停车入位,否则在便道继续等候,直至有车位空出。若便道已经停满等候的汽车,后到达的汽车只能离开,选择其他停车场。设计一个停车场管理系统,模拟停车场的运作,并统计停车场的收入。-Parking Management System with M c language parking spaces and a sidewalk into the park
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
Queen.zip
- 这是数据结构中的一道经典题目,是计算在8×8的棋盘上放置8个不同行不用列的皇后的算法,This is a data structure together with the classical subject is included in the 8 × 8 board to place the eight different line of the Queen' s not out of the algorithm
clist-1.5.4-release
- CList是一个标准C++的列表存储和维护的模板库,它所有的类都在一个头文件里,而且位于同一个命名空间。压缩包里有详细的文档说明怎么使用这个库。-CList is a list storage and manipulation template library written in standard C++. All classes can be included with#include <ta0kira/clist.hpp> after the library is instal
Queen
- 利用回溯法和栈来实现八皇后问题:在n×n的国际象棋棋盘上,安放n个皇后,要求没有一个皇后能够“吃掉”任何其他一个皇后,即没有两个或两个以上的皇后占据棋盘上的同一行、同一列或同一对角线-Use of backtracking and stack to achieve the eight queens problem: the n × n chess board, place n queens, a queen is not required to " eat" any other
migong
- 利用栈结构实现迷宫求解问题。迷宫求解问题如下: 心理学家把一只老鼠从一个无顶盖的大盒子的入口赶进迷宫,迷宫中设置很多隔壁, 对前进方向形成了多处障碍,心理学家在迷宫的唯一出口放置了一块奶酪,吸引老鼠在迷宫中寻找通路以到达出口。-Achieved using a stack maze to solve the problem structure. Maze solving the problem as follows: psychologist to a mouse from a big b
queen
- 拉斯维加斯(Las Vegas)算法来解皇后控制问题的解题报告和源代码。问题描述:在一个n×n个方格组成的棋盘上的任一方格中放置一个皇后,该皇后可以控制他所在的行,列以及对角线上的所有方格。对于给定的自然数n,在n×n个方格组成的棋盘上最少要放置多少个皇后才能控制棋盘上的所有方格,且放置的皇后互不攻击? 设计一个拉斯维加斯算法, 对于给定的自然数n (1≤n≤100)计算在n×n个方格组成的棋盘上最少要放置多少个皇后才能控制棋盘上的所有方格,且放置的皇后互不攻击。 -Las Vegas
Elevator
- 设计一个电梯模拟系统,这是一个离散的模拟程序,因为电梯系统是乘客和电梯等”活动体”构成的集合,虽然它们彼此交互作用,但它们的行为是基本独立的.在离散的模拟中,以模拟时钟决定每一个活动体的动作发生的时刻和顺序,系统在某个模拟瞬间处理有待完成的各种事情,然后把模拟时钟推进到某个动作预定要发生的下一个时刻-Elevator design a simulation system, which is a discrete simulation program, because the elevator s
n_queens
- 在n×n的棋盘上放置n个皇后,现要求出使n元棋盘上的n个皇后互不攻击的布局。 -In n × n chessboard of n-place Queen
25811257zjb
- 学生档案的建立和查询:学生档案信息包括学号,年龄,姓名,籍贯,联系电话;建立学生档案信息的哈希表-The establishment of student files and query: Student file information, including Student ID, age, name, place of origin, telephone the establishment of student file information hash table
suanshubiaodashi
- 这是我的数据结构课程设计,1. 初始化两个空栈,一个是操作符栈,一个是操作数栈。2. 如果字符是操作数,将它压入操作数栈。 如果字符是个操作符,则和运算符栈顶的运算符比较优先权后作相应操作,优先技小泽压入栈,大于则将栈顶的运算符出栈,并将运算数栈顶的两个数出栈进行运算。等于,则弹出操作符。-This is my data structure of the curriculum design, 1. Initialize two empty stacks, one stack operator,
che
- 问题描述:按照国际象棋的规则,车可以攻击与之处在同一行或同一列上的棋子。指南车是有方向的车。横向指南车可以攻击与之处在同一行上的棋子。纵向指南车可以攻击与之处在同一列上的棋子。指南车问题要求在m×n格的棋盘上放置指南车,并确定各指南车的攻击方向,使棋盘上不受指南车攻击的方格数最多。 编程任务:对于给定的m×n格的棋盘和2 个整数x 和y。整数x 表示棋盘上有x个规定方格应放置指南车,但攻击方向未定。整数y表示除了已规定放置位置的x个指南车外,还要在棋盘上放置y个指南车,其位置和攻击方向
treesanditsusing
- 介绍树的相关用法和使用时应该注意的地方,重点突出二叉树的使用方法。-Introduce the relevant Usage tree and use the place when it should be noted, focused use of binary tree.
eightqueen
- 八皇后游戏的说明: 问题的提出:八皇后是个古老而有趣的游戏,是由高斯于1850年首先提出的。 要求在国际象棋的棋盘上放置八个皇后,使其不能相互攻击,即任意两个皇后不能处于 棋盘的同一行、同一列和同一条对角线上。试问有多少种放法? 基本思想是:先把皇后放在(0,0)位置,然后把1号皇后放在(1,j)位置, 使其满足要求。接着放2号皇后,依此类推。遇到某个皇后如把她无论放在该行的任意 位置均不满足要求,则前一个皇后放置不当,须重新放置前一皇后,如8个皇后均按要 求放置
guanjianlujin
- 解决工程项目aoe-网的关键路径的问题,用到了拓扑排列 求最早发生时间 活动的最迟完成时间-Solution aoe-Net project critical path of the problem, use a topological order for the first time the activities took place at the latest completion time
