We study the number of inversions after running the Insertion Sort or Quicksort algorithm, when errors in the comparisons occur with some probability. We investigate the case in which probabilities depend on the difference between the two numbers to be compared and only differences up to some threshold τ are prone to errors. We give upper bounds for this model and show that for constant τ, the expected number of inversions is linear in the number of elements to be sorted. For Insertion Sort, we also yield an upper bound on the expected number of runs, i.e., the number of consecutive increasing subsequences.
CITATION STYLE
Geissmann, B., & Penna, P. (2018). Inversions from sorting with distance-based errors. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 10706 LNCS, pp. 508–522). Springer Verlag. https://doi.org/10.1007/978-3-319-73117-9_36
Mendeley helps you to discover research relevant for your work.