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

O(n²) space complexity in ses function? #7

Open
PerMildner opened this issue Dec 15, 2017 · 0 comments
Open

O(n²) space complexity in ses function? #7

PerMildner opened this issue Dec 15, 2017 · 0 comments

Comments

@PerMildner
Copy link

Unless I am mistaken, the Shortest Edit Script function (ses) is not linear in the length of the input. Instead it uses quadratic space for its (mis-named) fp map, in the worst case.

By using the divide-and-conquer idea from Hirschberg, the original Myers algorithm uses linear space both for computing the edit distance D, and for computing the Shortest Edit Script, and this is also what Wu et al. claim is possible with their improved O(NP)-time algorithm.

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