Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance degradation with adversary strings #2

Open
baratgabor opened this issue Mar 19, 2021 · 0 comments
Open

Performance degradation with adversary strings #2

baratgabor opened this issue Mar 19, 2021 · 0 comments

Comments

@baratgabor
Copy link
Owner

Just occurred to me to at least add an issue about this; I discovered this bug ages ago.

What is happening is that the suffix tree building suffers performance degradation when it builds trees for particularly adversary strings. Basically very long strings with extremely frequent branching, e.g. "ABABABABABAB...". Processing time exhibits a non-linear time complexity under these conditions.

The problem lies in the handling of suffix links.

Would be great to fix this problem, but the small issue I have is that I can't understand anything neither from this algorithm anymore, nor from my 'very plain English' explanation. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant