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

  Name of the processor-manufacturer-model

Review three processors of your choice. Please answer the following questions In the order listed. a. Name of the processor, manufacturer, model/series number and related.

  Who swallowed a spider

There was an old woman who swallowed a fly. I don't know why she swallowed that fly, Perhaps she'll die. There was an old woman who swallowed a spider,

  The point represented by p is in quadrant i

In mathematics, "quadrant I" of the cartesian plane is the part of the plane where x and y are both positive. Given a variable , p that is of type POINT-- a structured type with two fields, x and y, both of type double -- write an express..

  Examine how application pools will help to reduce costs

Examine how application pools will help to reduce costs of licensing of applications.

  Channel width needs to be twice range of frequencies

Based on the protocol,assume the channel width needs to be twice the range of frequencies used. How wide must the band be to accommodate 100 channels?

  Distinguish between hardware and software

Do you see technology progressing to the point that we may no longer distinguish between hardware and software and thus no longer perceive differing physical and intellectual interfaces?

  Implement a binary search or avl tree

You are to implement a Binary Search or AVL tree containing the details of known criminals.  The criminal object must minimally contain the following information.

  Identify potential opponents of the project in the authors

Critically read your assigned project as soon as it appears in ST. If you do not understand any issue or argument ation, do not hesitate to ask its authors for their explanation. Post your question in ST.

  Replace the db contents by simply running the new script

The design will evolve over the next couple of projects, so make sure you can quickly modify the database schemata and replace the DB contents by simply running the new script.

  List five different applications of wireless lans

What are the main elements of wireless networks? What is the fastest wireless network and what is the slowest? Which wireless networks go the farthest and which ones are designed for the shortest distances.

  Generation computers and other generation computers

What is the main difference between the 5th generation computers and other generation computers?

  Prove or disprove formally

The number of leaf nodes (nodes with no children) in a perfect binary tree of height h is no more than 2h -

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