Draw a decision tree for an algorithm that solves problem

Assignment Help Basic Computer Science
Reference no: EM131263700

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: EM131263700

Questions Cloud

Describe at least one example of humor in your own career : Describe at least one example of humor in your own career or another part of your life, and analyze what theory or theories are seen in that example.
Lingering unemployment in the economy : "Unemployment insurance, and other government welfare programs, may have played a significant role in the lingering unemployment in the economy since the Great Recession of 2007-2009." Why would this be the case?
How many extra games does your algorithm require : 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?
What are some of the decisions managers use it for : Break-even analysis is a useful tool for decision making. What are some of the decisions managers use it for.
Draw a decision tree for an algorithm that solves problem : 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).
Describe different forms of alternative dispute resolution : Explain the purpose of business law and how the judicial system fits into society -- including business. Differentiate the federal court structure from your state's court structure. Describe the different forms of Alternative Dispute Resolution (ADR)..
What decision making model would you use to make decision : What decision making model would you use to make this decision (Page 244 in the Org. Beh. text)? Would any of the techniques for making better decisions assist us in this decision (Page 255 in the Org. Beh. text)?
Write a research paper about fletc : Write a research paper about FLETC. The total length of the paper must be at least 2,000 words (approximately 8 pages) in APA format -  Describe the mission and scope of the organization.
Write a paper on given topic : Write a four page paper. - Taking into consideration each of the three perspectives on inclusive education- educational, social, and legal  - How do they impact your responsibility as an educator in terms of student outcomes.

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