Algebraic Structures in Geometry and Physics