I am struggling to establish the 'O' complexity of finding the kth smallest element in an array using tournament algorithm.
I have formed the reverse-tree ,with the smallest element at the root node of the inverted tree.[(n-1)*log n]
Now we ascend the inverted tree starting from the smallest element at the bottom.
Wouldn't finding the index of the root element at each level be a O'n' operation again?
I would have to traverse the array at each level to find the index of the smallest(root) element via 'n' comparisons.[n*log n]
Is there any faster way to devise the index of the root element at each level?