{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# _automaton_.is_codeterministic\n",
"\n",
"Whether the automaton is codeterministic (its transposition is deterministic).\n",
" \n",
"Precondition:\n",
"- labelset is free\n",
"\n",
"See also:\n",
"- [automaton.is_deterministic](automaton.is_deterministic.ipynb)\n",
"- [automaton.determinize](automaton.determinize.ipynb)\n",
"- [automaton.codeterminize](automaton.codeterminize.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Examples"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import vcsn"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n",
"\n",
"\n"
],
"text/plain": [
"mutable_automaton, b>>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%automaton -s a\n",
"context = \"lal_char(ab), b\"\n",
"$ -> 0\n",
"0 -> 1 a\n",
"0 -> 2 b\n",
"1 -> 3 b\n",
"2 -> 3 b\n",
"3 -> $"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.is_codeterministic()"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.transpose().is_deterministic()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.4"
}
},
"nbformat": 4,
"nbformat_minor": 0
}