Search Results

Documents authored by Xu, Tingqiang


Document
Nearly Optimal Internal Dictionary Matching

Authors: Jingbang Chen, Jiangqi Dai, Qiuyang Mang, Qingyu Shi, and Tingqiang Xu

Published in: LIPIcs, Volume 388, 34th Annual European Symposium on Algorithms (ESA 2026)


Abstract
We study the internal dictionary matching (IDM) problem where a dictionary 𝒟 containing d substrings of a text T over a linearly sortable alphabet is given, and each query concerns the occurrences of patterns in 𝒟 in another substring of T. We propose a novel O(n)-sized data structure named Basic Substring Structure (BASS) where n is the length of the text T. With BASS, we are able to handle all types of queries in the IDM problem in nearly optimal query and preprocessing time. Specifically, our results include: - The first algorithm that answers the CountDistinct query in Õ(1) time with Õ(n+d) preprocessing, where we need to compute the number of distinct patterns that exist in T[l,r]. Previously, the best result was Õ(m) time per query after Õ(n²/m+d) or Õ(nd/m+d) preprocessing, where m is a chosen parameter. - Faster algorithms for two other types of internal queries. We improve the runtime for (1) Occurrence counting (Count) queries to O(log n/log log n) time per query with O(n+d√{log n}) preprocessing from O(log² n/log log n) time per query with O(nlog n/log log n + d log^{3/2} n) preprocessing. (2) Distinct pattern reporting (ReportDistinct) queries to O(1+|output|) time per query from O(log n+|output|) per query. In addition, we match the optimal runtime in the remaining two types of queries, pattern existence (Exists), and occurrence reporting (Report). We also show that BASS is more generally applicable to other internal query problems.

Cite as

Jingbang Chen, Jiangqi Dai, Qiuyang Mang, Qingyu Shi, and Tingqiang Xu. Nearly Optimal Internal Dictionary Matching. In 34th Annual European Symposium on Algorithms (ESA 2026). Leibniz International Proceedings in Informatics (LIPIcs), Volume 388, pp. 58:1-58:22, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2026)


Copy BibTex To Clipboard

@InProceedings{chen_et_al:LIPIcs.ESA.2026.58,
  author =	{Chen, Jingbang and Dai, Jiangqi and Mang, Qiuyang and Shi, Qingyu and Xu, Tingqiang},
  title =	{{Nearly Optimal Internal Dictionary Matching}},
  booktitle =	{34th Annual European Symposium on Algorithms (ESA 2026)},
  pages =	{58:1--58:22},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-445-1},
  ISSN =	{1868-8969},
  year =	{2026},
  volume =	{388},
  editor =	{Bille, Philip and Pettie, Seth and Storandt, Sabine},
  publisher =	{Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESA.2026.58},
  URN =		{urn:nbn:de:0030-drops-271944},
  doi =		{10.4230/LIPIcs.ESA.2026.58},
  annote =	{Keywords: Internal dictionary matching, pattern matching, string algorithms, data structures, substring queries}
}
Any Issues?
X

Feedback on the Current Page

CAPTCHA

Thanks for your feedback!

Feedback submitted to Dagstuhl Publishing

Could not send message

Please try again later or send an E-mail