Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

a)The left spine of a binary tree is a path starting at the root and following only left-child pointers down to a leaf. What is the expected number

a)The left spine of a binary tree is a path starting at the root and following only left-childpointers down to a leaf. What is the expected number of nodes in the left spine of an n-nodetreap?(b) What is the expected number of leaves in an n-node treap? [Hint: What is the probability thatin an n-node treap, the node with kth smallest search key is a leaf?](c) Prove that the expected number of proper descendants of any node in a treap is exactly equalto the expected depth of that node.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question