1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Flauer [41]
4 years ago
9

Pair up with someone whose birthday you do not know. Find out their birthday using binary search, asking whether their birthday

is earlier or later in the year than each of your guesses. How many guesses might be required to guarantee you find out their birthday
Health
1 answer:
Anit [1.1K]4 years ago
6 0

Answer:

the best you can do is ask something that splits the search space — the potential birthdays, in this case — in half.

Explanation:

For this case, you’ll need to split the 365 days in a year in half 9 times to isolate a single day. 365 –> 183 (1) –> 92 (2) –> 41 (3) –> 21 (4) –> 11 (5) –> 6 (6) –> 3 (7) –> 2 (8) –> 1 (9). The easy way to figure this out is to realize that 512, or 29, is the smallest power of 2 greater than 365.

Usually, when people find out that I work with computers, they ask me to fix theirs. They don’t really care about what I actually do; to the average person, programming is opaque. But now I see another avenue for our skills: parlor tricks.

– I’ll guess your birthday with just 9 yes-or-no questions! (binary search)

– I’ll name a number in 2 seconds bigger than anything you can name in 10! (Busy Beaver or any other non-computable function)

– Draw any map you want, however complicated, and give me just four (different) colored crayons. No matter what the map looks like, I’ll fill it in so that no adjacent countries have the same color! (four-color theorem)

– Here’s an easy problem: I’ll give you ten numbers, and I’ll guarantee that some of them, when added together, sum to 100,000. But I’ll bet you can’t figure out which ones in 5 minutes. Only ten numbers in all! (subset sum is NP-Complete)

– You give me a bunch of cities and highways between the cities. I’ll immediately tell you whether it’s possible to start at one city, drive on every highway between every city exactly once, and end up back at the original city! (Eulerian cycle)

– Any others?

You might be interested in
What does stubborn mean
fenix001 [56]
Having or showing dogged determination not to change one's attitude or position on something, especially in spite of good arguments or reasons to do so.
5 0
3 years ago
Read 2 more answers
I was bron in qatar but my parent was born in india so will i easliy get into every mall
Mashutka [201]

Answer: Yes you can

HOPE THIS HELPs

5 0
3 years ago
Read 2 more answers
Which of the following is not a good source of fiber?
sladkih [1.3K]

Answer:

vegeetables grains

Explanation:

8 0
3 years ago
3 ways prescription drugs are abused
Ira Lisetskai [31]

Answer:

over dosing

mixing with other pills

And Taking when not needed

8 0
3 years ago
Individuals going through dramatic mood shifts in short periods of time may be suffering from: schizophrenia personality disorde
Mama L [17]

Answer: manic depression

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • How many people were linked to HIV care?<br> 874,056<br> 437,028<br> 655,542<br> 262,217
    8·2 answers
  • How will you know when bullying is solved?
    8·1 answer
  • Why was an analysis of Mr. and Mrs. Stamos blood ordered? 04.02 Components Of Blood
    14·1 answer
  • Hormones released during exercise that can cause a person to get a "physical high" are known as
    5·1 answer
  • The plasma membrane is _
    6·1 answer
  • Which one of the following guidelines is not part of the nutrition guidelines for vegetarians as recommended by the American Die
    13·2 answers
  • Is water wet why or why not
    5·2 answers
  • Which interferes with the nurse’s ability to participate in changing issues affecting patients?
    12·1 answer
  • 11. An example of static posture position is
    12·1 answer
  • SOMEONE HELPPPP ILL BRAINLIST ITS IMPORTANT!!
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!