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

Why do you see lightning before you hear the thunder? The rain in the air slows the sound waves down. Light travels faster than sound through the air. The thund
with examples of amino acids, explain the type of isomerism that exists in amino acids.​
What can replace the question mark in the diagram above? A. The settlers who started Virginia took this belief with them to the New World. B. The settlers who s
what are the advantages of Dynamic programming
The organelle that serves as a microtubule organizing center during cell division is the
PLZ HELP!!! I’ll give brainly !!!!!
HELPPPP !!!! anyone please ?​
this is due today please heeeelp!!!
Which table represents a linear function? ​
1) Her favourite (plate - dish - dash - course) is roast chicken.2) (Personally - In person), I think it is important to make a study plan.3) She likes to invol