搜索资源列表
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、计
huffmantree
- 动态对文件和字符串统计个字符出现的次数作为其权值,以实现霍夫曼编码,达到节省存储空间的目的。-Dynamic string of documents and statistics on the number of characters appear as part of its weight in order to achieve the Huffman coding to achieve the purpose of saving storage space.
SUFFIX_ARRAY
- 后缀数组的一个C++实现,在字符串统计中有很大作用。-Suffix array of a C++ implementation, plays a significant role in statistics in the string.
1
- 任意输入一字符串,输出并统计其字母,数字,空格及其他字符的个数。-A string of arbitrary input, output and statistics of their letters, numbers, spaces, and the number of other characters.
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
1234
- 输入一页文字,程序可以统计出文字、数字、空格的个数。 静态存储一页文章,每行最多不超过80个字符,共N行;要求(1)分别统计出其中英文字母数和空格数及整篇文章总字数;(2)统计某一字符串在文章中出现的次数,并输出该次数;(3)删除某一子串,并将后面的字符前移。 存储结构使用线性表,分别用几个子函数实现相应的功能; 输入数据的形式和范围:可以输入大写、小写的英文字母、任何数字及标点符号。 -count
tongjizifugeshu
- 这是c语言写的一个程序,统计字符串中每个字母出现的个数-This is a program written in c language, statistics string number of each letter appears
tongji_words_c
- 统计字符串中字符个数-tong ji zi fu chuan zhong zi fu ge shu!!!!!!!1!!!!!!!!!!!!!
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
KMP
- 本代码是kmp算法,可以实现在文学名著中实现字符串的查找,并标记字符串的位置,统计字符串的个数-This code is kmp algorithm can achieve a string of literary classics in the search, and mark the location of the string, the number of statistical string
Vertical_Histogram
- 统计字符串中某一字母个数并显示柱形图,此题为ACMOJ上的题目-A letter and displays the number of statistical string column, entitled ACMOJ on the subject
实现字符串特征的统计
- 实现字符串特征的统计,初学者讨论交流-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
shangke-
- 统计字符串出现的次数,并进一步实现数据压缩-Number of statistical occurrences, and further data compression