Applications of abstract algebra in physics