Welcome![Sign In][Sign Up]
Location:
Search - string compression in java

Search list

[Compress-Decompress algrithmszip&unzip

Description: 利用Java实现zip压缩/解压缩。randomData()函数随机生成50个double数据,并放在doc字符串变量中 openFile()函数读取ZIP压缩文件 saveFile()函数将随机生成的数据存到ZIP格式的压缩文件中。-use Java zip compression/decompression. RandomData () function randomly generated 50 double data and on the doc string variable openFile () function to read ZIP compressed files saveFile () function to generate random data onto the compressed ZIP format documents.
Platform: | Size: 2048 | Author: 潘振瑶 | Hits:

[Data structsSA

Description: 压缩包中的工程包含了三种风格。adtstyle文件夹对应的是抽象数据风格,invretstyle文件夹对应的是调用返回风格,pipestyle文件夹对应的是管道过滤器风格。源代码是用MyEclipse 6.5写的。可直接将工程导入MyEclipse中即可运行,也可以运行SA文件夹里面的start.bat选择某个风格运行。 抽象数据风格的按字母排序算法用的是快速排序算法,代码位于SA\src\adtstyle\impl.AlphabetizerImpl.java,调用返回风格用的是插入排序算法,代码位于SA\src\invretstyle\Alphabetizer.java,管道过滤器风格用的是堆排序算法,代码位于SA\src\pipestyle\Alphabetizer.java。三种风格都对一些噪音词汇进行过滤,private static final String ignore = "a#$an#$and#$as#$is#$the#$of#$",上面语句中由"#$"间隔开的就是噪音词汇。SA\input.txt是输入文件,可对其进行配置来解析不同的文本。-The compression works package includes three different styles. adtstyle folder corresponding abstract data style, invretstyle folder corresponding to the call returns the style, pipestyle folder corresponding to the pipe filter style. The source code is written using MyEclipse 6.5. Directly to the project into MyEclipse to run can run SA folder inside the start.bat select a style run. Abstract data-style alphabetical sorting algorithm is quick sort algorithm, the code is located in SA, \ src \ adtstyle \ impl.AlphabetizerImpl.java, call return style is the insertion sort algorithm, the code in SA \ src \ invretstyle \ Alphabetizer.java pipe filter style using a heap sort algorithm, the code is located in SA, \ the src the \ pipestyle \ Alphabetizer.java. Three styles of some noise words filter private static final String ignore = " a# $ an# $ and# $ as# $ is# $# $ of# $" , " # $" in the above statement spaced noise words. SA, \ input.txt yes the input file can be confi
Platform: | Size: 38912 | Author: 杨诗听 | Hits:

CodeBus www.codebus.net