What is optimal strategy if n is known

Assignment Help Basic Computer Science
Reference no: EM1358657

Q1) Consider the numerical 20 questions game. In this game, player 1 thinks of a number in the range 1 to n. Player 2 has to figure out this number by asking the fewest number of true/false questions. Assume that nobody cheats.

(a). What is an optimal strategy if n in known?

(b). What is a good strategy is n is not known?

Reference no: EM1358657

Questions Cloud

Explain how has american express leveraged its brand : Explain how has American Express Leveraged its brand into customer segments and created value through different card and program offerings.
Leaders as agents of social change : Leaders as agents of social change - Can you provide an analysis of the role of leaders and managers as agents of social change.
Make the journal entry : Brennan Steel Corporation as lessee signed a lease agreement for equipment for five years, starting December 31, 2007. yearly rental payments of $32,000 are to be made at the beginning of each lease year.
Autism spectrum disorders : Many people do not know that Autism is actually just one disorder on an entire spectrum of disorders that fall under the category of Autism Spectrum Disorders.
What is optimal strategy if n is known : Consider the numerical 20 questions game. In this game, player 1 thinks of a number in the range 1 to n. Player 2 What is an optimal strategy if n in known?
Determine the value of the electric potential : Determine the value of the electric potential. calculate the acceleration of the ball when it is 3 cm from the surface and again at the position determined in part b.
Current occupational environment : Current Occupational Environment - What changes in the economy and society have helped create the current occupational environment?
Elucidate what could be done to encourage people to spend : Elucidate what could be done to encourage people to spend more so as to increase aggregate demand and invariably, create employment possibilities.
Design a program using structured pseudocode : Design a program using structured pseudocode as demonstrated in the lectures and, ensuring all variables are declared, prompt the user for the appropriate input and display a meaningful output message.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Prepare business income statement for the period

With growing importance of computerised accounting systems, which inventory system (perpetual or periodic) has become more popular?  Explain why

  Relative risk comes form inside the organisation

Write a report on relative risk that comes form inside organisation as opposed to risk which comes from external sources.

  Explain two standard apis supported by jaxp

Explain two standard APIs supported by JAXP (Java API for XML processing) and give a comprison between two mechanism.

  Determine last element of a list using prolog

Using Prolog as programming language for LOGIC, create relevant command to do following tasks:-Determine the last element of a list. Find K'th element of list. (K=5)

  Estimate how much speedup would be gained from change

Suppose you are designing a computer system and are considering a change to your original design. Estimate how much speedup would be gained from this change. You must.show your work.

  Describing use of request for information

Describe in scholarly detail how you would utilize RFI (Request For Information) procedures to recognize potential vendors in the acquisition process, and RFQ.

  How many units of each component ordered from each supplier

If the Edwards production plan for the next period includes 1000 units of component 1 and 800 units of component 2, how many units of each component (C1, C2) should be ordered from each supplier (S1, S2, S3)?

  Design patterns in today-s development environments

In System Analysis and Design: Design Patterns - How widely used are design patterns in today's development environments?

  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.

  Explaining origins or genesis of wireless networking

Explain origins/genesis of wireless networking.

  Code scheme to meet marketing managers requirements

Design a code scheme that will meet the marketing managers stated requirements.

  How computer technology has changed our society

How have the major players including the government either made these statements true or false? What are examples of why or why not.

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