A question in sagemath:
Let $S$ be a set of generators of a permutation group $H\subseteq S_n$ and let $\pi$ be an element in $H$.
Is there a way in sage to find the shortest words in the letters $S$ equal to $\pi$?
A question in sagemath:
Let $S$ be a set of generators of a permutation group $H\subseteq S_n$ and let $\pi$ be an element in $H$.
Is there a way in sage to find the shortest words in the letters $S$ equal to $\pi$?
The
word_problemmethod can help with that.From the SageMath word-problem documentation:
To read the documentation or source code of this function: