Tree Representation Explorer

COSC 2306: Data Programming - Visualizing [Root, Left, Right]

Selected Node None
Logical Tree Structure a b c d e f
Hierarchical View
['a',
   ['b',
    ['d', [], []],
    ['e', [], []]
  ]
,
   ['c',
    ['f', [], []],
    []
  ]

]
Flattened (Console Output)
['a', ['b', ['d', [], []], ['e', [], []]], ['c', ['f', [], []], []]]

Selected Node Details

Select a node in the tree or sublist in the code to see its breakdown. The hierarchical view shows nesting levels, while the flattened view shows the console output.

Value at Index 0
Left Subtree at Index 1
Right Subtree at Index 2

Structural Audit

# System ready. Inspect a node sublist.

Tip: Every highlighted Emerald (Left) or Amber (Right) block is itself a list starting with its own Red (Root) value.

University of Houston • COSC 2306 Trees Part 1