Skip to main content

Karp-Luby Sampling

  • Reference work entry
  • First Online:
Encyclopedia of Database Systems
  • 83 Accesses

Synonyms

Definition

Karp-Luby (KL) sampling [1, 2] is a Monte Carlo algorithm that is used to estimate the number of truth assignments to a set of literals x = {x1, …, xk} that satisfy a logical expression L[x] having “disjunctive normal form” (DNF). That is, L[x] has the form C1C2 ∨⋯ ∨ Cm, where each clause Ci is a conjunction of the form \(C_i=y_{i_1}\wedge y_{i_2}\wedge \cdots \wedge y_{i_l}\) with i1, i2, …, il being distinct elements of {1, 2, …, k} and \(y_{i_j}=x_{i_j}\) or \(\neg x_{i_j}\) for 1 ≤ jl. A straightforward modification of the technique can be used to estimate P(L[X] = 1), where X = {X1, X2, …, Xk} is a set of mutually independent boolean random variables. This latter use of KL sampling plays a key role when querying uncertain data. Exact computation is #P-complex in the data size both for the original counting problem problem and for computation of p = P(L[X] = 1), which is why approximate methods are needed. A naive approach that simply generates n...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 6,499.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Karp RM, Luby M. Monte-Carlo algorithms for enumeration and reliability problems. In: Proceedings of the IEEE Conference on Foundations of Computer Science; 1983. p. 56–64.

    Google Scholar 

  2. Karp RM, Luby M, Madras N. Monte-Carlo approximation algorithms for enumeration problems. J Algorithms. 1989;10(3):429–48.

    Article  MathSciNet  Google Scholar 

  3. Vazirani VV. Approximation algorithms. Berlin/New York: Springer; 2001.

    MATH  Google Scholar 

  4. Suciu D, Olteanu D, Ré C, Koch C. Probabilistic databases. Synthesis lectures on data management. Morgan & Claypool; 2011.

    Book  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Peter J. Haas .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Science+Business Media, LLC, part of Springer Nature

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Haas, P.J. (2018). Karp-Luby Sampling. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_80765

Download citation

Publish with us

Policies and ethics