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

How many bacteria will there be in 10 hours if i started with one?
What is 24.7 equal to
How was scriptotherapy used? A.Soldiers filmed footage of the war in Vietnam to tell their story. B.Writers who lived in the 1960s and 1970s wrote unusual stor
What does Tom Canty do that makes some people in the palace suspect that something is wrong with Prince Edward?
*Quick* Which of the following is not an example of a response to literature? A.) a journal entry about a novel B.)a critical review of a play C.) a movie based
Which binomials is a factor of 16x^2 + 40xy + 25y^2?
What is the value of c? __units
What is the greatest common factor of the terms 14c2d and 42c3d?
HELP PLEASE WILL MARK BRAINLIEST NEED THIS DONE ASAP OR I FAIL 50 POINTS! 1. Which expression is equivalent to (-2)(a+6)? 2. To which subsets of real numbers do
(x-5)^2 =17 rounded to the nearest tenth