don't miss to dine at 'under mango tree restaurant'... of course, they are charging much for the food, but it's worth paying... dining under mango tree shade with beautiful ambiance is a nice experience!!!
Wednesday, April 18, 2007
a trip to hampi...
don't miss to dine at 'under mango tree restaurant'... of course, they are charging much for the food, but it's worth paying... dining under mango tree shade with beautiful ambiance is a nice experience!!!
Thursday, April 12, 2007
saawan...
in the evening, i was feeling utterly bored and watching some lowsy movie on my SONY (this is my computer's name)... slowly, the cold breeze started coming from my balcony and in five minutes the entire scene has changed... first drop, second drop, more drops... and, it's raining... wow! we were longing for it since a month... the smell from soil during the first rain is too good... what a romantic aroma!!! i've started dancing and humming "hu la lla la laa lla laa llaa lley"...
these summer showers have brought with them some old sweet memories... last year, we were staying in those old (old is a very small adjective, i should say ancient) hostel rooms... and bangalore weather is too good and there used to be rain everyday... our rooms are in soo pathetic condition that, there are cracks in the walls and window glasses are broken... due to that cold breeze during nights, by the time we get up in the morning, my nose is filled/blocked with loads of phlegm, my voice changed to some vibrating south indian cinema hero, and head spinning like a top!!! thankfully, we are comfortably alloted rooms in new hostels (without cracks in walls and unbroken windows)... but still, those days were so sweet... of course, only to recollect but not to reexperience!!!
though the spring season is almost ended, most of the trees are still blooming with their colorful flowers... particularly, gulmohar are too good to see these days! thanks to ecological sciences department who are giving lot of scientific information about these flora... haaaaaaaa... i love this place!!! hope this cool weather remains till we leave iisc!!!
Wednesday, April 11, 2007
a puzzle that haunted me!!!

here it goes: there are twelve balls looking identical (shape, size and color)... but, only one of them is weighing differently (it is not given whether lighter or heavier than the rest)... the puzzle is to find that odd one using a simple balance (without any weights) for only three times!!! also, you should be able to tell whether the odd one is lighter or heavier than the rest!!!
just for fun, i am giving you a c-program below to check whether your logic is correct or not!!! make sure that you change those square brackets to include header files to angular brackets... try it... all the best!
the program
#include[stdlib.h]
#include[math.h]
#include[ctype.h]
#include[stdio.h]
void balance(int, int []);
main()
{
int V[13];
int n,i,k;
int choice,correct,weight,weighed;
float dummy;
for(i=1;i<=12;i++) V[i]=3;
srand(time(NULL));
dummy=rand();
correct=(int)((dummy/RAND_MAX)*12)+1;
dummy=(float)rand()/RAND_MAX;
if(dummy<=0.5) { V[correct]=V[correct]-2; weight=0;}
else { V[correct]=V[correct]+2; weight=1;}
printf("program to find odd man out from a group of 12\n");
printf("you are allowed to use the balance for 3 times\n");
for(k=1;k<=3;k++) { printf("\nyour chance number %d\n",k);
err1: printf("enter the number of objects in each plate:");
scanf("%d",&n);
if(n>6) {printf("\ninvalid choice\n");goto err1;}
else
balance(n,V);
}
printf("\n\nenter the index of odd man:");
scanf("%d",&choice);
if(choice==correct)
{
printf("\nis it heavier or lighter?");
err2: printf("\n1:heavier\t\t0:lighter");
scanf("%d",&weighed);
if((weighed!=0)&&(weighed!=1))
{ printf("\ninvalid choice!"); goto err2;}
if(weighed==weight)
printf("\n\ncongrats! your logic is correct");
else printf("\n\noops! you got it wrong!");
}
else printf("\n\noops! you got it wrong!");
}
void balance(int n,int V[])
{
int i,sumL,sumR,L[6],R[6];
sumL=sumR=0;
for(i=1;i<=n;i++)
{
printf("\nenter L[%d]:",i);
scanf("%d",&L[i]); sumL=sumL+V[L[i]];
}
for(i=1;i<=n;i++)
{
printf("\nenter R[%d]:",i);
scanf("%d",&R[i]); sumR=sumR+V[R[i]];
}
if(sumL==sumR) printf("both sides equal\n");
else if(sumL > sumR) printf("left pan heavier\n");
else printf("right pan heavier");
}
Monday, April 09, 2007
phir milenge!

Sunday, April 08, 2007
few observations!!!

last week, i happened to watch the movie "the pursuit of happyness"... it was truly inspiring story... at that very moment, i have decided... decided to work hard, really hard to become great!!! after that, i thought why shouldn't i start working from tomorrow? and that tomorrow has not yet arrived!!! and i strongly doubt whether it will arrive at all ;-)
yesterday, after a very small nap of 4 hours in the afternoon, i went to our gymkhana terrace, with an intention to watch sunset... by the time i reached there, sun was still bright enough to stop me staring at him... my eyes caught a beautiful girl sitting on the stadium steps (incidentally, with marvelous curves), and i kept watching her... after a while, i realized that i was not watching sunset and turned back... sunset is over already... still, it was a beautiful evening!!!
Sunday, April 01, 2007
rubik's revenge!!!

