On the Complexity of Decidable Cases of Commutation Problem for Languages

  • Authors:
  • Juhani Karhumäki;Wojciech Plandowski;Wojciech Rytter

  • Affiliations:
  • -;-;-

  • Venue:
  • FCT '01 Proceedings of the 13th International Symposium on Fundamentals of Computation Theory
  • Year:
  • 2001

Quantified Score

Hi-index 0.02

Visualization

Abstract

We investigate the complexity of basic decidable cases of the commutation problem for languages: testing the equality XY = YX for two languages X, Y, given different types of representations of X, Y. We concentrate on (the most interesting) case when Y is an explicitly given finite language. This is motivated by a renewed interest and recent progress, see [12,1], in an old open problem posed by Conway [2]. We show that the complexity of the commutation problem varies from co-NEXPTIME-complete, through P-SPACE complete and co-NP complete, to deterministic polynomial time. Classical types of description are considered: nondeterministic automata with and without cycles, regular expressions and grammars. Interestingly, in most cases the complexity status does not change if instead of explicitly given finite Y we consider general Y of the same type as that of X. For the case of commutation of two finite sets we provide polynomial time algorithms whose time complexity beats that of a naive algorithm. For deterministic automata the situation is more complicated since the complexity of concatenation of deterministic automaton language X with a finite set Y is asymmetric: while the minimal dfa's for XY would be polynomial in terms of dfa's for X and Y , that for YX can be exponential.