Solved by Expert Tutors
Solved by Expert Tutors
Question

Algorithm, Computer Science: (if you need more information, please mention what kind of information you need, thank you.)

Design a strategy that minimizes the expected number of questions you will ask in the fol-
lowing game. You have a deck of cards that consists of one one, two twos, three threes, and
so on up to nine nines for a total of 45 cards. Someone draws a card from the shuffled deck
and looks at its value (hiding it from you). The goal is to determine the value of the card
through asking a series of questions, each of which must be answerable with &quot;yes&quot; or &quot;no&quot;
(such as &quot;Is the card a nine?&quot;).
To answer this question, you should express your strategy as a decision tree. You may either
explicitly draw the decision tree or describe its construction in sufficient detail so that I could
draw it from your description. If you draw the tree instead of describing its construction, give
a brief (1-2 sentences) description of how you came up with it.
Furthermore, briefly explain why this minimizes the expected number of questions you will
ask in this game. You are not required to give a formal proof.
Hint: The first question to ask in the optimal decision tree is &quot;Is the card one of {4,5,9}?&quot;
Equivalently, the question can be &quot;Is the card one of {1, 2, 3, 6, 7, 8 }?&quot;

iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna.

gue

ce dui le

facilisi

s ante, d

m ipsum

Donec al

inia pul

Donec al

usce dui

a molesti

ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum

facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapib

fficitur laoreet. Nam risus ante, dapibus a molestie consequa

acinia pulvi

r

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents