Co-lex partial orders (Cotumaccio and Prezza (2021) [9] and Cotumaccio et al. (2023) [8]) are a powerful tool to index finite automata generalizing Wheeler orders (Gagie et al. (2017) [14]). The co-lex width p of an automaton measures how sortable its states are w.r.t. the co-lexicographic order among its accepted strings. Automata of co-lex width p can be compressed to bits per edge and admit regular expression matching in time proportional to per matched character. The deterministic co-lex width of a regular language is the smallest width of such a co-lex order, among all DFAs recognizing . Since languages of small co-lex width admit efficient solutions to hard computational problems, computing the co-lex width is relevant in applications. Previous work showed that the deterministic co-lex width p of a language can be computed in for a DFA with m transitions accepting . For constant p (in particular Wheeler languages, where ), the constant in the exponent is large and the exact complexity remains unknown. In this work, we show that one can decide in if the deterministic co-lex width of the language recognized by a given minimum DFA is strictly smaller than . We complement this with a matching conditional lower bound based on the Strong Exponential Time Hypothesis. Hence, our paper essentially settles the complexity of the problem.
扫码关注我们
求助内容:
应助结果提醒方式:
