pith. sign in

arxiv: 1301.5468 · v2 · pith:7AXUVGSNnew · submitted 2013-01-23 · 💻 cs.DS

Broadword Implementation of Parenthesis Queries

classification 💻 cs.DS
keywords algorithmsbroadwordclosedimplementationparenthesisqueriesarchitecturesavoid
0
0 comments X
read the original abstract

We continue the line of research started in "Broadword Implementation of Rank/Select Queries" proposing broadword (a.k.a. SWAR, "SIMD Within A Register") algorithms for finding matching closed parentheses and the k-th far closed parenthesis. Our algorithms work in time O(log w) on a word of w bits, and contain no branch and no test instruction. On 64-bit (and wider) architectures, these algorithms make it possible to avoid costly tabulations, while providing a very significant speedup with respect to for-loop implementations.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.