资源列表
HanoiTowerSequence
- 题目大意: 经典的汉诺塔 n个盘编号,从小到大 1..n 问:移动的序列中第k步移的是哪个盘 -Input The first line of the input file is T, the number of test cases. Each test case contains one integer p (1<=p<10^100). Output Output the pth e
BTree
- 用C++实现的一个二叉树模板类,包括一些基本的操作-Using C++ to achieve a binary tree template classes, including some of the basic operation of
ghost
- 求解 吸血鬼数字。吸血鬼数字是指 位数为偶数的数字,可以由一对数字相乘而得,而这对数字包含乘积的一半位数的数字,其中从最初的数字中跌取的数字可以任意排序,以两个0结尾的数字是不允许的。 如 91=9*9; 1344=32*42-Solving vampire figures. Vampire figures refer to the median figure is an even number can be multiplied by a figure derived from, whic
simpson
- 这是一个相当有用的程序,用辛普森方法求积分,经常用到的。-This is a very useful procedure, using Simpson' s method of quadrature is often used.
MergeSort
- this another data structure, it is called mergesort, wherein you will input numbers then the output will be the sorted numbers you input.-this is another data structure, it is called mergesort, wherein you will input numbers then the output will be t
eightqueen
- 数据结构课程设计八皇后问题 运用C语言编写,可直接运行-Curriculum design data structure using the eight queens problem written in C, can be directly run
if-file-exist-or-not
- 该源码实现了数据结构中的多种内部排序方法,很不错的。-The source of the data structure to achieve a variety of internal sorting method, very good.
solvethetimetable
- 用贪心算法解决时间表问题 时间表问题一直是比较麻烦的一个问题 本文件中用贪心算法大致解决了这个问题 比较有参考价值-Greedy algorithm to solve the timetable problem
c
- (1)float型和double型变量所能表示的最小正数分别是多少? (2)分析代码在时间足够的情况下是否能运行完,如果能给出n_f及n_d值。 (3)分别用float型和double型变量保存部分和Sk,递推计算(1)(见于实验七作业文件)式的值,并判定结果是否收敛?原因?理论分析及编程测试,给出收敛时得n值。 (4)设计求和算法,使用float型变量,使得收敛时n尽量大,部分和Sk尽量准确。 -(1) float and double variable can be repr
1273
- poj1273 一道网络流图论的简单题,运用增光路的算法-poj1273 a simple graph problem
Lcs
- 求最长公共子序列。本算法使用动态规划算法,解得最长公共子序列问题。-Find the longest common subsequence. The algorithm uses a dynamic programming algorithm, the solution was the longest common subsequence problem.
xichuan
- 现有喜串定义如下。a 与b 互为喜串需满足以下两个条件之一: 1. a 和b 相同。 2. 将a 分成a1 与a2 两个等长串,b 分成b1 与b2 两个等长串,其子串需满足以下两个条件之一: a) a1与b1互为喜串且a2 与b2 互为喜串。 b) a1与b2互为喜串且a2 与b1 互为喜串。任务: 判断给定的两个串是否互为喜串-Hi existing string defined below. a and b mutually hi string must meet one o
