59
I told our new cat, if you try and pick a fight with the big cat, it would be kind of like trying to pick a fight with a whale, or a hill, not much would happen. This week in Algorithms class we covered Depth First Search, Breadth First Search, Knapsack problem, Travelling Salesperson problem, permutations, I reviewed combinatorics, and we had a pretty hard quiz and really fun homework set. Some of these topics I covered in Algorithms I class which was also invaluable. Working on the homework set, I had a huge epiphany. One of the problems asked us to do something that was pretty common sense but required a small decision tree of conditionals for the correct output. Depending on your insight the tree got smaller. So after thinking about it for a long time and running initial versions and testing and simplifying I got it down to four cases, two of which being partly unified. Which got me on a method to unify all of them. Here is what I did: First I put all the things that happe