Efficient pattern matching in compressed text via bit-parallel word-based encoding

This paper introduces an optimized algorithm designed to accelerate compressed word matching using advanced bit-parallelism techniques, resulting in a high-performance solution. The proposed algorithm (BIT_COMP) uses the concept of word-based tagged code (WBTC) and a bit-parallel technique (shift-or). BIT_COMP reports the exact number of matches (no false positives) while improving asymptotic searching cost in practice by applying q-gram (q=2) packing and bit-parallel operations. We provide a formal time-complexity characterization showing the search phase runs in O ( ⌈ n / 2 ⌉ . ⌈ m / w ⌉ + o c c ) machine-word operations (where n is the text length in characters, m the pattern length in bits after WBTC encoding, w the machine word size, and o c c the number of actual matches), together with a proof sketch that the verification step eliminates false matches produced by raw codeword alignment. Experimental results confirm both the theoretical speedup and the zero false-positive behaviour compared with prior WBTC and tagged-Huffman-based approaches.

Authors

Institutions

Publication Details

Journal
Franklin Open
Published
2026-01-09
DOI
https://doi.org/10.1016/j.fraope.2026.100494
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient pattern matching in compressed text via bit-parallel word-based encoding

Surya Prakash Mishra, Rajesh Prasad, Santosh Kumar Upadhyay, Vikas
Franklin Open
Algorithms and Data Compression
article

Efficient pattern matching in compressed text via bit-parallel word-based encoding

Surya Prakash Mishra, Rajesh Prasad, Santosh Kumar Upadhyay, Vikas
article en

Abstract

This paper introduces an optimized algorithm designed to accelerate compressed word matching using advanced bit-parallelism techniques, resulting in a high-performance solution. The proposed algorithm (BIT_COMP) uses the concept of word-based tagged code (WBTC) and a bit-parallel technique (shift-or). BIT_COMP reports the exact number of matches (no false positives) while improving asymptotic searching cost in practice by applying q-gram (q=2) packing and bit-parallel operations. We provide a formal time-complexity characterization showing the search phase runs in O ( ⌈ n / 2 ⌉ . ⌈ m / w ⌉ + o c c ) machine-word operations (where n is the text length in characters, m the pattern length in bits after WBTC encoding, w the machine word size, and o c c the number of actual matches), together with a proof sketch that the verification step eliminates false matches produced by raw codeword alignment. Experimental results confirm both the theoretical speedup and the zero false-positive behaviour compared with prior WBTC and tagged-Huffman-based approaches.

Franklin OpenVol. 14
Motilal Nehru National Institute of Technology (IN), Institute of Management Technology (IN)
Openalex Percentile: Top 92%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.