Skip to main content Accessibility help
×
Hostname: page-component-8448b6f56d-c47g7 Total loading time: 0 Render date: 2024-04-23T23:09:47.263Z Has data issue: false hasContentIssue false

7 - Probabilistic algorithms

Published online by Cambridge University Press:  05 June 2012

Victor Shoup
Affiliation:
New York University
Get access

Summary

It is sometimes useful to endow our algorithms with the ability to generate random numbers. To simplify matters, we only consider algorithms that generate random bits. Where such random bits actually come from will not be of great concern to us here. In a practical implementation, one would use a pseudo-random bit generator, which should produce bits that “for all practical purposes” are “as good as random.” While there is a welldeveloped theory of pseudo-random bit generation (some of which builds on the ideas in §6.9), we will not delve into this here. Moreover, the pseudorandom bit generators used in practice are not based on this general theory, and are much more ad hoc in design. So, although we will present a rigorous formal theory of probabilistic algorithms, the application of this theory to practice is ultimately a bit heuristic.

Basic definitions

Formally speaking, we will add a new type of instruction to our random access machine (described in §3.2):

random bit

This type of instruction is of the form α ← RANDOM, where α takes the same form as in arithmetic instructions. Execution of this type of instruction assigns to α a value sampled from the uniform distribution on {0, 1}, independently from the execution of all other random-bit instructions.

In describing algorithms at a high level, we shall write “b ←R {0, 1}” to denote the assignment of a random bit to the variable b, and “sR {0, 1}×ℓ” to denote the assignment of a random bit string of length ℓ to the variable s.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2005

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Probabilistic algorithms
  • Victor Shoup, New York University
  • Book: A Computational Introduction to Number Theory and Algebra
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139165464.009
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Probabilistic algorithms
  • Victor Shoup, New York University
  • Book: A Computational Introduction to Number Theory and Algebra
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139165464.009
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Probabilistic algorithms
  • Victor Shoup, New York University
  • Book: A Computational Introduction to Number Theory and Algebra
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139165464.009
Available formats
×