I would like to know if there exists an algorithm to find the median of an array of odd length. Obviously one could just sort the array and take the middle but ideally by only being interested in the median one could make gains in terms of time complexity of the algorithm.
If no such algorithm exists, any suggestions regarding how to go about developing such an algorithm would be great.
Thanks