Open ajcr opened 6 years ago
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.
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: