Compact Fenwick trees for dynamic ranking and selection. (21st January 2020)
- Record Type:
- Journal Article
- Title:
- Compact Fenwick trees for dynamic ranking and selection. (21st January 2020)
- Main Title:
- Compact Fenwick trees for dynamic ranking and selection
- Authors:
- Marchini, Stefano
Vigna, Sebastiano - Abstract:
- Summary: The Fenwick tree is a classical implicit data structure that stores an array in such a way that modifying an element, accessing an element, computing a prefix sum and performing a predecessor search on prefix sums all take logarithmic time. We introduce a number of variants which improve the classical implementation of the tree: in particular, we can reduce its size when an upper bound on the array element is known, and we can perform much faster predecessor searches. Our aim is to use our variants to implement an efficient dynamic bit vector : our structure is able to perform updates, ranking and selection in logarithmic time, with a space overhead in the order of a few percents, outperforming existing data structures with the same purpose. Along the way, we highlight the pernicious interplay between the arithmetic behind the Fenwick tree and the structure of current CPU caches, suggesting simple solutions that improve performance significantly.
- Is Part Of:
- Software, practice & experience. Volume 50:Number 7(2020)
- Journal:
- Software, practice & experience
- Issue:
- Volume 50:Number 7(2020)
- Issue Display:
- Volume 50, Issue 7 (2020)
- Year:
- 2020
- Volume:
- 50
- Issue:
- 7
- Issue Sort Value:
- 2020-0050-0007-0000
- Page Start:
- 1184
- Page End:
- 1202
- Publication Date:
- 2020-01-21
- Subjects:
- compact data structures -- dynamic bit vectors -- prefix sums
Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.2791 ↗
- Languages:
- English
- ISSNs:
- 0038-0644
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.453000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 14816.xml