esully9007 esully9007
  • 23-10-2017
  • Mathematics
contestada

"1. how many ancestors does a node at level n in a binary tree have? provide justification."

Respuesta :

meerkat18
meerkat18 meerkat18
  • 02-11-2017

In binary tree there are n ancestor at level n.

Proof :

Take P(0): At node level 0, it has no ancestors since this is a roo tnode.

Take P(1): At node level 1, it has one ancestor. The ancestor is the root, its parents which is at level 0.

Take P(K): A node level K it has K ancestors. Its parent is at level K – 1.

Take P(K+1): At node K + 1 level have more than one ancestor than that of node at k level.

Thus there are n ancestor at level n in binary tree.

Answer Link

Otras preguntas

two hats are 1/3 of the group how many hats are in the whole group
What percent is 40 % of 120 % of x?
423 in base 5 to base 10
How many square feet of outdoor carpet will we need for this hole? 12 ft 7 ft 3 ft
Select all that are equal to 5^3 • 5^-7
In triangle ABC, c = 3, ∠A = 63°, and ∠C = 49°. Find a
The management at Mova Autos Inc. has realized that the company's sales have started to decline due to increasing competition. The management has been working o
Read the sentence and answer the question that follows. The cloudy moonless sky hampered the lost hikers lumbering down the steep treacherous trail. Which is t
Canister Industries uses labor hours to apply variable overhead to production. If the company's workers were very inefficient during the period, which of the fo
What benefits do you gain by developing a stakeholder analysis document?