In mathematics and abstract algebra , group theory studies a type of algebraic structure called a group . In mathematics and abstract algebra , group theory studies the algebraic structures known as groups .