I have the following question:
Given a subgroup $ G \leq S_n $, the centralizer of $ G $ in $ S_n $ is defined as: $$ C_{S_n}(G) = \{ \sigma \in S_n : \sigma g = g \sigma \text{ for all } g \in G \}. $$
Is there a systematic method to compute $ C_{S_n}(G) $ for any given $ G \leq S_n $?
I am aware of results concerning the centralizer of a single element $ g \in S_n $, which is given by: $$ C_{S_n}(g) = \{ \sigma \in S_n : \sigma g = g \sigma \}, $$ and I have seen a solution for this case. Is there a similar approach for determining $ C_{S_n}(G) $ for any $G \leq S_n$?