<p>DCM is not closed under reversal.  I don't know of a reference, but it is easy to show it using the expressveness lemmata of Chiniforooshan, E., Daley, M., Ibarra, O.H., Kari, L., Seki, S.: One-reversal counter machines and multihead automata: revisited.</p>

<p>In particular, they state that for any DCM language $L$, there is a word $w$ such that $L \cap w\Sigma^*$ is a nontrivial regular language.  Now let $D$ be the following hinted version of the complement of the prefixes of the Dyck language:
$$D = \{a^nw_1w_2\cdots w_k \mid w_i \in \{[, ]\} \land |w_1w_2\cdots w_n|_] &gt; |w_1w_2\cdots w_n|_[\}.$$
In other words, $D$ is the complement of the Dyck where the number of $a$'s in the prefix gives a position witnessing the unbalancing of the parentheses.  Also, $(\{a\}^*)^{-1}D$ is the complement of the prefixes of the Dyck.  Note that $D$ is in DCM.  Now consider $D^R$ and a word $w \in \Sigma^* = \{a, [,]\}^*$.  Then either $D^R \cap w\Sigma^*$ is finite, or it is nonregular, hence $D^R \notin$ DCM.</p>

<p>I don't know of any interesting subclass of DCM closed under reversal.  (Ad placement!) However, we studied a model called <a href="http://dl.acm.org/citation.cfm?id=2364334" rel="nofollow">Unambiguous constrained automata</a> which is close but not comparable to DCM, and which enjoys closure under reversal --- constrained automata, or Parikh automata, themselves are equivalent to NCM in the nondeterministic case, and a strict subset of DCM in the deterministic case.</p>

CC BY-SA 3.0
2013-06-03T19:29:40.943Z
I will definitely look at Constrained Automata. My research right now is comparing a bunch of different models, so they could prove quite useful.
Joey Eremondi
CC BY-SA 3.0
2013-06-04T03:06:29.123Z
Ah! Great news! Feel free to contact me should you have a question on these.
Michaël Cadilhac
CC BY-SA 3.0
2013-06-03T18:47:59.200Z
2013-06-03T18:54:09.433Z
2013-06-03T18:54:09.433Z
Michaël Cadilhac
<p>This is a problem I have found very difficult to solve, given how the two different uses of "reversal" confuses search engines.</p>

<p>Reversal-bounded multicounter machines are described at length in his paper "Reversal Bounded Multicounter Machines and their Decision Problems". Essentially, the bound on reversals refers to the number of times any of the counter are allowed to switch from incrementing to decrementing.</p>

<p>Let $DCM$ be the family of languages accepted by deterministic reversal-bounded multicounter machines, and $NCM$ the nondeterministic class.</p>

<p>Let $L^R = \{w^R | w \in L \}$ where $w^R$ is $w$ reversed.</p>

<p>I'm wondering, for $L \in DCM$, is $L^R \in DCM$? Are there subclasses of $DCM$ which have this property? </p>

<p>"Formal Modelling of Viral Gene Compression" by Daley and McQuillan tells that $NCM$ is closed under reversal, but I have found no such reference for the deterministic case.</p>

<reference-request><fl.formal-languages><automata-theory><counter-automata>
Are Reversal-bounded Multicounter Machines closed under reversal?
Joey Eremondi
# Are Reversal-bounded Multicounter Machines closed under reversal?

(Asked by: username_0 on 2013-06-03)

This is a problem I have found very difficult to solve, given how the two different uses of "reversal" confuses search engines.

Reversal-bounded multicounter machines are described at length in his paper "Reversal Bounded Multicounter Machines and their Decision Problems". Essentially, the bound on reversals refers to the number of times any of the counter are allowed to switch from incrementing to decrementing.

Let $DCM$ be the family of languages accepted by deterministic reversal-bounded multicounter machines, and $NCM$ the nondeterministic class.

Let $L^R = \{w^R | w \in L \}$ where $w^R$ is $w$ reversed.

I'm wondering, for $L \in DCM$, is $L^R \in DCM$? Are there subclasses of $DCM$ which have this property?

"Formal Modelling of Viral Gene Compression" by Daley and McQuillan tells that $NCM$ is closed under reversal, but I have found no such reference for the deterministic case.

**Tags:** reference-request, fl.formal-languages, automata-theory, counter-automata

---

## 1 answers

### Answer by username_1 on 2013-06-03. Score: 3 | Accepted answer

DCM is not closed under reversal. I don't know of a reference, but it is easy to show it using the expressveness lemmata of Chiniforooshan, E., Daley, M., Ibarra, O.H., Kari, L., Seki, S.: One-reversal counter machines and multihead automata: revisited.

In particular, they state that for any DCM language $L$, there is a word $w$ such that $L \cap w\Sigma^\*$ is a nontrivial regular language. Now let $D$ be the following hinted version of the complement of the prefixes of the Dyck language:
$$D = \{a^nw\_1w\_2\cdots w\_k \mid w\_i \in \{[, ]\} \land |w\_1w\_2\cdots w\_n|\_] > |w\_1w\_2\cdots w\_n|\_[\}.$$
In other words, $D$ is the complement of the Dyck where the number of $a$'s in the prefix gives a position witnessing the unbalancing of the parentheses. Also, $(\{a\}^\*)^{-1}D$ is the complement of the prefixes of the Dyck. Note that $D$ is in DCM. Now consider $D^R$ and a word $w \in \Sigma^\* = \{a, [,]\}^\*$. Then either $D^R \cap w\Sigma^\*$ is finite, or it is nonregular, hence $D^R \notin$ DCM.

I don't know of any interesting subclass of DCM closed under reversal. (Ad placement!) However, we studied a model called [Unambiguous constrained automata](http://dl.acm.org/citation.cfm?id=2364334) which is close but not comparable to DCM, and which enjoys closure under reversal --- constrained automata, or Parikh automata, themselves are equivalent to NCM in the nondeterministic case, and a strict subset of DCM in the deterministic case.

> **Comments:**
> **username_0**: I will definitely look at Constrained Automata. My research right now is comparing a bunch of different models, so they could prove quite useful.  
> **username_1**: Ah! Great news! Feel free to contact me should you have a question on these.  

---

