Comparative study of ranking algorithms