Skip to main navigation Skip to search Skip to main content

Out-Of-Order Membership in Regular Languages

  • Université de Lille

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We introduce the task of out-of-order membership to a formal language L, where the letters of a word w are revealed one by one in an arbitrary order. The length |w| is known in advance, but the content of w is streamed as pairs (i, w[i]), received exactly once for each position i, in arbitrary order. We study efficient algorithms for this task when L is regular, seeking tight complexity bounds as a function of |w| for a fixed target language. Most of our results apply to an algebraically defined variant dubbed out-of-order evaluation: this problem is defined for a fixed finite monoid or semigroup S, and our goal is to compute the ordered product of the streamed elements of w. We show that, for any fixed regular language or finite semigroup, both problems can be solved in constant time per streamed symbol and in linear space. However, the precise space complexity strongly depends on the algebraic structure of the target language or evaluation semigroup. Our main contributions are therefore to show (deterministic) space complexity characterizations, which we do for out-of-order evaluation of monoids and semigroups. For monoids, we establish a trichotomy: the space complexity is either Θ(1), Θ(log n), or Θ(n), where n = |w|. More specifically, the problem admits a constant-space solution for commutative monoids, while all non-commutative monoids require Ω(log n) space. We further identify a class of monoids admitting an O(log n)-space algorithm, and show that all remaining monoids require Ω(n) space. For general semigroups, the situation is more intricate. We characterize a class of semigroups admitting constant-space algorithms for out-of-order evaluation, and show that semigroups outside this class require at least Ω(log n) space. At the same time, we exhibit semigroups for which specialized techniques yield intermediate bounds such as an O(√n)-space algorithm, suggesting that the landscape may be richer and less well-behaved than for the monoid setting.

Original languageEnglish
Title of host publication53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026
EditorsSayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, Gabriele Puppis
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959774284
DOIs
Publication statusPublished - 1 Jul 2026
Externally publishedYes
Event53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026 - Egham, United Kingdom
Duration: 7 Jul 202610 Jul 2026

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume374
ISSN (Print)1868-8969

Conference

Conference53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026
Country/TerritoryUnited Kingdom
CityEgham
Period7/07/2610/07/26

Keywords

  • Algebra
  • Automata
  • Complexity

Fingerprint

Dive into the research topics of 'Out-Of-Order Membership in Regular Languages'. Together they form a unique fingerprint.

Cite this