Abstract

Existing parallel algorithms for wavelet tree construction have a work complexity of O(nlog⁡σ). This paper presents parallel algorithms for the problem with improved work complexity. Our first algorithm is based on parallel integer sorting and has either O(nlog⁡log⁡n⌈log⁡σ/log⁡nlog⁡log⁡n⌉) work and polylogarithmic depth, or O(n⌈log⁡σ/log⁡n⌉) work and sub-linear depth. We also describe another algorithm that has O(n⌈log⁡σ/log⁡n⌉) work and O(σ+log⁡n) depth. We then show how to use similar ideas to construct variants of wavelet trees (arbitrary-shaped binary trees and multiary trees) as well as wavelet matrices in parallel with lower work complexity than prior algorithms. Finally, we show that the rank and select structures on binary sequences and multiary sequences, which are stored on wavelet tree nodes, can be constructed in parallel with improved work bounds, matching those of the best existing sequential algorithms for constructing rank and select structures.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

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.