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

Implement longest increasing subsequence algorithm #1

Open
ajcr opened this issue Dec 31, 2017 · 1 comment
Open

Implement longest increasing subsequence algorithm #1

ajcr opened this issue Dec 31, 2017 · 1 comment
Assignees

Comments

@ajcr
Copy link
Owner

ajcr commented Dec 31, 2017

It would be interesting to try and implement an algorithm to find the longest increasing subsequence in a sliding window.

Such an approach is described in Albert et al., 2004:

@ajcr
Copy link
Owner Author

ajcr commented Jan 27, 2018

Actually, there is another algorithm by Chen et al. that computes the value in O( output ) time:

This is (theortically) an improvement on the O ( log log n + output ) approach in the paper above.

Also, the construction looks possibly easier to implement and more practical as it does not rely on Emde Boas trees.

@ajcr ajcr self-assigned this Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant