On the complexity of decidable cases of the commutation problem of languages

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

  • Affiliations:
  • Department of Mathematics and Turku Centre for Computer Science, University of Turku, 20014 Turku, Finland;Instytut Informatyki, Uniwersytet Warszawski, Banacha 2, 02-097 Warszawa, Poland;Instytut Informatyki, Uniwersytet Warszawski, Banacha 2, 02-097 Warszawa, Poland and NJIT-CCS, Computer Science Department, GITC 4400, University Heights, Newark, NJ

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2005

Quantified Score

Hi-index 5.23

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 and Y. We show that it varies from co-NEXPTIME complete through PSPACE complete and co-NP complete to deterministic polynomial time, when Y is an explicitly given finite language and X is given by a CF grammar generating a finite language, a nondeterministic finite automaton (or a regular expression), an acyclic nondeterministic finite automaton or an explicitly given finite language, respectively. 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 X. For deterministic finite automata the problem remains open, due to the asymmetry of the catenation.