搜索资源列表
Rplus.tar
- R+树的c实现源码,对应文章T. K. Sellis, N. Roussopoulos, C. Faloutsos: The R+-Tree: A Dynamic Index for Multi-Dimensional Objects.-R tree c achieve source code, corresponding article T. K. Sellis, N. Roussopoulos, C. Faloutsos : The R-Tree : A Dynamic Index for
Opus6_Source
- Data Structures and Algorithms with Object-Oriented Design Patterns in C# 这本书的范例代码dll自己反编译的source code http://www.brpreiss.com/books/opus6/-Data Structures and Algorithms with Objec t-Oriented Design Patterns in C# this book since dll code exam
c
- #include<malloc.h> #include<limits.h> #include<stdio.h> #include<graphics.h> #include<io.h> #include<math.h> #include<process.h> #include<conio.h> #define m 100 #define OK 1 typedef
huffman
- 实现最优二叉树的构造;在此基础上完成哈夫曼编码器与译码器。 假设报文中只会出现如下表所示的字符: 字符 A B C D E F G H I J K L M N 频度 186 64 13 22 32 103 21 15 47 57 1 5 32 20 57 字符 O P Q R S T U V W X Y Z , . 频度 63 15 1 48 51 80 23 8 18 1 16 1 6 2 要求完成的系统应具备如下的功能: 1.初始化。从终端(
taosheng
- 1)I:初始化(Initialization)。从终端读入电文,写到tobetrans文件中,统计电文的字符集合和对应的权值集合,建立哈夫曼树,并将哈夫曼树存于文件hfmtree中。 (2)C:编码(Coding )。利用已建好的哈夫曼树(如不在内存,则从文件hfmtree中读入),对文件tobetrans中的正文进行编码,然后将结果存入文件codefile中。 (3)D:译码(Decoding)。利用已建好的哈夫曼树将文件codefile中的代码进行译码,结果存入文件textfile中
程序 三对角阵系
- !一维导热,非稳态全隐式迭代,边界条件t1=100,t11=20 !导热率为7 module parameter1 !设置全局变量 implicit none integer i real,parameter::dt=0.01 real,parameter::err=0.000001 real,parameter::r=7 real,parameter::ta=100,tb=20 real::a(2:11)=(/(-1,i=2,10),0/) !设置三对角阵系数 rea
hashtable
- 一个哈希查找算法,用c实现, gcc编译 如果使用vs可能会提示少stdint.h-A hash search algorithm, with c and gcc compiler to achieve, if you are using VS , you may get a "can t find stdint.h",
8
- This program identifies the best poker hand made up of 5 cards from the 7 provided. These cards are - or space separated and look like this: 3S-9D 5S-6D-TH-2S-KC. The first letter of each pair is the value which is one of 2,3,4,5,6,7,8,9,T,J,Q,K, A.
ArrayList
- C# ArrayList C++模仿版,只支持最简单的动态队列操作,采用双层链表,支持16兆以上个对象的队列管理。 效率:查找上界O(988+N/976144),插入及删除上界O(988+N/976144+N*T(create/delete-C# ArrayList C++ Imitation version, only support the simplest dynamic queue operations, the use of double-linked list, support
C-datastructure
- C语言数据结构课设作品 很经典 Don t Lose!-C language data structure classes based classic works Don t Lose!
Haffmancode
- 课程设计: 1.求出在一个n×n的棋盘上,放置n个不能互相捕捉的国际象棋“皇后”的所有布局。 2.设计一个利用哈夫曼算法的编码和译码系统,重复地显示并处理以下项目,直到选择退出为止。 【基本要求】 1) 将权值数据存放在数据文件(文件名为data.txt,位于执行程序的当前目录中) 2) 分别采用动态和静态存储结构 3) 初始化:键盘输入字符集大小n、n个字符和n个权值,建立哈夫曼树; 4) 编码:利用建好的哈夫曼树生成哈夫曼编码; 5) 输出编码; 6)
tree-2.65.tar
- 这是一个表示数据结构tree的c++模板对象,封装的非常好.tree-msvc.hh能在 visual c++下使用,如同使用stl标准模板类库一样-This is a tree data structure that the c++ template object, the package is very good. Tree-msvc.hh be able to use visual c++, as the use of standard template library stl the s
DE
- 用数组模拟递归函数,实现递归函数的简化算法,具体要求看英文描述。-We all love recursion! Don t we? Consider a three-parameter recursive function w(a, b, c): if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns: 1 if a > 20 or b > 20 or c > 20
c
- 用顺序和二叉链表作存储结构 ,完成学生成绩管理 1) 以回车( \n )为输入结束标志,输入数列L,生成一棵二叉排 序树T; 2) 对二叉排序树T作中序遍历,输出结果; 3) 输入元素x,查找二叉排序树T,若存在含x的结点,则删除该结点,并作中序遍历(执行操作2);否则输出信息“无x”; -susau
tanxinsuanfa
- 贪心算法又被称为登山法,根本思想是逐步获得最优解,使用贪心算法选取那些最可能实现结果的解来考虑,即以逐步的最优达到最终的全局最优。哈夫曼算法是构造最优前缀码的贪心算法,以自底向上的方式构造表示最优前缀码的二叉树T,在算法中编码字符集中的每一字符c的频率为f(c),以f为键值的优先队列Q用在贪心选择时,有效地确定算法当前要合并的两棵具有最小频率的树,一旦两棵具有最小频率的树合并后,产生一棵新的树,其频率为合并的两棵树的频率之和,并将新树插入优先队列Q。-Greedy algorithm is a
huisu
- 回溯的应用数据结构回溯的应用举例解决回溯(b a c k t r a c k i n g)搜索问题。-The application of retrospective application of retrospective application of an example data structure back
40
- 函数fun的功能是:将s所指字符串中ASCII值为奇数的字符删除,串中剩余字符形成一个新串放在t所指的数组中。 例如,若s所指字符串中的内容为:〞ABCDEFG12345〞,其中字符A的ASCII码值为奇数、…、字符1的ASCII码值也为奇数、…都应当删除,其它依此类推。最后t所指的数组中的内容应是:〞BDF24〞。 注意:部分源程序存在文件PROG1.C中 请勿改动主函数main和其它函数中的任何内容,仅在函数fun的花括号中填入你编写的若干语句 -Function fun f
DBMM
- 单表密码 定义: 1、 明表: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2、 明文 they will arrive tomorrow 3、 密钥 K=Monday 4、 密码实现 1) 将明文与密钥转为数字串: K=(12,14,13,3,0,24)
c-student
- 用C语言开发,在进入系统之后将文件中的数据读取到内存中,然后再通过链表实现增删查改的功能-It can help you ,but that isn t well
c
- 经典算法:已知树T中结点的前序和中序序列分别放在字符型数组a1,a2中,试编写构造此二叉树的算法。-The classical algorithm: the known tree T node in the preorder and inorder sequence on the character array a1, a2, try to write the constructed binary tree algorithm.