1
$\begingroup$

Is there some kind of algorithm for sorting of set, when there is comparison of just some pairs?

Example 1: set(a, b, c, d, e) pairs(a>b, ce)

Example 2: set(a, b, c, d, e) pairs(a>b, d>b, c>d, d>e)

asked Sep 27, 2019 at 7:23
$\endgroup$
1
  • $\begingroup$ I don't understand what "pairs(a>b, ce)" is supposed to mean. But perhaps look at en.wikipedia.org/wiki/Topological_sorting. $\endgroup$ Commented Sep 27, 2019 at 18:40

1 Answer 1

1
$\begingroup$

The problem was considered by Kahn and Saks in their paper Balancing poset extensions. Earlier related works are Fredman, How good is the information theory bound in sorting? and Linial, The information-theoretic bound is good for merging.

Kahn and Saks showed that partially sorted lists can be sorted in $O(\log M)$, where $M$ is the number of possible orderings consistent with the partial order. I'm not sure that their algorithm is efficient, though. The best constant in the big O is the subject of the 1/3–2/3 conjecture.

answered Sep 27, 2019 at 8:44
$\endgroup$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.