Write the input word over an alphabet as . Starting with , obtain from by linear-time multiplication in an automatic structure with . Mathematical induction gives
The time complexity of step is at most a constant times . Summing the costs gives
The automatic structure for a group, and are fixed, so the required representative is
For the empty word, return in constant time.

Articles by others on the same topic (0)

There are currently no matching articles.