Life and Dynamic Programming

Warning: If you don’t understand dynamic programming, you better stop here.
A past few days of my life has been a struggle trying to understand the paradigm of dynamic programming. The more I try to understand it, the more complicated it gets. No matter how patient I am, can’t get a hang of things. It is during these situations where you don’t want to give up on something, but all your efforts are in vain, when you get philosophical. Though philosophy does very little to help the situation, it presents an interesting view of things. If you can see it, you will be definitely amazed.
I was lucky enough to see how understanding dynamic programming can help you lead your life better.

  1. Find the sub problem/ s:
    When you encounter a big problem, it is very natural for anyone to try to get rid of it in one shot. Seldom would such an approach be fruitful. You might get lucky sometimes. But, betting on your luck always isn’t wise. Look for smaller problems. When you are in a stressful situation, think of minute things that can take you close to the solution. Tasty food and good humor can almost lighten up any tense setting. There is always something that you can change to make solving the huge problem a little easier.

  2. Get the base case right:
    To be successful in any field, it is very important to get yours basic right. If your fundamentals are not strong enough, no matter how tall a building you construct, it’s bound to hit the ground. Even though if you end up spending more time in the initial step, get it damn right.

  3. Verify that you have solved the problem:
    Well another important step that we mostly ignore many times. If you don’t bury the problems, the ghosts will always come back to haunt you. Make sure you have actually solved the original problem.
    Well, my break’s over now. Got to get back to solving problems now.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.