项目作者: BlackSound1

项目描述 :
A more efficient way to find all permutations of a short String in a long String than O(n!)
高级语言: Java
项目地址: git://github.com/BlackSound1/PermutationFinder.git
创建时间: 2020-02-06T19:40:41Z
项目社区:https://github.com/BlackSound1/PermutationFinder

开源协议:GNU Affero General Public License v3.0

下载


PermutationFinder

A more efficient way to find all permutations of a short String in a long String than O(n!)
The time complexity of this algorithm should be O(n^2 log(n)), or since the short String and long Strings are necessarily different lengths, it could also be viewed as O(m*nlog(n)).

I put the driver in a folder because that’s how it was on my file system. Reorganize as necessary, but be sure to change the destination for your PrintWriter to reflect your changes.