Recursion: The Science and Math it Relies On
Recursion: The Science and Math it Relies On
The Math of Recursion
As much as computer scientists love hoarding their knowledge and techniques from the general masses, some concepts actually fit into other science-y categories too.(JK about the "hoarding knowledge...
Functions
Functions are basically the best. Like the name suggests, without them, code wouldn't be able to function.Or. it would, it would just be much harder to read and change. Which is as good as non-func...
The Base Case
What's your game plan for the zombie apocalypse?Our looks something like this:Step One: Look around to see if there are zombies. Step Two: If there are zombies, kill them or run away, then go back...
The Call Stack
Say you want to plant 100 seeds, but you can only afford a single seed. Only being able to afford one seed feels pretty insignificant, we know, seeing as they cost, what? Ten cents? We're not here...
Recursive Steps
Not many people can argue there's a problem duct tape (or WD-40) can't solve.Hole in your shoe? Duct tape.Fan broken? Duct tape the blade back to the base.In need of a prom dress? Duct tape your wa...
Loops
Breakfast cereal comes in so many shapes, sizes, and flavors. Our favorite ones arethe kinds that try to hide how much sugar they have.the kinds that are loud and proud about how much sugar they ha...