in DS
338 views
2 votes
2 votes

In a Binary Search Tree, a key with value 5 was searched after traversing nodes with values 1,3,4,6,7,8,9 not necessary in the same order. Lets P is the probability that 3rd element in the search path beginning from root is either 3 or 8, and N are the number of different orders possible in which given nodes can be traversed before finding node with value 5. Find  (N/10) + P

 

Please someone explain the solution.

in DS
338 views

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
1 answer
4
rsansiya111 asked in DS Dec 16, 2021
375 views
rsansiya111 asked in DS Dec 16, 2021
375 views