Fast and Longest Rollercoasters
Pawe{\l} Gawrychowski, Florin Manea, Rados{\l}aw Serafin

TL;DR
This paper introduces efficient algorithms for finding the longest k-rollercoaster subsequence in a sequence of distinct numbers, improving previous methods and establishing lower bounds for comparison-based approaches.
Contribution
It presents an $O(nk^2)$-time algorithm for the longest k-rollercoaster, achieving optimal linear time for constant k, and an $O(n \\log^2 n)$-time algorithm for large k, along with lower bounds.
Findings
Longest rollercoaster can be computed in linear time for constant k.
New algorithms are faster than previous $O(nk \\log n)$-time methods.
Established an $\\Omega(n \\log k)$ lower bound for comparison-based algorithms.
Abstract
For , a k-rollercoaster is a sequence of numbers whose every maximal contiguous subsequence, that is increasing or decreasing, has length at least ; -rollercoasters are called simply rollercoasters. Given a sequence of distinct numbers, we are interested in computing its maximum-length (not necessarily contiguous) subsequence that is a -rollercoaster. Biedl et al. [ICALP 2018] have shown that each sequence of distinct real numbers contains a rollercoaster of length at least for , and that a longest rollercoaster contained in such a sequence can be computed in -time. They have also shown that every sequence of distinct real numbers contains a -rollercoaster of length at least , and gave an -time algorithm computing a longest -rollercoaster in a sequence of length…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
