Two halves. Three costs.
transcript
Two calls on halves. The cost depends on the work of each call. Draw the tree to see it.
One half costs eleven calls. Two halves cost two thousand forty-seven calls. Two halves and a scan cost eleven thousand units. Each number was measured.
Count the calls on a level. Multiply by the work of one call. Add the levels.
Eight items, two halves, with a scan. Level two: two calls of four. Level three: four calls of two. Every level does eight units.
Each level does eight units. There are four levels. So the total is thirty-two.
One half is about log n. Two halves are about two n. Add a scan, and it is n log n.
A chain has few calls. A tree has many calls, with little work each. A scan makes every level heavy.
The tree tells you the cost. Count the levels and the work. Full breakdown in the lecture.