fun cost(physicalPlan: PhysicalPlan): Long
Overrides CostModel.cost
Post-order-tree-walk to calculate the cost of the root bottom-up.