Let $S=\{(1,2),(1,2,\ldots,n),(1,n,,n-1,\ldots,2)\}$ be a subset of the symmetric group $S_n$. Let $a=(1,2),b=(1,2,\ldots,n),c=(1,n,n-1\ldots,2)$ be the elements of $S$. My question is, since $S$ is a generating set of $S_n$, what are the distinct shortest words in the set $S$ that enunciate all the elements of $S_n$. That is, how do we describe one set of distinct words which give rise to all the elements of $S_n$; or, I want one set of $n!$ minimal words(with exponents of each letter being positive) which give the elements of $S_n$.
Since the word problem on finite groups is solvable, I think there would be a way to enunciate all such elements. Since only $a,b$ are sufficient to generate the whole group, so I was thinking along the lines of $a, ba,b^2a,\ldots,b^{n-1}a=ca,ab,ab^2,\ldots ab^{n-1}=ac,aba,abab,abab^2,\ldots,abab^{n-1}=abac\ldots$. Is there a right way to enunciate such words? Thanks beforehand.