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

What is the relationship between china's continued economic expansion and its ruling authorities?
Someone please help?
State the utility of aluminium
A distance-time graph indicates that an object moves 100m in 4s and then remains at rest for 6s. What is the average speed of the object?
What is the value of 5|Y|+4|Z|? Please help
How would I answer ¿Cuales comidas te gustan?
erika estimates that she is 200 to 300 miles away from her destination. if her car travels 25 miles per gallon of gas and each gallon costs $4, what is the best
ill give u brainliest plz help Describe the process of photosynthesis in plants. Why is this process important to animals and humans?
Can someone help? *DUE TOMORROW*
Describe the conditions that were found within factories during the Industrial Revolution.