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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
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 Phone Number.
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