Kernel: Python 3
expression
.shuffle(exp)
The shuffle product of expressions.
See also:
Examples
In [1]:
Boolean Automata
The shuffle product computes the shuffling of languages: all the possible interleavings.
In [2]:
Out[2]:
In [3]:
Out[3]:
In [4]:
Out[4]:
In [5]:
Out[5]:
Weighted expressions
In the case of weighted expressions, weights are "kept" with the letters.
In [6]:
Out[6]:
Associativity
The operator is associative: , i.e., both expressions denote the same series.
In [7]:
Out[7]:
In [8]:
Out[8]: