The same recursion twice: a tree with a box for every call, and a DAG with one box per subproblem.
This interactive visualization needs JavaScript.