Arrow Research search
Back to I&C

I&C 2010

Efficient recognition of trace languages defined by repeat-until loops

Journal Article journal-article Computer Science ยท Theoretical Computer Science

Abstract

A sequence of operations may be validly reordered, provided that only pairs of independent operations are commuted. Focusing on a program scheme, idealized as a local finite automaton, we consider the problem of checking whether a given string is a valid permutation of a word recognized by the automaton. Within the framework of trace theory, this is the membership problem for rational trace languages. Existing general algorithms, although time-polynomial, have unbounded degree related to some properties of the dependence graph. Here we present two original linear-time solutions. A straightforward algorithm is suitable for any finite automaton such that all the transitions starting from the same state are labelled by dependent symbols. The second approach is currently restricted to automata representing programs of nested repeat-until loops. Using integer compositions to represent loop iterations and under suitable conditions, the algorithm constructs the syntax tree of a possible word equivalent to the input string. The same procedures show that, under our hypotheses, the uniform version of the membership problem (which is NP-complete in the general case) is solvable in polynomial time.

Authors

Keywords

  • Automata and formal languages
  • Trace languages
  • Local finite automata
  • Integer compositions
  • Dependencies checking

Context

Venue
Information and Computation
Archive span
1987-2026
Indexed papers
3021
Paper id
544915783113886311
v2026.09.13