English

Co-lexicographically Ordering Automata and Regular Languages -- Part II

Formal Languages and Automata Theory 2023-03-13 v3 Data Structures and Algorithms

Abstract

In the present work, we tackle the regular language indexing problem by first studying the hierarchy of pp-sortable languages: regular languages accepted by automata of width pp. We show that the hierarchy is strict and does not collapse, and provide (exponential in pp) upper and lower bounds relating the minimum widths of equivalent NFAs and DFAs. Our bounds indicate the importance of being able to index NFAs, as they enable indexing regular languages with much faster and smaller indexes. Our second contribution solves precisely this problem, optimally: we devise a polynomial-time algorithm that indexes any NFA with the optimal value pp for its width, without explicitly computing pp (NP-hard to find). In particular, this implies that we can index in polynomial time the well-studied case p=1p=1 (Wheeler NFAs). More in general, in polynomial time we can build an index breaking the worst-case conditional lower bound of Ω(Pm)\Omega(|P| m), whenever the input NFA's width is po(m)p \in o(\sqrt{m}).

Keywords

Cite

@article{arxiv.2102.06798,
  title  = {Co-lexicographically Ordering Automata and Regular Languages -- Part II},
  author = {Nicola Cotumaccio and Giovanna D'Agostino and Alberto Policriti and Nicola Prezza},
  journal= {arXiv preprint arXiv:2102.06798},
  year   = {2023}
}
R2 v1 2026-06-23T23:07:19.678Z