As with the local model (step one), the number of possible tables-of-contents is too large to be considered exhaustively.
we incrementally construct a table-of-contents by traversing the tree of segments in a pre-order walk (i.e., the order in which segments appear in the text).