Wednesday, November 28, 2007

The Persuit of Happyness

Hi,
Well, today I am not here for posting a gazal or a puzzle. I watched a movie which forced me to write over here.

Today I watched "The Persuit of Happyness", well the 'y' in the "Happyness" is intentional and someone who has watched that movie would understand why. The movie is based on the true story of Chris Gardner who is a self made entrepreneur and a millionaire. It is really a must watch movie. The movie is not for entertainment but for inspiration. Will Smith truly gave justice to the character of Chris.

It was amazing to watch how Chris managed to take care of his son and manage to do his unpaid internship even when he was broke. How he convinced his son to sleep in a 'cave' through his 'time machine'. When everything was going wrong, he continued to see the bright and pursued the right. We find it very convenient to blame it on the circumstances when we don't have enough guts and courage to fight through it. The movie really teaches a lesson to never give up and to believe that "everything's gonna be fine".

I don't know how well I can follow the ideas depicted in that movie. But I will definitely remember this movie for it's unforgettable inspirational appeal.

Tuesday, November 27, 2007

Nice gujarati gazal by Befam

Hi,
I came across this nice gazal from here.

વ્યર્થ દુનિયામાં પ્રણયને આંધળો કહેવાય છે
તું નયન સામે નથી, તોપણ મને દેખાય છે.

જ્યાં જુઓ ત્યાં બધે એક જ વદન દેખાય છે
કોઇને એક વાર જોયા બાદ, આવું થાય છે?

એમ તો એનું અચાનક પણ મિલન થઇ જાય છે
શોધમાં નીકળું છું ત્યારે જ કેમ એ સંતાય છે

આવ મારાં આંસુની થોડી ચમક આપું તને,
તું મને જોઇને બહું ઝાંખી રીતે મલકાય છે.

એટલે સાકી, સુરા પણ આપજે બમણી મને,
મારા માથા પર દુઃખોની પણ ઘટા ઘેરાય છે.

હોય ના નહિ તો બધોય માર્ગ અંધારભર્યો,
લાગે છે કે આપની છાયા બધે પથરાય છે.

હું કરું છું એના ઘરની બંધ બારી પર નજર,
ત્યારે ત્યારે મારી આંખોમાં જ એ ડોકાય છે.

પ્યાર કરવો એ ગુનો છે એમ માને છે જગત,
પણ મને એની સજા તારા તરફથી થાય છે.

છે લખાયેલું તમારું નામ એમાં એટલે,
લેખ મારાથી વિધિના પણ હવે વંચાય છે.

છે અહીં ‘બેફામ’ કેવળ પ્રાણની ખુશ્બૂ બધી,
પ્રાણ ઊડી જાય છે તો દેહ પણ ગંધાય છે.


-બરકત વિરાણી “બેફામ”

Monday, November 19, 2007

Treasure of urdu poetry ( shayari)

Hi All,
Very nice collection of urdu poetry can be found here .

Thanks to ali for forwarding me such a nice collection.

Friday, November 02, 2007

A gazal by Saif Palanpuri

Hi,
Well, it has been a very long break here. I know, and I think I am still going to be very less frequent because of the coursework load ( Yeah I know, it is a nice excuse! )

Received this nice gazal in my orkut inbox.

-----------
ખુશ્બૂમાં ખીલેલા ફૂલ હતાં ઊર્મિમાં ડૂબેલા જામ હતા,
શું આંસુનો ભૂતકાળ હતો - શું આંસુનાં પણ નામ હતાં.

થોડીક શિકાયત કરવી’તી થોડક ખુલાસા કરવા’તા,
ઓ મોત જરા રોકાઈ જતે - બેચાર મને પણ કામ હતાં.

હું ચાંદની રતે નીકળ્યો’તો ને મારી સફર ચર્ચાઈ ગઈ,
કંઈ મંઝિલ પણ મશહૂર હતી - કંઈ રસ્તા પણ બદનામ હતાં.

જીવનની સમી સાંજે મારે જખ્મોની યાદી જોવી’તી,
બહુ ઓછાં પાનાં જોઈ શક્યો બહુ અંગત અંગત નામ હતાં.

પેલા ખૂણે બેઠા છે એ “સૈફ” છે મિત્રો જાણો છો ?!
કેવો ચંચલ જીવ હતો ને કેવા રમતારામ હતા !

’સૈફ’ પાલનપુર
------------

Saturday, September 22, 2007

A nice gujarati poem

Hi,
I received this poem from someone special. It it not written by her but it truely reflects the state of her heart :-)
-----------------------------------------------
કાગળમાં તારી યાદના કિસ્સાઓ લખ મને,
જો શક્ય હોય તો પ્રેમના ટહુકાઓ લખ મને !

તારા વિના અહીં તો છે ધુમ્મસ ફક્ત બધે,
તારી ગલીમાં કેવા છે તડકાઓ લખ મને !

અકળાઈ જાઉં એવા અબોલા ન રાખ તું,
તારા જ અક્ષરો વડે ઝઘડાઓ લખ મને !

કોઈ મને બીજા તો સહારા નહીં મળે,
અમથા જ તારે હાથે દિલાસાઓ લખ મને !

મારા જીવનનો પંથ હજી તો અજાણ છે,
ક્યાં ક્યાં પડ્યાં છે તારાં પગલાંઓ લખ મને !

Sunday, September 16, 2007

A couple of nice gujarati gazals

ઘરમાં એવાં કો’ક દિવસ ચોઘડિયાં આવે,
ખૂટે આંખમાં પાણી ત્યારે ખડિયા આવે.

ડૂબી ડૂબીને ડૂબવાનું શું માણસમાં ?
એક વેત ઊતરો ને ત્યાં તો તળિયાં આવે.

ડગલું એક ભરી શકવાના હોંશ નથી,પણ
ડગલું એક ભરું તો તારાં ફળિયાં આવે.

ઘંટીના પથ્થરની જેવા વિચાર છે, ને -
મારી તારી વચ્ચે બબ્બે દરિયા આવે.

શબ્દોની હૂંડી લઈ ભાષા સામે ઊભો,
પાછો વળવા જાઉં અને શામળિયા આવે.

-અશરફ ડબાવાલા

-------------------------------------------------------------
હૃદયને રસ્તે હું જન્મ્યો હતો, ખબર છે તને ?
રુદનને બદલે હું મલક્યો હતો, ખબર છે તને ?

હું તારી લટને કિનારે જ આવીને અટક્યો
ક્ષિતિજના ઢાળથી લપસ્યો હતો, ખબર છે તને ?

બિચારા ઈવ કે આદમને કંઈ ખબર ન્હોતી
પ્રણય મેં એમને શીખવ્યો હતો, ખબર છે તને ?
એ વર્ષોમાં તો રચાઈ નહોતી ભાષા છતાં,
હું બૂમ પાડીને બોલ્યો હતો, ખબર છે તને ?

સમયની શોધ થઈ તેની આગલી સાંજે
મેં ઇન્તજારને શોધ્યો હતો, ખબર છે તને ?

-મુકુલ ચોક્સી

Sunday, September 02, 2007

A few more gujarati gems

Hi,
Found some very interesting gujarati shers from an orkut community.
Here they are :
--------------
મરણ નું મૂલ્ય જીવનથી વધારે એ રીતે લાગ્યું,
ન આવે જ્યાં કોઈ મળવાને ત્યાં આખી સભા આવે.............
-----------------
સમયની તો સીમાઓ પૂરી થઈ
હવેજોઈએ કેવી ક્ષણ આવશે

અમસ્તા જ દરવાજો ખોલ્યો અમે
હતી ક્યાં ખબર કે મરણ આવશે?
---------------
જીવન એટલા માટે કોઇ ને અર્પણ કરી દીધુ...,
કે મોત આવે તો કહી શકુ, મિલ્કત પરાઇ છે...
-------------------
હવે તો ‘સૈફ’, ઇચ્છા છે કે મૃત્યુ દ્વાર ખખડાવે:
ઘડીભર તો મને લાગે કોઇના આગમન જેવું !
--------------------
એ બધાં ‘બેફામ’ જે આજે રડે છે મોત પર,
એ બધાંયે જિન્દગી આખી રડાવ્યો છે મને.
-----------------------
મન મરણ પહેલા મરી જય તો કહેવાય નહી
વેદના કામ કરી જાય તો કહેવાય નહી
આંખથી અસ્રુ ખરી જાય તો કહેવાય નહી
ધૈર્ય પણ પાણી ફરી જાય તો કહેવાય નહી
એની આંખોને ફરી આજ સુઝી છે મસ્તી…
દીલ ફરી મુજથી ફરી જાય તો કહેવાય નહી
આંખડી ભોળી, વદન ભોળુ, અદાઓ ભોળી..
પ્રાણ એ રુપ હરી જાય તો કહેવાય નહી…
કંઇ મજા મીઠી તડપ્વામાં મળે છે એ ને…
દીલ વ્યથા વે રે વરી જાય તો કહેવાય નહી
આંખનો દોષ ગણે છે બધા દીલ ને બદ્લે…
ચોર નીર્દોષ ઠરી જાય તો કહેવાય નહી
શોક્નો માર્યો તો મરશે નહી તમારઓ આ “ઘાયલ”
ખ્શી નો માર્યો મરી જાય તો કહેવાય નહી
-”ઘાયલ”
--------------------
‘બેફામ’ તોયે કેટલું થાકી જવું પડ્યું ?
નહિ તો જીવનનો માર્ગ છે ઘરથી કબર સુધી
------------------------
કદર બેફામ શું માંગુ જીવનની એ જગત પાસે,
કે જ્યાંનાં લોકો સૌ કેવળ મરેલાને વખાણે છે.
-------------------------
‘બેફામ’, મારા મૃત્યુ ઉપર સૌ રડે ભલે,
મારા જનમ ઉપર તો ફક્ત હું જ રોઉં છું.
----------------------------
રડ્યા ‘બેફામ’ સૌ મારા મરણ પર એ જ કારણથી,
હતો મારો જ એ અવસર ને મારી હાજરી નહોતી.
-------------------------------

Thursday, August 30, 2007

The Biggest Number

Hi,
Well, I was referred to a very nice article by ali today. It describes human's quest to find the biggest number, in a very interesting way. I actually wished to copy it over here to make sure I do not loose it, in case the original post is removed. But then the it contained some images too. So here is the place where original article can be found :
http://www.scottaaronson.com/writings/bignumbers.html

Sunday, August 26, 2007

Game of Coins

So, I am back again with an interesting puzzle. Credit goes to my dear friend Sambuddha Roy to introduce me to this puzzle as well as its very simple solution.

Here goes the puzzle :

Even number of coins are laid out in a straight line. Coins may have different denominations. Two players p1 and p2 are playing a game. When a player's turn comes he/she has to pick a coin from either end of the line. When all the coins are exhausted, player with the highest amount wins. A tie occurs whent both the player possess the equal amount.

Prove that if p1 goes first, he/she always have the stretagy such that he/she does not loose the game.


Solution :

Solution to this puzzle is very simple and I really felt really stupid when I came to know about the solution and its simplicity. As always, I tried to use induction to prove that p1 always have a winning stretagy ( or non-loosing stretagy). For the case when number of coins is 2, p1 can pick the larger of the two. But then things get complicated when we need to prove the induction step. In fact, I did not spend enough time to prove that using induction.

A very simple solution is that p1 can index the coins from 1 to n. Then, he can calculate sum total of odd-numbered coins as well as even-numbered coins. p1 can always pick coins in a way such that he/she always gets even-numbered or odd-numbered coins depending on which of those will make up a larger amount.

Sunday, August 19, 2007

Space v/s Time

Hi all,
I know there has been a long pause on my blog. Well, it was a transition period for me from IRL to IITK. Yes, I have joined its CSE department as a PhD student. Anyways, I know the title is somewhat misleading as many would think this post has something to do with einstein's theory of relativity and the four dimensional world. You are grossly mistaken if you think so.

Actually, as part of my coursework here I am attending a course by Prof Manindra Aggarwal. Well, it is a big mistake on my side that I have not registered for this course. Even the bigger mistake is that I have registered for a course named "Computational Number Theory and Algebra" by Prof Piyush Kurur. The content itself may be interesting but the way that guy teaches the course, makes it difficult. The worst part is that all the exams of this course are "take home" exams.

Anyways, let's get back to the point. It is indeed an honour to sit in Prof Manindra's class and see him deliver some of the toughest content of the course with a flair. All the people with computer science background are aware of the P not equals NP conjecture. This decade old conjecture has still remain unbeaten. In other words, this conjecture states that the set of problems that can be solved by a deterministic turing machine in polynomial time and the set of problems that can be solved by a non-deterministic turing machine in polynomial time are equal.

There is another notion called Space Complexity in computer science. Space complexity is a measure of the space required to solve any problem by an algorithm. One wonders, whether there is any difference between the set of problems which can be solved by a deterministic turing machine in polynomial space , and the set of problems which can be solved by a non-deterministic turing machine in polynomial space. It actually turns out that non-determinism does not give any more power over deterministic mechanism when space is the criterion. Due to Savitch's theorem it is proven that PSPACE equals NPSPACE.

One may wonder why the similar version in time complexity is yet unbeaten? Non-determinism gives the power to explore exponentially many threads of computation simultaneously. If a deterministic turing machine tries to mimic the behaviour of a non-deterministic one, it has to explore all the paths one by one. It costs time to go through all the paths one by one. One has to add up all the time that has been spend. But does one really have to add up the space as well??? I felt really stupid when I come to know that the reason why power of deterministic and non-deterministic turing machine comes out to be same, is that space can be reused!!!!

As a wild thought, may be if a deterministic turing machine can go back in time to explore the alternate future, thus, reusing the time we may as well have P = NP :D.