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 | jiangly | 3976 |
2 | tourist | 3815 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3614 |
5 | orzdevinwang | 3526 |
6 | ecnerwala | 3514 |
7 | Benq | 3482 |
8 | hos.lyric | 3382 |
9 | gamegame | 3374 |
10 | heuristica | 3357 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | -is-this-fft- | 165 |
3 | atcoder_official | 161 |
3 | Um_nik | 161 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 154 |
8 | luogu_official | 152 |
9 | awoo | 151 |
10 | TheScrasse | 147 |
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