Abstract
AbstractExplorable heap selection is the problem of selecting the nth smallest value in a binary heap. The key values can only be accessed by traversing through the underlying infinite binary tree, and the complexity of the algorithm is measured by the total distance traveled in the tree (each edge has unit cost). This problem was originally proposed as a model to study search strategies for the branch-and-bound algorithm with storage restrictions by Karp, Saks and Widgerson (FOCS ’86), who gave deterministic and randomized $$n\cdot \exp (O(\sqrt{\log {n}}))$$ n · exp ( O ( log n ) ) time algorithms using $$O(\log (n)^{2.5})$$ O ( log ( n ) 2.5 ) and $$O(\sqrt{\log n})$$ O ( log n ) space respectively. We present a new randomized algorithm with running time $$O(n\log (n)^3)$$ O ( n log ( n ) 3 ) against an oblivious adversary using $$O(\log n)$$ O ( log n ) space, substantially improving the previous best randomized running time at the expense of slightly increased space usage. We also show an $$\Omega (\log (n)n/\log (\log (n)))$$ Ω ( log ( n ) n / log ( log ( n ) ) ) lower bound for any algorithm that solves the problem in the same amount of space, indicating that our algorithm is nearly optimal.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Similar Papers
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.