Vamsi Pavan’s Place

When curiousity outbursts …..

Entries Tagged as 'Placements'

Place the coins

May 14th, 2007 · No Comments · Puzzles

Question : There is a game to be played by two players. Each player puts a coin on a circular table one by one. Initially the table has no coins on it. Slowly the table gets filled up. The player who doesnot find a place to put his coin on the table loses. If you […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Hundred prisoners

May 14th, 2007 · No Comments · Puzzles

Question : There are hundred prisoners in a jail. The jailor is benign and decides to give them a chance to be free. Here is what he is going to do: make all the prisoners stand in a row so that a prisoner can see only those prisoners who are in front of him. Then […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

An Intellegent Escape

May 14th, 2007 · No Comments · Puzzles

Question : Take this one. You have to ask a single question, whose answer will drive you to the answer of the main question!
You have been convicted for some heinous crime. It is your destiny to spend the rest of your life in jail. However one day you find that things are not so […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Blue eyed people

May 14th, 2007 · No Comments · Puzzles

Question : A city has a tyrant king. The king hates people with blue eyes. So one fine day, he commands all blue eyed people to commit suicide. The people are so loyal to him that the blue eyed ones desperately want to kill themselves. Unfortunately, there is no way a man can know the […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Paratroopers

May 14th, 2007 · No Comments · Puzzles

Question : Two paratroopers jump from a plane and land on an infinite straight line. They want to find each other. Arrive at an algorithm so that they meet in finite time. You can use only the following type of statements.
1. if (some condition)
2. while (some condition)
3. Go left
4. Go right
Remember that both are going […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

The Rose Garden

May 14th, 2007 · No Comments · Puzzles

Question : You have a rose garden. You have planted 16 rose plants in a circle. Some of them are red and some are white. These plants are somwhat strange. They flower according to the following rules:
1. Each plant has a new flower everyday.
2. Each plant bears only one flower on any day.
3. The color […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Thousand poison bottles

May 14th, 2007 · No Comments · Puzzles

Question : There are one thousand bottles of wine. Only one of these bottles is contaminated with a deadly poison. The poison is so potent that even a single drop of contaminated wine can cause death. A scientist wants to find the contaminated bottle in 10 days. He has several rats at his disposal. The […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Finding defective coin using old weighing machine …

May 14th, 2007 · No Comments · Puzzles

Question : One of twelve pool balls is a bit lighter or heavier (you do not know) than the others. At least how many times do you have to use an old pair of scales to identify this ball?
(a pair of scales = a scale consisting of a lever resting on a fulcrum with weighing […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Twelve Ancestors [clues:trails] — Solution

April 25th, 2007 · No Comments · Puzzles

From general knowledge we know that every person has a male father and a female mother, and is not his or her own ancestor. The twelve include five women and their husbands (1) and two other men (2). None of the twelve has any children who are half-siblings (2); if someone’s mother […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Sockets for interprocess communication

April 23rd, 2007 · No Comments · Networks, Operating Systems, Placements

This is a simple tutorial on using sockets for interprocess communication.
The client server model
Most interprocess communication uses the client server model. These terms refer to the two processes which will be communicating with each other. One of the two processes, the client, connects to the other process, the server, typically to […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags: