Multitape Rational Expressions
This page is a complement to the paper Derived-Term Automata of Multitape Rational Expressions presented at CIAA 2016. This page exists in several forms:
A Dynamic Notebook, which can be edited, played with
A static HTML page, whose graphical rendering is always correct.
More information is available here:
You may change the cells, and run then. To run a cell in a notebook, hit "Control-Enter" (in which case the focus stays on the same cell) or "Shift-Enter" (focus goes to the next cell). Beware that depending on the requested operations, Vcsn may generate and compile code, which may be a really slow process on small machines (about a minute): be patient! However, the code is compiled only once: successive uses will be way faster.
To run all the cells anew, select "Restart & Run All" in the "Kernel" menu above.
Example : A Simple Multitape Expression
First we introduce the "context" we are interested in: labels are letter-or-empty-word, two tapes, values are rational numbers.
The expression is:
Its expansion is (contrary to the paper, the empty expression is denoted instead of ):
The derived-term automaton of , , is:
The 10 shortest "multitape words" it accepts are:
Example : An Exponential Number of States
We introduce a three-tape context. The graphical rendering is less satisfying.
Currently Vcsn is not able to extract nice rational expressions from such an automaton: it will always produce a "simple-tape expression over multitape generators":
Instead of displaying the automaton, we may list its states, for instance in the case of a five-tape expression.
Example : A Sed-like Substitution
Again, the extracted expression is less readable.
A More Complex Expression
The previous examples often look like sed-like substitutions, in the sense that the first tape was often a composite expression, but the second tape a simple label. There is no such limitation.