the root is the final output the leaves are the inputs the intermediate nodes are the intermediate outputs from anvil each node stores 3 values: enchantment cost: the sum of cost multiplier of the ...