What is the average number of guesses needed

Assignment Help Basic Computer Science
Reference no: EM131189685

The guess-a-number game starts with one player (the chooser) picking a number between 1 and 100 (inclusive) and secretly writing it down. The other player (the guesser) attempts to guess the number. After each guess, the chooser responds with "correct" (the guesser guessed the number and the game is over), "higher" (the actual number is higher than the guess), or "lower" (the actual number is lower than the guess).

a. Explain why the guesser can receive slightly more than one bit of information for each response.

b. Assuming the chooser picks the number randomly (that is, all values between 1 and 100 are equally likely), what are the best first guesses? Explain why these guesses are better than any other guess. (Hint: there are two equally good first guesses.)

c. What is the maximum number of guesses the second player should need to always find the number?

d. What is the average number of guesses needed (assuming the chooser picks the number randomly as before)?

e.  Suppose instead of picking randomly, the chooser picks the number with the goal of maximizing the number of guesses the second player will need.
What number should she pick?

f. How should the guesser adjust her strategy if she knows the chooser is picking adversarial?

g. What are the best strategies for both players in the adversarial guess a number game where chooser's goal is to pick a starting number that maximizes the number of guesses the guesser needs, and the guesser's goal is to guess the number using as few guesses as possible.

Reference no: EM131189685

Questions Cloud

Describe the concepts of federalism and checks and balances : Describe the concepts of federalism and checks and balances, and provide one example to illustrate each. In what ways did the Civil War and the Great Depression change the Constitution?
What happens when there is a failure in an sla : What happens when there is a failure in an SLA? Use an example to analyze a failure in an SLA and how important SLAs are to the buyer in a BPO contract agreement.
Defend the cost of benchmarking in an industry : What is benchmarking? Please support your answer. Defend the cost of benchmarking in an industry.
What specifically do you do to complete your tasks : What specifically do you do to complete your tasks? What are your thoughts about how technology might improve your processes? What are the challenges and obstacles that would be overcome with the use of an information system
What is the average number of guesses needed : What are the best strategies for both players in the adversarial guess a number game where chooser's goal is to pick a starting number that maximizes the number of guesses the guesser needs, and the guesser's goal is to guess the number using as f..
Current situations and discussions in class : Why does a company need to know about laws such as the WARN Act? Convince the executive team that communicating information such as the WARN Act is important when a BPO contract has been signed. Use examples from current situations and discussions..
What blind spots could your theory lead you to have : What blind spots could your theory lead you to have? What personal values seem to underlie your theory; that is, "People, managers, or organizations should/not _______(what?)."
Define capacity and priority : What is meant by value added and why is that important? Provide an example of at least two value added products. Define capacity and priority. Why are each of these important to production planning? Explain your answer and provide examples for ea..
Storage management and security : Select a restaurant with which you are familiar (it can be the same one you used previously) and determine the most likely storage management challenge that restaurant would face, along with how you believe the restaurant addresses that challenge.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the programming model of a hcs12 microcontroller

What is the programming model of a HCS12 microcontroller

  Find the least-squares line appropriate for this data

Find the least-squares line appropriate for this data.

  Show how the value ascii miriam is stored in memory

Show how the value ASCII "MIRIAM" is stored in memory in Big Endian format starting at location 100 hexadecimal. Assume that each memory location stored two ASCII characters.

  Throughout this course you have been asked to research and

throughout this course you have been asked to research and respond to various ethical dilemmas and regulations that

  Write java program that allows the user to enter wall space

Write a Java program (from scratch) that allows the user to enter the wall space to be painted and the price of paint per gallon.

  Give the average number of byte-order conversions needed

The probability that both endpoints are big-endian is p 2 ; the probability that the two endpoints use different byte orders is 2p(1 - p).

  Expert system or other intelligent information system

Since the topics are general, try to choose topic that you are interested to be proposed for major project. Determine more specific system, e.g. a disaster notification through mobile application, learning mathematics with Kinect for kids, etc.

  What are the three aspects of reliability

What are the three aspects of reliability?

  Theurl of the article

Find 1 article related to  security and the cloud. and to turn in the following: (1) TheURL of the article, (2) A brief summary of the article

  Practice basic vb development steps

Read and practice basic VB development steps in Chapter 1 of the textbook. Read Chapter 2 inProgramming in Visual Basic .NET 2010and practice Your Hands-On Programming Example.

  Prioritize the various cyber threats

Use research to add credibility. We learned about a lot of different cyber threats. They're not all equally dangerous. Make sure you prioritize the various cyber threats for the audience.

  Guidelines regarding the initial comment section

Observe the usual guidelines regarding the initial comment section, indenting, and so on.  In addition, In if-else statements, indent statements to be executed for if or else condition three spaces.  Align else or else if with corresponding if. I..

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