From tensors to trees

Tensors appear naturally in the construction of the free associative algebra. We consider two variations of associative algebras: A-infinity algebras and dendriform algebras. In both cases appear the planar trees, but from a different perspective. In each case they are closely related to the Stasheff polytope (alias associahedron) and reveal its fantastic properties.