What's the expected length of LIS of a random n-permutation.
According to my test, it approximates $$$O(\sqrt n)$$$.
But how to prove it?
# | User | Rating |
---|---|---|
1 | tourist | 3690 |
2 | jiangly | 3647 |
3 | Benq | 3581 |
4 | orzdevinwang | 3570 |
5 | Geothermal | 3569 |
5 | cnnfls_csy | 3569 |
7 | Radewoosh | 3509 |
8 | ecnerwala | 3486 |
9 | jqdai0815 | 3474 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 165 |
3 | adamant | 161 |
4 | TheScrasse | 160 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | orz | 146 |
9 | SecondThread | 145 |
9 | pajenegod | 145 |
What's the expected length of LIS of a random n-permutation.
According to my test, it approximates $$$O(\sqrt n)$$$.
But how to prove it?
Name |
---|
Ah, I want to know the proof, too. I just met it today.
Let $$$E_n$$$ be the expected value.
Based on the position of $$$n$$$ in a $$$n$$$-permutation, we have the formula: $$$E_n = \dfrac{E_0+E_1+...+E_{n-1}}{n} + 1$$$, which leads to $$$E_n = E_{n-1} + \dfrac{1}{n}$$$.
So $$$E_n = 1 + \dfrac{1}{2} + ... \dfrac{1}{n} \approx \log{n}$$$.
Edit: Wrong solution
I don't think that's true, one doesn't have to include $$$n$$$ in LIS
Sorry but I have no idea that how can get the conclusion above?
You are right! The answer is indeed $$$O(\sqrt{n})$$$ or more precisely $$$\approx 2\sqrt{n}$$$ when $$$n$$$ is large, according to this paper.
In this problem that observation is needed: 1017C - Телефонный номер.
The tutorial says the formal proof, by Dilworth's theorem.
I can't get the point that we can prove it by this theory.
Can you be more specific please? XD