Friday, April 07, 2006

My friend's valentine project! The Plan



Ok everyone makes mistakes and I am no different from others. My English is not great and so are my Typing skills. One thing I have to concentrate now is to review things once before I publish the stuff. You may ask what this is ….. You wouldn't ask me if you had read my previous blog.

Ok continuing with my friend Raj ………  I want to answer a question whether Raj is a true life character. Those who are very close to me will probably know the answer but my answer to the question is I don't know. I don't know still. It's hard to believe! But that's what the truth is!

Ok lets come back to the interesting part of it. What did Raj do next? Ok he needed a plan and he being a software Engineer had the project plan already with him. He decided to fit his valentine's plan within the Software project plan. He thought it would work as his projects did!

Ok he had to list  down the phases and work upon them one by one…….

First comes Requirements gathering. This is one of the easiest told but hardly done in most projects. But he decided lets do it perfectly(may be he thought he may get a perfect Valentine). Requirement gathering was simple. He had to ask questions to himself and know the answers.

Ok lets jump into the questions. First comes the main thing who should he fall in Love with, a girl. Ok ………. It was easy one (is it so?) and decided that lets find a girl.

 

In requirement  we need to define all terms and he tried to define Girl. Lets try Google what does it say about Girl..

ü                      a young woman; "a young lady of 18"

ü                      female child: a youthful female person; "the baby was a girl"; "the girls were just learning to ride a tricycle"

ü                      daughter: a female human offspring; "her daughter cared for her in her old age"

ü                      girlfriend: a girl or young woman with whom a man is romantically involved; "his girlfriend kicked him out"

ü                      a friendly informal reference to a grown woman; "Mrs. Smith was just one of the girls"
wordnet.princeton.edu/perl/webwn

ü                      A girl is a female human child, as contrasted to a male child, which is a boy. The term "girl" is used to indicate biological sex distinctions, cultural gender role distinctions, or both. An adult female human is a woman. A woman may be referred to colloquially as a "girl" in certain contexts; for example, the word is commonly used when discussing adult females in relationships, such as in the word girlfriend, which is often simply abbreviated to "girl". ...
en.wikipedia.org/wiki/Girl

ü                      Girl were an English glam band, whose lead vocalist was Phil Lewis, who later sang for L.A. Guns, Torme, Filthy Lucre, The Liberators, New Torpedos and several other bands. Phil Collen, who later joined Def Leppard, was one of Girl's guitarists. Gerry Laffy was the other guitarist in the band. Girl recorded several albums including Sheer Greed, Wasted Youth, and Killing Time. Sheer Greed is also the name of a band Gerry Laffy played in after Girl.
en.wikipedia.org/wiki/Girl_(band

 

People who are not software engineers will wonder whats he is doing. True this is what most of software engineers do …. most of the time. Search for data …. Information. And all other work are powered by copy and paste. Yes it's a easy to be a software engineer. Its easier than cooking and washing clothes (Believe me).

You may be wondering how my friend who is so used to questions didn't have any questions till now. He had but the bad    (good for others) thing is that he had to answer them all himself.

Girl, there are so many and he have to filter them out to come down to one girl who best matches his criterion.   So what next ….. next question is what type of girl. And the first thought that came to his mind when he thought about his valentine (and it after effects) is "Namitha". For people who are not aware as to who she is. She is one of the best actress that Tamilnadu has produced. Rumours are that she is going to act with Tom cruise in his next flick MI3.

But namitha had this problem that she was taller than him and she was little more beautiful than him. And having her as a girlfriend is like having a elephant as a pet. So ruled out.

Ok let get back to basic. What he is doing is a sequential search which will take O(n) to find the girl and based on his calculation it would take 9 years and 24 days approximately to find the best match if he starts searching them sequentially. So he decided to use Binary search technique for the same.

For people who are not aware of Binary search its pretty simple. It works by repeatedly searching in 50% lesser number of girls by rejecting 50% of the girls based on a particular criterion. So the main thing here is …. At each step in this search he has to reject 50% of the girls who cant be his girl friends based on some criteria.

So what next lets get to the searching procedure.

First condition : His Girl friend shouldn't be elder than him by 5 years and younger than him by 3 years. Afterall sachin is always there for Indian to follow him. So the higher age limit is increased to 5 years more and since girls who are younger than him by 3 years will be too younger and it will not be …… (Fine understood … ).

This proved to be great search criteria as and got further interesting when he checked up indian census reports

 

Population:

   Persons      1,027,015,247
   Males            531,277,078
   Females         495,738,169

 

With a sex ratio of 933 (which means that for every 1000 men there are 67 men who don't have matches. Considering that one man marries only one woman). So his search for a girl friend became even more important as he should not be one among the 67 men …………….

Now to find women among age group from 20 to 28 …… mathematics was there for the help. Considering that woman are evenly distributed in age and considering that average age of woman is 60.

The total number of women in age group from 20 to 28 is  8*495738169/60 is 66098422. Ok great we rejected almost 87% of women (As if everyone is applying to him for becoming his Girlfriend).

Again she should be a literate which brings down the number by 54% that is 34693148. Great results. But as every software engineer does he was searching the wrong way and he was intelligent enough to figure that out.

Its not the girls who are after him but its he who is after the girls. So …… after this great enlightment he started to think …. Considering this as a short term project (A proof of concepts) to check whether this approach works he didn't want to waste time in finding the exact target. He knows that there are more difficulties ahead than searching one.

So it came down to one among the girls whio he knew already. Ya one among the girls who had studied with him in school or college or one who is working with him. It was a easier search and he has a small list to choose from. Choose the best answer was one of the sections in the question paper where he was very much lucky during his school and college days.

So he came up with the four choices for his "Choose the best answer" and that decision proved to be far too costly in his life!

 

No comments:

Do you like this blog