搜索资源列表
jasonkingde
- 排序及应用 题目一:统计成绩 1. 实验目的:掌握常用的排序方法,深刻理解排序的定义和各种排序方法的特点,并能灵活应用。 2. 实验内容: (1) 输入n个学生的考试成绩,每个学生信息由姓名与分数组成; (2)选择一种排序算法,按分数高低次序,打印出每个学生的名次,分数相同的为同一名次。 (3)按名次给出每个学生的姓名与分数。 3. 实验要求:任选一种高级程序语言编写源程序,并调试通过,测试正确。 题目二:按字典顺序排序 1. 实验目的:掌握常用的排序方
ba
- 利用哈夫曼编码进行信息通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先编码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端都需要一个完整的编/译码系统。试为这样的信息收发站写一个哈夫曼编/译码系统。 [基本要求]: (1)I:初始化(Initialization)。从终端输入一个长度不超过80的字符串(全部为大写字母且无空格)。统计字符串的长度n、以及不同字符的个数和每种字符的权值,
wenzhangbianji
- 本程序可以实现的功能是输入一页文字后,程序可以统计出文字、数字、空格的个数。对于文章的内容统计作用效果较好,还可以删除字符串,并把后面的内容与之前的内容自动连接上,且简单易懂,也便与实现。
word-counting
- 统计文章中每一个单词出现次数的程序,是C语言中字符串处理的经典教学例子-Article statistics the number of occurrences of each word in the process, the C language teaching in a classic example of string handling
huffman
- 利用二叉树结构实现赫夫曼编/解码器。 1、初始化(Init):能够对输入的任意长度的字符串s进行统计,统计每个字符的频度,并建立赫夫曼树 2、建立编码表(CreateTable):利用已经建好的赫夫曼树进行编码,并将每个字符的编码输出。 3、编码(Encoding):根据编码表对输入的字符串进行编码,并将编码后的字符串输出。 4、译码(Decoding):利用已经建好的赫夫曼树对编码后的字符串进行译码,并输出译码结果。 5、打印(Print):以直观的方式打印赫夫曼树。6、计
SUFFIX_ARRAY
- 后缀数组的一个C++实现,在字符串统计中有很大作用。-Suffix array of a C++ implementation, plays a significant role in statistics in the string.
Huffman
- 通过该程序实现huffman编码,解码。输入一段字符串,统计字符出现频率,输出huffman编码。输入一段编码,根据预先设定的解码方式进行解码。-Through the process to achieve huffman encoding and decoding. Enter a string, statistical character frequency, the output huffman coding. Enter a code, based on pre-set decoding
tongjizifugeshu
- 这是c语言写的一个程序,统计字符串中每个字母出现的个数-This is a program written in c language, statistics string number of each letter appears
frequency
- 编写一个算法frequency,统计在一个输入字符串中各个不同字符出现的频度。用适当的测试数据来验证这个算法。-Write an algorithm frequency, statistics in an input string characters appear in different frequency. With the appropriate test data to verify the algorithm.
huffman
- 利用二叉树结构实现赫夫曼编/解码器。 基本要求: 1、初始化:能够对输入的任意长度的字符串s进行统计,统计每个字符的频度,并建立赫夫曼树 2、建立编码表:利用已经建好的赫夫曼树进行编码,并将每个字符的编码输出。 3、编码:根据编码表对输入的字符串进行编码,并将编码后的字符串输出。 4、译码:利用已经建好的赫夫曼树对编码后的字符串进行译码,并输出译码结果。 5、打印:以直观的方式打印赫夫曼树(选作) 6、计算输入的字符串编码前和编码后的长度,并进行分析,讨论赫夫曼编码的
c
- 输入一个字符串,内有数字和非数字字符。将其中连续的数字作为一个整数,一次存放到一个数组a中。统计共有多少个整数,并输出这些数。-Enter a string containing numbers and non-numeric characters. Will be one of a number of consecutive integers, one in a store into an array. Statistics Total number of integers, and the
char_manipulation
- 包含几个字符操作的经典程序:数字字符转换成数值、统计单词出现次数、选择法进行字符串排序、在串中查找一个字串出现的次数、字符串的选择法排序、字符串中的大写字母改小写字母-Contains several classic characters operating procedures: digital characters into numerical, statistical word occurrences, select the sort method for strings, a strin
Trie
- Trie,又称单词查找树、前缀树,是一种哈希树的变种。应用于字符串的统计与排序,经常被搜索引擎系统用于文本词频统计-Trie, also known as the word search tree, the prefix tree, is a variant of the hash tree. Applied statistics and sorting of strings, often by the search engine system for text word frequency s
Huffman--coding-and--decoding
- 根据《数据结构》(严蔚敏)提供的算法,编写的HUFFMAN编译码程序,工行能做了一定的扩展。 可实现以下功能: (1)输入一段字符串,统计其中每个字符的频度 (2)求每个字符的HUFMAN-CODE (3)对(1)中的字符串译码 (4)对(3)中的译码再解码.-huffman coding and decoding program
StringOperations
- 对输入的所有字符串按字典序排序,并输出到一个文件中。同时统计出字符串个数、最长字符串、最短字符串。 -All of the input string lexicographically sorted, and output to a file. While the statistics of the number string, the longest string, the shortest string.
hafuman
- 利用二叉树结构实现哈弗曼编码器和解码器。根据输入的字符串中每个字符出此案的次数统计频度。-Using binary tree structure to achieve Hafu Man encoder and decoder. According to the input string the number of times each character a statistical frequency of the case.
zhizhengzifuzchuan
- 6-3(4)用指针找统计字符个数,例题,通过指针引用数组元素,指针矩阵转置,指针链表,指针排序,指针数组排序Cpp,指针字符串连接-6-3 (4) with a pointer to the number of characters to find statistics, examples, reference array elements via pointers, pointer matrix transpose, the pointer list, sorting pointers, po
HufmanCode
- 【题目】编写基于HUFFMAN-CODE的译码和解码算法 实验要求: (1) 输入一段字符串,统计其中每个字符的频度; (2) 求每个字符的HUFMAN-CODE; (3) 对(1)中的字符串译码; (4) 对(3)中的译码再解码。 -【Title】 prepared HUFFMAN-CODE-based decoding algorithm for decoding and the experimental requirements: (1) Enter a strin
实现字符串特征的统计
- 实现字符串特征的统计,初学者讨论交流-The string features statistics, beginners discuss and exchange. . .
count
- 题1_统计字符串中每个英文字母出现的次数,一次编程作业-The problem 1_ statistics string for each English number of letters appeared, a programming operation