Skip to content

Why a node often needs two numbers

No two chosen nodes may be adjacent, and the largest total is wanted over a tree.

Why does each node store two values rather than one?