I know similar problem like “sort 5 numbers in 7 comparisons”. I know no general algorithms exist. Do I just enlist all possible game trees?

I have a collection of vectors, let`s say $n$ vectors. I am trying to find an easy way to SORT these vectors in that way that after sorting of vectors $(V_1,V_2,…,V_n)$ the first vector $V_1$ and the last vector $V_n$ will be two furthest vectors. Next $V_{n-1}$ will be the second farthest vector from the […]

How can I prove that $T(n) = 2T(n/2) + n$ is $O(n \log n)$ ?

An article posted yesterday (http://www.i-programmer.info/news/112-theory/3280-pancake-flipping-is-hard-np-hard.html) references a new study released on Arxiv (http://arxiv.org/abs/1111.0434v1) with the following summary: Pancake Flipping is the problem of sorting a stack of pancakes of different sizes (that is, a permutation), when the only allowed operation is to insert a spatula anywhere in the stack and to flip the pancakes above […]

From CLRS book for MAX-HEAPIFY procedure : The children’s subtrees each have size at most 2n/3 – the worst case occurs when the last row of the tree is exactly half full I fail to see this intuition for the worst case scenario . Can some one explain possibly with a diagram . Thanks . […]

I am having a hard time figuring out how to use Markov chains to address a sorting method. It is for a PE problem (i.e. problems done for fun), if anyone’s curious. I do not want spoilers but just some guidance on the right track as to the method. I understand what Markov chains are […]

Intereting Posts

Finit Sum $\sum_{i=1}^{100}i^8-2 i^2$
Another point of view that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is cyclic.
Congruence properties of $x_1^6+x_2^6+x_3^6+x_4^6+x_5^6 = z^6$?
Remainder term in Taylor's theorem
How do you solve the Initial value probelm $dp/dt = 10p(1-p), p(0)=0.1$?
asymptotic of $x^{x^x} = n$
Does $\sum_{k=0}^{\infty}\sin\left(\frac{\pi x}{2^k}\right)$ have a simple form with interesting properties?
Upper/lower bound on covariance two dependent random random variables.
What is “multiplication by juxtaposition”?
$\mathbb{R}^\mathbb{R}$ is not normal
Range conditions on a linear operator
Showing independence of random variables
Is a metric space perfectly normal?
Group of order $48$ must have a normal subgroup of order $8$ or $16$
Is Morera's theorem the inverse theorem of Goursat's theorem?