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

Spanish and British possessions in the "New World" could BEST be described as
The ratio of students to adults on a field trip is 8 to 1. Which table correctly shows this ratio for each grade?
Can someone solve and explain
What was the role of the National Park Service? to protect land and natural resources to regulate the mining industry to improve farming techniques to c
blood cells that carry oxygen​
Which graph does NOT represent a function?
What is the constant of proportionality in the equation x/y =2/9 A:2/9 B:2 C:9/2 D:9
❤Please answer❤Yesterday a parking lot had 10 cars parked in the parking lot, 40% were silver, 3 were red, and the rest were blue. How many of the cars were blu
HELP PLEASE HELP SOMEONE PLEASE HELP ASAP
What’s the answer???