Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
the algorithmic problem of ordering a set of elements with respect to some ordering relation.
2
votes
1
answer
544
views
Sort algorithm input probabilities
Suppose that there is an algorithm which sorts a sequence of $n$ elements
$$a_1, a_2, ..., a_n$$
Each of the $a_i$ is chosen with probability $1/k$ from a set of $k$ distinct integer numbers.
Is i …
5
votes
2
answers
2k
views
Probability that a uniformly random sequence is already sorted
Now I tried tackling this question from different perspectives (and already asked a couple of questions here and there), but perhaps only now can I formulate it well and ask you (since I have no good …