Analyzing the performance of top-k retrieval algorithms