Monday, November 24, 2014

The best FSM ;)

For the beginners - A finite-state machine (FSM) is an abstract machine that can be in one of a finite number of states. The machine is in only one state at a time

A conversation between my friend Neha and her 4 year old kiddo Riddhi.
Neha: Riddhu, lets sit down and cut your nails.
Riddhi: Why?
Neha: Because big nails are bad for health. Dirt accumulate in them and then while you eat they get inside you stomach and cause you pain. At times you have to go to the doctor too who may give you an injection.
Riddhi: But what if I keep them clean. I will wash them every 30 minutes so that they are clean.
Neha: Well, you cant always do that. Its easier to just keep them short.
Riddhi: Ummm....Ok mamma!

A relieved Neha cuts her nails and comes back smiling to me at her logical victory. But I guess the victory smile was a little too early. Riddhi soon called her back -
Riddhi: Mamma!
Neha: Yes baby?
Riddhi: Why don't you cut your nails too if its easier and healthier to keep them short?

I rolled down the floor laughing. Color drained from the poor Mamma's face as she envisioned her exclusive manicure completely ruined.

Moral of the story: Get you arguments premise checked before you utter them to the best FSM in the world - Kids!!!



No comments: