2 votes 2 votes The worst case running time to search for an element in binary search tree with $2^{\log_2 n}$ elements is represented as $\Theta\left(n^{x \log_2 y}\right)$ . The value of $x$ + $y$ is _____. Algorithms tbb-mockgate-4 numerical-answers data-structures binary-search-tree logarithms + – Bikram asked May 14, 2017 • retagged Sep 11, 2020 by ajaysoni1924 Bikram 692 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes Worst case searching time in BST for $n$ elements $=O(n).$ $2^{\log_2 n} = n$ {using $\log$ property) Now $n^{x\log y} = n$ for $x=1$ and $y=2.$ So, answer = $x+y = 3.$ raviyogi answered Nov 22, 2017 • selected Nov 22, 2017 by Arjun raviyogi comment Share Follow See all 11 Comments See all 11 11 Comments reply Show 8 previous comments Gate2022 commented Jan 17, 2019 reply Follow Share @jatin khachane 1 x=1/4 and y=16 , x=1/16 and y=$2^{16}$ also satisfying the equation there is no unique value 0 votes 0 votes Gate2022 commented Jan 17, 2019 reply Follow Share so don't put values in the equation just find it otherwise you will get the wrong answer $x\log_2y=1$ $\rightarrow y^x=2^1$ 0 votes 0 votes deepz commented Feb 5, 2020 reply Follow Share How come there is unique value for x and y? xlogy=1 can have many solutions as long as nothing is being said about the values x and y can have, right? 0 votes 0 votes Please log in or register to add a comment.