Sample complexity of rank regression using pairwise comparisons. (October 2022)