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

  How does mpls work

How does MPLS work? Compare and contrast dedicated-circuit services and packet-switched services.

  Write the code to accomplish this task

A program needs to read a sequential access fi le, line by line, and display each line on the computer screen. The fi le is associated with the in File object. Write the code to accomplish this task.

  Use html5 to create a document that contains

Insert a horizontal rule between the h1 element and the p element. Open your new document in a web browser to view the marked up document.

  Problem regarding the business planning

1. Select a new business opportunity that you may have been pondering. Compile a list of ideas for possible implementation, and determine their strengths and possible challenges that you may face.

  Methodology for utilizing the framework

1. Provide a depiction (i.e., a diagram) of the components of the framework. You may take this from any source, as long as you cite it. 2. Provide a brief description of the each of the components of the framework. 3. Identify a methodology for uti..

  Create a database for managing our business

Evaluate the given statement and discuss some approaches to address the issue: "We spent several million dollars a few years ago to create a database for managing our business. In the past several months, we acquired a new business but its data does ..

  A new inventory control system is being implemented

He will be able to tell how many cases per shift each operator moves, and he plans to use this data to provide performance feedback that could result in pay increases or termination. He has asked you if there are any potential problems with using ..

  Create a database named sample.mdf

Register Table: (Refer to the sample screen shot but you have to include the other field mentioned in the requirement.) Your register table should have the following field:

  Write a while loop to print 1 through 6 in square brackets

Write a while loop to print 1 through 6 in square brackets

  Explaining models in system analysis and design

In System Analysis and Design: Models are widely used in wide variety of technical occupations beyond information technology.

  Modify the payroll program so that it uses a class to store

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the w..

  Indicate the designation of each edge

Assume that we have run Depth-First-Search (DFS) on a directed graph G(V, E) and obtainedthe following discovery and finishing times for each vertex in V

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