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.
|Titolo:||Efficient recognition of trace languages defined by repeat-until loops|
GOLDWURM, MASSIMILIANO (Secondo)
|Parole Chiave:||automata and formal languages ; trace languages ; local finite automata ; integer compositions ; dependencies checking|
|Settore Scientifico Disciplinare:||Settore INF/01 - Informatica|
|Data di pubblicazione:||ago-2010|
|Digital Object Identifier (DOI):||10.1016/j.ic.2010.03.001|
|Appare nelle tipologie:||01 - Articolo su periodico|