Does that recursion have anything to do with Fibonacci?
-
The Blade Dancer M0★ M1★ M2★ M3★ M4 M5last edited by debbie Sep 1, 2020, 3:41 AM Aug 31, 2020, 8:35 PM
Module 3 Week 3 Day 10 Your Turn Explanation Part 4
No idea what this explanation was about. Does that recursion have anything to do with Fibonacci?
-
@The-Blade-Dancer This was a really cool problem!
In Part 1, Prof. Loh showed us that tiling the 3-dimensional strip with width and length using just rectangles is the same as tiling a 1-dimensional strip of length That's really amazing! If I had never seen this problem before, I would probably have just putzed around for awhile trying to draw all the different ways to build the strip.
So Step 1 Of the Entire Problem is to actually forget about the whole rectangle. Just look at the first row only! If we placed a vertical rectangle, think of this as instead a square in the top row. If we placed a horizontal rectangle (with two identical rectangles under it), think of this instead as a single rectangle in the top row.
( By the way, would this work with a strip, if we were still tiling with squares and rectangles? It would not! You wouldn't be able to place a vertical rectangle in such a skinny strip.)
Okay, so we're going to banish the rectangle now. It will no longer exist.
We will simply think about how to tile a strip with squares and rectangles.
Step 2 of the Entire Problem is to think of a recursion for building such a strip. We could start with a -length-shorter strip and add a square, or start with a -length-shorter strip and add a rectangle.
While the recursion formula isn't exactly the same as in the Fibonacci sequence, the reasoning behind how to get the formula is the same. The Fibonacci sequence applies to the case where we have squares and rectangles. Our problems is different; instead of rectangles, we have rectangles. If you understand the logic behind this, though, you can do any sort of recursion!
The Fibonacci recursion formula was
Our recursion formula is
Thus we can find the value of for small values of like
From here on, we can use the recursion formula to find the successive values of working our way up until we get to which is what we want.
-
@debbie wow :000