A suffix tree is built by taking every suffix of a string and inserting it into a tree structure. Each suffix starts at the root and shares nodes with other suffixes if they have common prefixes. This sharing creates branches and splits nodes to represent unique substrings efficiently. For example, the string 'banana' has suffixes like 'banana', 'anana', 'nana', etc. Each is inserted step-by-step, creating branches for different starting letters. The tree compresses repeated parts, so it has fewer nodes than the total characters in all suffixes combined. This structure allows very fast substring searches because any substring corresponds to a path in the tree. The execution table shows each suffix insertion and how the tree grows. The variable tracker shows how the number of nodes and branches changes. Key moments clarify why all suffixes must be inserted and how shared prefixes are handled. The visual quiz tests understanding of tree branches and suffix insertion effects.