Given : $ G = \langle F \rangle \le S_n$ and $h \in G$
Find : $C_G(h) = \langle C \rangle$
Brute Force Algorithm :
- Genrate all elements of $ \sigma \in G$
- Check $\sigma h = h \sigma$
- if above condition is satisfied then $K = K \cup\sigma$
- $S = \langle K \rangle$
Algorithm :
- For all $\sigma \in F$
- Check $\sigma h = h \sigma$
- if above condition is satisfied then $S = S \cup\sigma$
Question 1: Is $S$ a generating set of $C_G(h)$? How to prove it?
Question 2 : Is there any better algorithm than above ones?
The second algorithm doesn't work in $S_3$ for $h=(123)$ and $F=\{(12), (13)\}$