title: Extractor (mathematics)
text: # Extractor (mathematics)
  
  An $(N,M,D,K,\epsilon )$ -extractor is a bipartite graph with $N$ nodes on the left and $M$ nodes on the right such that each node on the left has $D$ neighbors (on the right), which has the added property that for any subset $A$ of the left vertices of size at least $K$, the distribution on right vertices obtained by choosing a random node in $A$ and then following a random edge to get a node x on the right side is $\epsilon$-close to the uniform distribution in terms of total variation distance.
  
  A disperser is a related graph.
  
  An equivalent way to view an extractor is as a bivariate function
  
      $E:[N]\times [D]\rightarrow [M]$
  
  in the natural way. With this view it turns out that the extractor property is equivalent to: for any source of randomness $X$ that gives $n$ bits with min-entropy $\log K$, the distribution $E(X,U_{D})$ is $\epsilon$-close to $U_{M}$, where $U_{T}$ denotes the uniform distribution on $[T]$.
  
  Extractors are interesting when they can be constructed with small $K,D,\epsilon$ relative to $N$ and $M$ is as close to $KD$ (the total randomness in the input sources) as possible.
  
  Extractor functions were originally researched as a way to extract randomness from weakly random sources. See randomness extractor.
  
  Using the probabilistic method it is easy to show that extractor graphs with really good parameters exist. The challenge is to find explicit or polynomial time computable examples of such graphs with good parameters. Algorithms that compute extractor (and disperser) graphs have found many applications in computer science.
  
  