Skip to content

ProjectUranus/SuffixTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suffix Tree

mezz's modified version of Generalized Suffix Tree. Published for convenient use.

Usage

dependencies {
    // https://mvnrepository.com/artifact/com.projecturanus/suffixtree
    implementation 'com.projecturanus:suffixtree:1.0'
}
import com.projecturanus.suffixtree.GeneralizedSuffixTree;

var tree = new GeneralizedSuffixTree();
tree.put(0, "java");
tree.put(1, "groovy");
tree.put(2, "kotlin");

tree.search("blabla"); // Returns a set of indices that were defined previously

License

Apache-2.0