Tree suffix in javascript?

Is there any good suffix implementation in JavaScript? Something that takes a string (and a separator) and creates the corresponding suffix tree?

+6
source share
3 answers

Probably the most famous implementation: http://felix-halim.net/pg/suffix-tree/index.php . But you want to find an alternative on google: www.cut-the-knot.org suffix tree. You also want to find the Matt Mahoney suffix tree tutorial. The best online tutorial from source compression expert in c.

+1
source
+5
source

find another implementation (ukkonen's) here: http://code.google.com/p/text-indexing/ ; suffixtree.JS is provided along with HTML rendering

0
source

Source: https://habr.com/ru/post/886277/


All Articles