1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
levacccp [35]
3 years ago
12

Let m be an integer in the set {0,1,2,3,4,5,6,7,8, 9}, and consider the following problem: determine m by asking 3-way questions

, i.e. questions with at most 3 possible answers. For instance, one could ask which of 3 specific subsets m belongs to.
Give a decision tree argument showing that at least 3 such questions are necessary in worst case. In other words, prove that no correct algorithm can solve this problem by asking only 2 questions in worst case.

Engineering
1 answer:
Svetlanka [38]3 years ago
5 0

Answer:

Take any algorithm if that algorithm solves this problem it can be represented as a ternary decision tree. Therefore each question has at most three answers.

There are ten possible verdicts, the height of such kind of tree should satisfy

ℎ >= ⌈log3(10)⌉ = 3

Hence no such algorithm can ask less than three questions in the worst case.

---

b)

Each and every internal node represents a question asking whether m belongs to one of three possible subset of {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} or not

For example 0123|456|789 represented the questionDoes “m: belongs to {0, 1, 2, 3}, to {4, 5, 6}, or to {7, 8, 9}?"

Verdicts are placed in brackets "[ ]"

Explanation:

decision tree is attached below

You might be interested in
A large heat pump should upgrade 5 MW of heat at 85°C to be delivered as heat at 150°C. Suppose the actual heat pump has a COP o
AysviL [449]

Answer:

W=2 MW

Explanation:

Given that

COP= 2.5

Heat extracted from 85°C  

Qa= 5 MW

Lets heat supplied at 150°C   = Qr

The power input to heat pump = W

From first law of thermodynamics

Qr= Qa+ W

We know that COP of heat pump given as

COP=\dfrac{Qr}{W}

2.5=\dfrac{5}{W}

2.5=\dfrac{5}{W}

W=2 MW

For Carnot heat pump

COP=\dfrac{T_2}{T_2-T_1}

2.5=\dfrac{T_2}{T_2-(273+85)}

2.5 T₂ -  895= T₂

T₂=596.66 K

T₂=323.6 °C

7 0
3 years ago
What is the built-in pollution control system in an incinerator called
Kobotan [32]

Explanation:

hbyndbnn☝️

7 0
3 years ago
2. When manipulating your pedals, you should use your
astra-53 [7]

Answer:

D. left foot for the accelerator and your right foot for the brake.

* Hopefully this helps:) mark me the brainliest:)!!

7 0
3 years ago
Read 2 more answers
How many GT2RS cars were made in 2019
labwork [276]

Answer:

1000

Explanation:

3 0
3 years ago
Read 2 more answers
what are some questions about simple machines that don't make me sound like i didn't pay attention in the lesson?
Margaret [11]

Answer:

what are simple machines?

Explanation:

it is 2020 let's be honest all

8 0
3 years ago
Other questions:
  • The idling engines of a landing turbojet produce forward thrust when operating in a normal manner, but they can produce reverse
    7·1 answer
  • Is CO, an air pollutant? How does it differ from other emissions resulting from the combustion of fossil fuels?
    7·1 answer
  • Small droplets of carbon tetrachloride at 68 °F are formed with a spray nozzle. If the average diameter of the droplets is 200 u
    10·1 answer
  • Complex poles cmd zeros. Sketch the asymptotes of the Bode plot magnitude and phase for each of the listed open-loop mmsfer fuoc
    10·1 answer
  • In order to protect yourself if you have a dispute with another drivers insurance company you should:
    9·1 answer
  • The pressure gage on a 2.5-m^3 oxygen tank reads 500 kPa. Determine the amount of oxygen in the tank if the temperature is 28°C
    15·1 answer
  • the frequencies 10, 12, 23 and 45 Hz. (a) What is the minimum sampling rate required to avoid aliasing? (b) If you sample at 40
    13·1 answer
  • A Barnes and Books is interested in purchasing a two-story building for a new
    5·1 answer
  • Digital leaders are people who __ others down a particular path.
    13·2 answers
  • REVVIVE ME MY MOM WALKED IN MY ROOM AND SCARED THE BAJESUS OUTTA ME
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!