liveBook · Manning

Global optimum

As explained in Advanced Algorithms and Data Structures

A minimum is a point or value at which a function is no greater than the function values in the relevant neighborhood or domain.

A global optimum is the best value of a function over its relevant domain. In Bloom filter design, it identifies the hash-function count k that minimizes the false-positive ratio while n, the element count, and m, the available bits, remain fixed. section 4.10.1

The optimization proceeds by:

  • Expressing the false-positive ratio as a function f(k). section 4.10.1
  • Applying natural logarithms so the exponent can be minimized instead. section 4.10.1
  • Setting the first derivative to zero, then checking that the stationary point is a minimum. section 4.10.1

Choosing the number of hash functions

The calculation produces k = ln(2)·m/n. Because k must be an integer, round the result; larger k values increase insertion and lookup work because more hash functions must be computed. section 4.10.1

How Advanced Algorithms and Data Structures covers it

How deep it goes
Derives an exact stationary-point formula using logarithms and derivatives, but skips the detailed second-derivative verification.
Examples
Uses the formula k = ln(2)·m/n and discusses rounding k to an integer.
What it assumes
Requires only the stated result for readers avoiding calculus, while exposing natural logarithms and derivatives for deeper understanding.
What you can do after
Evaluate the optimal Bloom filter hash-function count from fixed element and storage capacities.
How it connects
Connects Bloom filters with false positives, hash functions, natural logarithms, and derivative-based optimization.

Also explained in

Compare how 5 books explain global optimum →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Advanced Algorithms and Data Structures. The section links point to the parts of the book it draws on.