Lists grow fast.
transcript
You must list every subset. Or every ordering. Check the size first. The size decides the plan.
Ten items have one thousand twenty-four subsets. They have 3,628,800 orderings. Orderings grow faster.
Twenty items have a million subsets. They have more than two quintillion orderings. Nobody can list those.
One item: two subsets. Two items: four. Three items: eight. Each item doubles the list.
Subsets cost two to the n. Orderings cost n factorial. No method can write them faster.
Often you need only a page. Stop when the page is full. Skip the rest of the tree.
Thirty items have a billion subsets. That is already too many to read. So size the list before you build it.
A page holds a hundred answers. The whole list holds a trillion. Ask for the page, not the list.
Check the size before you build. Then decide how much to list. Full breakdown in the lecture.