8

I watched lecture from MIT about Skip List. Overall, I understand the material, but one thing. What is "with-high-probability"? I really don't get it at all. I've seen the lecture notes but still didn't get it.

They just said, "Event $E$ occurs with high probability (w.h.p.) if, for any $\alpha\geq1$, there is an appropriate choice of constants for which $E$ occurs with probability at least $1 − O(1/n^\alpha)$".

Something from algorithmist.com didn't help, either.

What is $\alpha$ and what is $1 − O(1/n^\alpha)$? Not understanding this thing make me confused of the analysis of why "With high probability, every search in an $n$-element skip list costs $O(\lg n)$".

Raphael
  • 73,212
  • 30
  • 182
  • 400
Anonymous
  • 81
  • 1
  • 2

2 Answers2

5

An event happens with high probability with respect to a parameter $n$ if it happens with probability $p_n$ and $\lim_{n\to\infty} p_n = 1$. Usually the parameter $n$ is clear from the context. In this case, for example, it is probably the number of elements in the list.

The definition of "with high probability" in the lecture notes is even more specific, specifying how fast $p_n$ should converge to $1$: an event happens with high probability if it happens with probability $p_n \geq C/n^\alpha$ for some $C,\alpha>0$. For example, if you choose a random number from $\{0,\ldots,n\}$ then it is non-zero with high probability since the probability that it is non-zero is $1-1/(n+1) \geq 1-1/n$ (so in this case $C=\alpha=1$).

Yuval Filmus
  • 280,205
  • 27
  • 317
  • 514
2

I have seen multiple definitions of "with high probability".

Let $P = (P_n)_{n \in \mathbb N}$ be a sequence of real numbers in the unit interval $[0,1]$. These represent the probability that an event happens, dependent on some $n \in \mathbb N$. We say that $P$ happens with high probability if and only if, depending on your definition:

  • "$P_n$ approaches $1$" (as per French Wikipedia)
    • $1-P_n \in O(g(n))$ for some nonnegative function $g$ with $\lim_{n \to \infty} g(n) = 0$

      This is equivalent to $\lim_{n \to \infty} P_n = 1$, I am just writing it in this way to make it more similar to the other definitions

  • "$P_n$ approaches $1$ polynomially with noninteger exponents allowed" (sorry I don't know the right term for this) (as per another answer for your question)
    • $1-P_n \in O(\frac 1 {n^\alpha})$ for some (real-valued) $\alpha > 0$
  • "$P_n$ approaches $1$ linearly"
    • $1-P_n \in O(\frac 1 {n})$
  • "$P_n$ approaches $1$ significantly faster than linearly" (as per this paper)
    • $1-P_n \in o(\frac 1 n)$
  • "$P_n$ approaches $1$ superpolynomially" (as per DISCO of ETH Zuerich)
    • $1-P_n \in O(\frac 1 {n^r} )$ for all $r \in \mathbb N$

I think the last definition is the one you are looking for, it seems to most fit the sloppily written definition which you mentioned. It is also the most common definition I have seen.


Notes

  • I believe a lot of these discrepancies are due to sloppy definitions and bad copying. Indeed, I believe another answer for your question posted here also misunderstood the meaning of $\alpha$.

  • I have also seen:

    $P_n \in O(\frac{1}{n^\alpha})$ for some $\alpha \in \mathbb N$.

    But this is just equivalent to $P_n \in O(\frac{1}{n})$ (or actually $P_n \in O(1)$ if $0 \in \mathbb N$, which wouldn't make sense). It seems like an instance of bad copying.

  • If you are intuitively confused by Big-$O$ notation for things getting smaller rather than bigger, we can also write $\frac{1}{1-P_n} \in \Omega(h(n))$ instead of $1-P_n \in O(\frac{1}{h(n)})$. This $h(n)$ is then what I refer to as "linearly" if $h(n) = n$, or "superpolynomially" if $h(n)$ can be any polynomial (any $n^\alpha$), etc.

    • Since we are talking about "faster than" etc., and we are with regards to the terms "linearly", "polynomially" etc. actually talking about $\Omega$-asymptotes, and not $O$-asymptotes, really, you can see how "for some polynomial" doesn't make sense, since faster than "some polynomial" means faster than the "smallest" polynomial, which can mean linear polynomial, or even a constant or even zero.
Berber
  • 121
  • 3