Commit f56fd4a7 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

lib: Use natural numbers ≥ 1 for canononic names in DFA

parent 2286e06c
Pipeline #66943 failed with stage
in 49 seconds
......@@ -328,7 +328,8 @@ class DFA:
queue.append(dfa.transition[actual, character])
remain.remove(dfa.transition[actual, character])
dfa.rename_state(actual, self.bijective26(i))
# use self.bijective26(i) for base-26 alphabetic names
dfa.rename_state(actual, str(i + 1))
i += 1
return dfa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment