  We consider about calculating $M$th moments of a given polynomial in free
independent semicircular elements in free probability theory. By a naive
approach, this calculation requires exponential time with respect to $M$. We
explicitly give an algorithm for calculating them in polynomial time by
rearranging Sch\"utzenberger's algorithm.
