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
Carl why is there a dead man in the living room?
scoray [572]
You always need some company
3 0
3 years ago
Technician A says you should place the air ratchet setting to
Bas_tet [7]
I think it’s b sry if I’m wrong tho
6 0
3 years ago
. In a water cooling tower air enters at a height of 1 m above the ground level with velocity of 20 m/s and leaves the tower at
Zinaida [17]

Answer:

w ( mass flow rate of air ) = 3.16 kg/s

Explanation:

<u>Determine the mass flow rate of air </u>

mass flow rate of water = 1.5 kg/s

Height at which air enters the cooling tower = 1m

velocity of air entering at 1 m = 20 m/s

Height at which air leaves the cooling tower = 7 m

attached below is a detailed solution of the problem

4 0
3 years ago
How is an orthographic drawing similar to or different from an isometric drawing?
evablogger [386]
An isometrical drawing is a nearly 3d drawing showing the object's width and depth in a complete image, from each curved plane of the orthhographic view, the viewpoint is at a 45 degree angle. From an observations point of view, isometric differs, since all longitudes are true.
4 0
3 years ago
Read 2 more answers
A zener diode exhibits a constant voltage of 5.6 volts for currents greater than five times the knee current.Izk is specified to
iren2701 [21]

Answer:

<u><em>note:</em></u>

<u><em>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</em></u>

Download docx
5 0
3 years ago
Read 2 more answers
Other questions:
  • According to the HERARCHY of hazard control what sequence is specified for protecting workers from chemical hazards assume that
    7·1 answer
  • Under a construction management (CM) contract, should the CM firm's responsibilities normally begin at the construction phase, t
    5·1 answer
  • Determine the mass flow of nitrogen in an 8-in.-diameter duct if it has a velocity of 16 ft/s. The nitrogen has a temperature of
    10·1 answer
  • Technician a says that diesel engines can produce more power because air in fuel or not mix during the intake stroke. Technician
    9·1 answer
  • Draw the logic circuit for each of the following. For each gate, determine if it generates either EVEN or ODD parity bit and fin
    5·1 answer
  • g A 12,000 m3/day treatment plant has a rectangular sedimentation basin with dimensions 12 meters wide, 3 meters deep, and 25 me
    8·1 answer
  • If i build thing a and thing a builds thing b did i build thing b
    5·2 answers
  • Anyone want to play among us with me the code is MMJSUF
    14·2 answers
  • “We have to redo the deck we built last week,” Bennett tells his coworkers. “I just tested it, and it doesn’t hold the minimum w
    10·1 answer
  • _________ is an example of an electrical device.<br> A) PlugB) CordC) CableD) All of the above
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!