Draw a decision tree for an algorithm

Assignment Help Basic Computer Science
Reference no: EM131252784

Advanced fake-coin problem There are n ≥ 3 coins identical in appearance; either all are genuine or exactly one of them is fake. It is unknown whether the fake coin is lighter or heavier than the genuine one. You have a balance scale with which you can compare any two sets of coins. That is, by tipping to the left, to the right, or staying even, the balance scale will tell whether the sets weigh the same or which of the sets is heavier than the other, but not by how much. The problem is to find whether all the coins are genuine and, if not, to find the fake coin and establish whether it is lighter or heavier than the genuine ones.

a. Prove that any algorithm for this problem must make at least [log3(2n + 1)] weighings in the worst case.

b. Draw a decision tree for an algorithm that solves the problem for n = 3 coins in two weighings.

c. Prove that there exists no algorithm that solves the problem for n = 4 coins in two weighings.

d. Draw a decision tree for an algorithm that solves the problem for n = 4 coins in two weighings by using an extra coin known to be genuine.

e. Draw a decision tree for an algorithm that solves the classic version of the problem-that for n = 12 coins in three weighings (with no extra coins being used).

Reference no: EM131252784

Questions Cloud

Find all the mixed strategy equilibria of the game : Specify this situation as a strategic game. -  Use the symmetry of the game to show that the unique equilibrium payoff of each player is 0.
Identify health concerns or disease : Create a public service ad, with appropriate images, to be printed in the Sunday edition of your newspaper. Include the following points: Identify the nutritional needs for a developing embryo and fetus and how to obtain them. Identify health concer..
How many rounds are there in such a tournament : Design an efficient algorithm to determine the second-best player using the information produced by the tournament. How many extra games does your algorithm require?
How job analysis and job evaluation could be used : Determine how job analysis and job evaluation could be used at Customers First to develop an internally consistent compensation system.
Draw a decision tree for an algorithm : Draw a decision tree for an algorithm that solves the classic version of the problem-that for n = 12 coins in three weighings (with no extra coins being used).
Find a completely mixed nash equilibrium : Find a completely mixed Nash equilibrium in which each player assigns the same probability to the actions 1, 2, and 3.
Briefly explain the two types of privileged relationships : Determine the differences between an inference or conclusive presumption, a true presumption, a rebuttal presumption, and a mandatory presumption.
Determine the best way to leverage compensation surveys : Determine the best way to leverage compensation surveys to set the level of compensation for your current (or future) job position. Provide specific examples to support your response.
Write an autobiography of you in relation to your career : Write an autobiography of you in relation to your career. The purpose of this assignment is to give you an opportunity to reflect on how your career has been shaped by your life thus far and what you are looking for in future career opportunities

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd