Wednesday, March 05, 2014

Recursively fix my life

I wish I could fix my life by recursively calling a simple function. That I could go back to those days before Feb 12 recursively, do something simple that by the time the recursive function finishes, everything is as good at it was before.

Feb 12th is "pivot"al to my life as it "partitioned" my life and that day i will always think of life as pre-"partition" days and post-"partition" days. Life is never the same. Each day after that day, i would think, if I could go back by 1 day, life wouldn't have been like this, if i go back by 2 days life won't be as bad as this.

Many years ago, when i was still a small kid, i woke up one morning and things that happened that day, it seemed I had already seen in my dreams. Or was i still dreaming, I wondered. I was actually still dreaming and I realized it when i woke up next morning. I never knew there was so much recursion in my life till now while studying Algorithms and data structures!!

These 21 days has had O(n2) time complexity, chugging on slowly as it possibly can. Near future is doesn't look any better. Getting sleep no longer take O(1) time, it take O(log n) with n being the number of thoughts going in my mind.

You know things like these teach you lessons that you don't forget in life ever. The lesson being that we need to read signs and take decisions wisely. Remember the "who moved my cheese"? Never wait till cheese is finally gone. There were signs much earlier that I should leave IBM, just didn't read it. 

PS: If you are wondering what pivot, partition and O(blah blah ) are, I could give u a crash course on DS and algorithms :)

I woke up to my daughter's cries and realized how my mind was involuntarily solving merge sort. Time to go to sleep.