The structure of algebraic expressions