1.
Draw a call stack for the Tower of Hanoi problem. Assume that you start with a stack of three disks.
branch_len
gets smaller, the line gets thinner.branch_len
gets very short it is colored like a leaf.branch_len
recursively so that instead of always subtracting the same amount you subtract a random amount in some range.turtle
graphics module, write a recursive program to display a Hilbert curve.turtle
graphics module, write a recursive program to display a Koch snowflake.turtle
graphics to animate the movement of the disks. Hint: you can make multiple turtles and have them shaped like rectangles.1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
item weight value 1 2 3 2 3 4 3 4 8 4 5 8 5 9 10