Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 677 Bytes

File metadata and controls

27 lines (19 loc) · 677 Bytes

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