Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2016/iii/paper-120/1/d/solution

The regular language is nonempty because it represents every element of the group. Find any accepted word using breadth-first search in its finite-state automaton. If is the empty word, it already represents the identity.
Otherwise begin with and repeatedly apply the linear-time multiplication in an automatic structure to the letters
These letters belong to by symmetry of the alphabet. All intermediate words lie in , and the final word represents
Hence an identity representative can be constructed effectively:
This is a finite preliminary computation depending only on the fixed automatic structure for a group; it uses no test for whether an arbitrary word represents the identity.

New to topics? Read the docs here!