Question

Do 17.。

identify the counterfeit colll alu a. What is the number of final outcomes (the number U this problem in b. Find a lower bound on the number of comparisons required to solvt the worst case. c. Devise an algorithm that meets this lower bound (draw its decision tree) is to 17. One of four coins is counterfeit and is either too heavy or too light. The probl identify the counterfeit coin but not to determine whether it is heavy or light a. What is the number of final outcomes (the number of leaves in the decision b. Find a lower bound on the number of comparisons required to solve th tree)? the worst case. C. 18. One of four coins is counterfeit and is either too heavy or too light. The pr identify the counterfeit coin and determine whether it is heavy or light. oblem is to a. What is the number of final outcomes (the number of leaves in the decision tree)? b. Find a lower bound on the number of comparisons required to solve this problem in the worst case. c. Prove that no algorithm exists that can meet this lower bound. (Hint: The first com parison can be made with either two coins or four coins. Consider each case.) 19. Devise an algorithm to solve the problem of Exercise 18 using three comparisons in the

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Assume the our coins be namely 1, 2, 3 and 4.

We can group the coins in two different ways, [(12, 34)] or [(1, 2) and (3, 4)]. Let us consider the combination (12, 34),

Note: 12 it means that for first weighing the coins 1 and 2 are placed together, similarly for 34 coins 3 and 4 are placed together.

Corresponding decision tree is given below:

Weighing 1:

The outcome can be (12) < (34) i.e. we go on to left subtree or (12) > (34) i.e. we go on to right subtree.

The left subtree is possible in two ways,

A) Either 1 or 2 can be lighter (represented as L in tree) OR

B) Either 3 or 4 can be heavier (represented as H in tree).

Weighing 2:

Further on the left subtree, as second trial, we weigh (1, 2) or (3, 4). Let us consider (3, 4) as the analogy for (1, 2) is similar. The outcome of second trail can be three ways

A) (3) < (4) yielding 4 as defective heavier coin, OR

B) (3) > (4) yielding 3 as defective heavier coin OR

C) (3) = (4), yielding ambiguity. Here we need one more weighing to check a genuine coin against 1 or 2.

Weighing 3:

In tree we took (3, 2) where 3 is confirmed as genuine. We can get (3) > (2) in which 2 is lighter, or (3) = (2) in which 1 is lighter. Note that it impossible to get (3) < (2), it contradicts our assumption leaned to left side.

Similarly we can analyze the right subtree. We need two more weighings on right subtree as well.

Hence we need 3 weighings to find the counterfeit coin. Note that middle branch terminated after first weighing as the coins weight was equal which was contrary to questions as it says we definetly have one counterfeit coins and hence marked as impossible outcome. We got 11 leaves(boxed in decision tree) including impossible cases.

Answers:(a) 8 leaves (excluding impossible cases)

(b) 3

(c) Refer above explanation for algorithim and figure for decision tree.

Given N coins, if only one coin is counterfeit(which may be lighter or heavier). We need a decision tree with atleast (2N) leaves correspond to the outputs.

Add a comment
Know the answer?
Add Answer to:
Do 17.。 identify the counterfeit colll alu a. What is the number of final outcomes (the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • a) In a collection of 900 coins, one is counterfeit and weighs either more or less...

    a) In a collection of 900 coins, one is counterfeit and weighs either more or less than the genuine coins. Find a good lower bound on the number of balance scale weighings needed to identify the fake coin and determine whether it is too heavy or too light. Assume the balance scale has three states: tilted left, tilted right, or balanced. b)In a collection of 10 coins, 2 coins are counterfeit and weigh less than the genuine coins. Find a...

  • In a collection of 400 coins, one is counterfeit and weighs either more or less than...

    In a collection of 400 coins, one is counterfeit and weighs either more or less than the genuine coins. Find a good lower bound on the number of balance scale weighings needed to identify the fake coin and determine whether it is too heavy or too light. Assume the balance scale has three states: tilted left, tilted right, or balanced. At least _____ weighings are needed?

  • Please help writing a well structured document using the below Agile Runbook - Our Overall Delivery Process How do we initiate a Project? Any project is a response to a pain point or desire expresse...

    Please help writing a well structured document using the below Agile Runbook - Our Overall Delivery Process How do we initiate a Project? Any project is a response to a pain point or desire expressed by either customers, internal stakeholders, employees, or regulatory authorities. In short, a project is a time bound and specific goal oriented task-system that is born out of an ask from any stakeholder. Project initiation is laying down a new project by defining its goals, objectives,...

  • Can you answer only question 5and 6 Questions: 1. How could the promotion of UK Hoover...

    Can you answer only question 5and 6 Questions: 1. How could the promotion of UK Hoover have been better designed? Be as specific as you can. 2. Given the fiasco that did occur, how do you think Maytag should have responded? 3. Comment on the following statement: “Firing the three top executives of UK Hoover is unconscionable. It smacks of a vendetta against European managers by an American parent. After all, their only ‘crime’ was a promotion that was too...

  • First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below...

    First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below Include each of the following in your answer (if applicable – explain in a paragraph) Research problem: what do you want to solve using Delphi? Sample: who will participate and why? (answer in 5 -10 sentences) Round one questionnaire: include 5 hypothetical questions you would like to ask Discuss: what are possible outcomes of the findings from your study? Hint: this is the conclusion....

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

  • SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the...

    SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the company's new line of single-serve coffee pods or to await results from the product's launch in the United States. Key strategic decisions include choosing the target market to focus on and determining the value proposition to emphasize. Important questions are also raised in regard to how the new product should be branded, the flavors to offer, whether Kraft should use traditional distribution channels or...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT