20.40 Stacks and Problem Complexity