Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Identifying a fake coin. There are n coins c1,02,.. .cn. Of these n coins, n 1 are genuine and one is fake. All the

image text in transcribed

1. Identifying a fake coin. There are n coins c1,02,.. .cn. Of these n coins, n 1 are genuine and one is fake. All the genuine coins have the same weight; the fake coin is lighter or heavier. A genie is present to help you figure out which coin is fake. You're allowed to put some coins on his left hand, another set of coins on his right hand. He will tell you if the two sets of coins have equal weight or not. Now he gets grumpy when you make too many weighings so your goal is to come up with a procedure that identifies the fake coin in as few weighings as possible. Here's a simple procedure for finding the fake coin in the case when n 3: First, put ci on the genie's left hand and c2 on his right hand. If their weights are equal, C3 is the fake coin. If their weights are not equal, compare c1 and C3. If their weights are equal, C2 is the fake coin; otherwise, c is the fake coin. This procedure identifies the fake coin in 2 weighings a. When n -9, describe a procedure that would identify the fake coin using as few weighings as possible in the worst case. Generalize your procedure to an arbitrary n. How many weighing are needed by your procedure in the worst case? Your answer should of course be in terms of n! b. Suppose the genie decides to be nicer. When the sets of coins on his left and right hands have different weights, he will tell you which set is heavier. How might you utilize this additional information to identify the fake coin faster? When there are n coins, how many weighings will your procedure make in the worst case? 1. Identifying a fake coin. There are n coins c1,02,.. .cn. Of these n coins, n 1 are genuine and one is fake. All the genuine coins have the same weight; the fake coin is lighter or heavier. A genie is present to help you figure out which coin is fake. You're allowed to put some coins on his left hand, another set of coins on his right hand. He will tell you if the two sets of coins have equal weight or not. Now he gets grumpy when you make too many weighings so your goal is to come up with a procedure that identifies the fake coin in as few weighings as possible. Here's a simple procedure for finding the fake coin in the case when n 3: First, put ci on the genie's left hand and c2 on his right hand. If their weights are equal, C3 is the fake coin. If their weights are not equal, compare c1 and C3. If their weights are equal, C2 is the fake coin; otherwise, c is the fake coin. This procedure identifies the fake coin in 2 weighings a. When n -9, describe a procedure that would identify the fake coin using as few weighings as possible in the worst case. Generalize your procedure to an arbitrary n. How many weighing are needed by your procedure in the worst case? Your answer should of course be in terms of n! b. Suppose the genie decides to be nicer. When the sets of coins on his left and right hands have different weights, he will tell you which set is heavier. How might you utilize this additional information to identify the fake coin faster? When there are n coins, how many weighings will your procedure make 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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Transactions

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

Which diagnostic test is most commonly used to confirm PROM?

Answered: 1 week ago

Question

What is the hallmark clinical feature of a molar pregnancy?

Answered: 1 week ago

Question

List behaviors to improve effective leadership in meetings

Answered: 1 week ago