lrvideckis / programming_team_code

ucf fanclub
23 stars 2 forks source link

add suffix tree #422

Closed lrvideckis closed 8 months ago

lrvideckis commented 1 year ago

existing implementations:

https://cp-algorithms.com/string/suffix-tree-ukkonen.html https://github.com/kth-competitive-programming/kactl/blob/main/content/strings/SuffixTree.h https://github.com/bqi343/cp-notebook/blob/master/Implementations/content/strings%20(14)/Heavy/SuffixTree.h https://codeforces.com/blog/entry/16780 (code link at end of blog)

PDF explaining how suffix trees work: (it's a pretty nice read actually)

https://www.cs.cmu.edu/afs/cs/project/pscico-guyb/realworld/www/slidesF06/cmuonly/gusfield.pdf

lrvideckis commented 1 year ago

idea for test: compare suffix tree to suffix array/lcp

https://codeforces.com/blog/entry/11337

another test idea: compare suffix array to suffix automaton

https://codeforces.com/blog/entry/12280

lrvideckis commented 1 year ago

handle multiple strings, aka "generalized suffix tree"

https://codeforces.com/blog/entry/47390

lrvideckis commented 1 year ago

some other blogs about suffix tree: https://codeforces.com/blog/entry/63320 https://codeforces.com/blog/entry/14765 https://codeforces.com/blog/entry/8762 https://codeforces.com/blog/entry/90186 oof https://codeforces.com/blog/entry/49753

lrvideckis commented 1 year ago

applications: Suffix Tree Application 1 – Substring Check Suffix Tree Application 2 – Searching All Patterns Suffix Tree Application 3 – Longest Repeated Substring Suffix Tree Application 4 – Build Linear Time Suffix Array Suffix Tree Application 5 – Longest Common Substring Suffix Tree Application 6 – Longest Palindromic Substring