I am trying to fully understand the connection between a centralizer to conjugacy class.
Starting with the definitions:
Center: $Z(G)=\{z\in G:\forall g\in G, zg=gz\}$ which are all the elements in the group that commute
Centralizer: $C_G(S)=\{g\in G:gs=sg \text{ for all } s\in S\}$ which are all the elements of $g$ that commute with all of the elements subset of $S$
Conjugacy class: $Conj(x)=\{h\in G:\exists g\in G: gxg^{-1}=h \}=\{gxg^{-1}: g \in G \}$ can not explain which elements are in the conjugacy class
Center VS Centralizer: the center takes a group and returns all the elements in the group that commute whereas the Centralizer take a subset of the group and return only that elemnts of the subset which commute
So If for example all the subset commute , let say that the group is cyclic and there for every subset commute, we will have $Z(G)=C_G(G)$
Did I get that right? what are Conjugacy classes and how they differ from the centralizer and the center? is there a simple example for these definitions?
By definition You have $Z(G)=C_G(G)$. If an element is in the center, it commutes with all elements in $G$ as You correctly said and that means for $x\in Z(G)$ that $gxg^{-1}=x$ for all $g\in G$. The mappings $\phi_g:G\rightarrow G,x\mapsto gxg^{-1}$ are called the inner automorphisms of the group $G$ and make the group operate on itself. The conjugacy classes are the orbits of elements under this operation and the elements in the center are exactly those that have orbits of length $1$.