MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Method main

AhoCorasick.java:75–86  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

73 }
74
75 public static void main(String[] args) {
76 AhoCorasick ac = new AhoCorasick();
77 ac.addKeyword("he");
78 ac.addKeyword("she");
79 ac.addKeyword("hers");
80 ac.addKeyword("his");
81
82 ac.buildFailureLinks();
83
84 List<String> matches = ac.search("ushers");
85 System.out.println("Matches found: " + matches);
86 }
87}

Callers

nothing calls this directly

Calls 3

addKeywordMethod · 0.95
buildFailureLinksMethod · 0.95
searchMethod · 0.95

Tested by

no test coverage detected