搜索资源列表
StringMatchAlgorithms
- 数据结构中字符串匹配的三种经典算法--KMP算法、MonteCarlo算法、LasVegas算法。分别实现将两个0/1串的匹配。并作为比较。Java语言编写。-data structure string matching algorithm of the three classics -- KMP algorithm. Monte Carlo algorithm, the algorithm LasVegas. Achieve two were 0 / a string matching. An
string
- java程序实现的通俗易懂的二分查找的算法源代码
zip&unzip
- 利用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 op
java_evolutionary_algorithms
- 用Java实现的进化算法包。包括遗传算法、粒子群算法、memetic算法和进化策略算法。-evolutionary-algorithm Evolutionary Algorithm package implemented using Java. The package serves as a foundation class library, supporting the implementation many variants of Evolutionary Algorith
upload4
- 使用模拟退火算法解决旅行商问题 程序框架中的Annealing.java文件,Annealing.java实现了Inter.java接口中的函数。接口函数getStrategy是一个返回类型为void的函数,函数的输入参数是一个字符串,代表输入文件的文件名-The use of simulated annealing algorithm to solve the TSP program in the framework of Annealing.java files, Annealing.j
MC
- Java实现,用回溯的方法解决n,k下的传教士野人问题。最后输出一个字符串数组,表示渡河过程-Java implementation, with the back of a solution n, k missionaries under the savage problems. The final output of a string array that cross the river course
syntax
- LL(1)文法的实现。具体设计要求如下: 1. 可以使用任何语言来完成,例如:Java、C、C++。 2. 文法采用常用的方式进行描述,例如:S→aA。 3. 以文件方式读取文法。 4. 分别求出每一个非终结符FIRST 集FOLLOW集和SELECT集。 5. 画出预测分析表。 6. 判定读入的文法是否是LL(1)文法。 7. 给定的任意符号串判定是否是文法中的句子,将分析过程用计算机打印出来。 8. 查出文法中是否含有左递归或左公因子。若有则消除左公因子和左递
