In the computer they are typically represented by pointer structures which allow quick traversal from one subtree to the next.