Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. You are at a party attended by n people (not including yourself), and you suspect that there might be a celebrity present. A celebrity

image text in transcribed
5. You are at a party attended by n people (not including yourself), and you suspect that there might be a celebrity present. A celebrity is someone known by everyone, but does not know anyone except herself/himself. (Of course everyone knows herself/himself). Your task is to work out if there is a celebrity present, and if so, which of the n people present is a celebrity. To do so, you can ask a person X if they know another person Y (where you choose X and Y when asking the question). (a) [10 marks] Show that your task can always be accomplished by asking no more than 3n 3 such questions, even in the worst case. Hint: Assume you ask A if he knous B. If the answer is yes what can you conclude about A? If the answer is no uhat can you conclude about B? (b) [5 marks] Show that your task can always be accomplished by asking no more than 3n- log2 nJ-2 such questions, even in the worst case

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

5. Provide opportunities for retesting when the stakes are high.

Answered: 1 week ago