Simple, Fast and Lightweight Parallel Wavelet Tree Construction

Johannes Fischer, Florian Kurpicz, Marvin Löbel
2/24/2017
11 citations
cs.DS

Official code: kurpicz/pwm (26 stars, C++, BSD-2-Clause, last commit 2023-06-27).

Abstract

The wavelet tree (Grossi et al. [SODA, 2003]) and wavelet matrix (Claude et al. [Inf. Syst., 47:15--32, 2015]) are compact indices for texts over an alphabet $[0,σ)$ that support rank, select and access queries in $O(\lg σ)$ time.

Show full abstract

We first present new practical sequential and parallel algorithms for wavelet tree construction. Their unifying characteristics is that they construct the wavelet tree bottomup}, i.e., they compute the last level first. We also show that this bottom-up construction can easily be adapted to wavelet matrices. In practice, our best sequential algorithm is up to twice as fast as the currently fastest sequential wavelet tree construction algorithm (Shun [DCC, 2015]), simultaneously saving a factor of 2 in space. This scales up to 32 cores, where we are about equally fast as the currently fastest parallel wavelet tree construction algorithm (Labeit et al. [DCC, 2016]), but still use only about 75 % of the space. An additional theoretical result shows how to adapt any wavelet tree construction algorithm to the wavelet matrix in the same (asymptotic) time, using only little extra space.

View on arXivView PDF

Code Implementations(1)

kurpicz/pwmOfficial100%
BSD-2-Clause

Parallel Wavelet Tree and Wavelet Matrix Construction

263C++, CMakeFeb 13, 20173 years agoBSD-2-Clause
parallelwavelet-matrixwavelet-tree

Similar Papers

Cite this paper

@article{fischer2017simple,
  title  = {Simple, Fast and Lightweight Parallel Wavelet Tree Construction},
  author = {Johannes Fischer and Florian Kurpicz and Marvin Löbel},
  year   = {2017},
  eprint = {1702.07578},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1702.07578}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1702.07578.svg)](https://codeofpaper.com/paper/1702.07578)

Discussion