Fusion Tree - Parallel Comparison

Parallel Comparison

The purpose of the compression achieved by sketching is to allow all of the keys to be stored in one w-bit word. Let the node sketch of a node be the bit string

1sketch(x1)1sketch(x2)...1sketch(xk)

We can assume that the sketch function uses exactly br4 bits. Then each block uses 1 + bw4/5 bits, and since kw1/5, the total number of bits in the node sketch is at most w.

A brief notational aside: for a bit string s and nonnegative integer m, let sm denote the concatenation of s to itself m times. If t is also a bit string st denotes the concatenation of t to s.

The node sketch makes it possible to search the keys for any b-bit integer y. Let z = (0y)k, which can be computed in constant time (multiply y by the constant (0b1)k). Note that 1sketch(xi) - 0y is always positive, but preserves its leading 1 iff sketch(xi) ≥ y. We can thus compute the smallest index i such that sketch(xi) ≥ y as follows:

  1. Subtract z from the node sketch.
  2. Take the bitwise AND of the difference and the constant (10b)k. This clears all but the leading bit of each block.
  3. Find the most significant bit of the result.
  4. Compute i, using the fact that the leading bit of the i-th block has index i(b+1).

Read more about this topic:  Fusion Tree

Famous quotes containing the words parallel and/or comparison:

    The parallel between antifeminism and race prejudice is striking. The same underlying motives appear to be at work, namely fear, jealousy, feelings of insecurity, fear of economic competition, guilt feelings, and the like. Many of the leaders of the feminist movement in the nineteenth-century United States clearly understood the similarity of the motives at work in antifeminism and race discrimination and associated themselves with the anti slavery movement.
    Ashley Montagu (b. 1905)

    Envy and jealousy are the private parts of the human soul. Perhaps the comparison can be extended.
    Friedrich Nietzsche (1844–1900)