Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Given 4 elements:{x1,x2,x3,x4}, it is known thatx1< x2andx3< x4. Now we want to find the2nd smallest element in this array. What is the minimum number of comparisons to do this?
Given 4 elements:{x1,x2,x3,x4}, it is known thatx1< x2andx3< x4. Now we want to find the2nd smallest element in this array. What is the minimum number of comparisons to do this?