I am frequently attempting to compute class groups, with a pretty standard approach:
Calculate the Minkowski bound, and list the primes less than this bound.
Factor $(p)$ into prime ideals (usually using Dedekind's criterion) for each prime $p$ less than the Minkowski bound.
Conclude that the class group is generated by the factors of these $(p)$, and hence determine the group.
I do not understand how to show that ideal classes are distinct in general. For example, let $K=\mathbb{Q}(\sqrt{-23})$ with the ring of algebraic integers $O_K = \mathbb{Z}[\frac{1+\sqrt{23}}{2}]$. The discriminant is -23 and the Minkowski bound is less than 4. So, it will suffice to factor 2,3 into ideals, as the class group will be generated by such ideals. Writing $\omega = \frac{1+\sqrt{23}}{2}$, I can show that $(2)=(2,\omega)(2,\bar\omega)$, $(3)=(3,2\omega)$, $(\omega)=(2,\omega)(3,\omega)$.
By the factorisation of $(\omega)$, $[(3,\omega)]^{-1}=[(2,\omega)]$ in the class group. By the factorisation of $(2)$, $[(2,\omega)]=[(2,\bar\omega)]^{-1}$. Note that $(3,2\omega) \subset (3,\omega)$ so by primality these are equal, and $(3,\omega-1)=(3,2\omega-2)$ simlarly. By the factorisation of $(3)$, $[(3,\omega)]=[(3,\omega-1)]^{-1}$.
So, comparing these equations I can conclude that $[(2,\bar\omega)]=[(3,\omega)], [(2,\omega)]=[(3,\omega-1)]$.
Then, if I can show that $[(3,\omega)]\not = [(2,\omega)]$, I can conclude that the class group his $C_3$, but I don't know how to get this last step. This is purely an example of the problem that I am having; I would like to know in general how to deal with this sort of issue.