Computer Science – Data Structures and Algorithms
Scientific paper
2009-07-04
Computer Science
Data Structures and Algorithms
Scientific paper
Although many authors have considered how many ternary comparisons it takes to sort a multiset $S$ of size $n$, the best known upper and lower bounds still differ by a term linear in $n$. In this paper we restrict our attention to online stable sorting and prove upper and lower bounds that are within (o (n)) not only of each other but also of the best known upper bound for offline sorting. Specifically, we first prove that if the number of distinct elements (\sigma = o (n / \log n)), then ((H + 1) n + o (n)) comparisons are sufficient, where $H$ is the entropy of the distribution of the elements in $S$. We then give a simple proof that ((H + 1) n - o (n)) comparisons are necessary in the worst case.
Gagie Travis
Nekrich Yakov
No associations
LandOfFree
Tight Bounds for Online Stable Sorting does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.
If you have personal experience with Tight Bounds for Online Stable Sorting, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Tight Bounds for Online Stable Sorting will most certainly appreciate the feedback.
Profile ID: LFWR-SCP-O-529917