Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-zzh7m Total loading time: 0 Render date: 2024-04-27T05:32:41.161Z Has data issue: false hasContentIssue false

15 - Sorting Algorithms

Published online by Cambridge University Press:  29 March 2011

Béla Bollobás
Affiliation:
Trinity College, Cambridge and University of Memphis
Get access

Summary

Random graph techniques are very useful in several areas of computer science. In this book we do not intend to present a great variety of such applications, but we shall study a small group of problems that can be tackled by random graph methods.

Suppose we are given n objects in a linear order unknown to us. Our task is to determine this linear order by as few probes as possible, i.e. by asking as few questions as possible. Each probe or question is a binary comparison: which of two given elements a and b is greater? Since there are n! possible orders and k questions result in 2k different sequences of answers, log2(n!) = {1 + o(1)}n log2n questions may be needed to determine the order completely. It is only a little less obvious that with {1 + o(1)}n log2n questions we can indeed determine the order. However, if we wish to use only {1 + o(1)}n log2n questions, then our later questions have to depend on the answers to the earlier questions. In other words, our questions have to be asked in many rounds, and in each round they have to be chosen according to the answers obtained in the previous rounds.

For a sorting algorithm, define the width as the maximum number of probes we perform in any one round and the depth as the maximal number of rounds needed by the algorithm.

Type
Chapter
Information
Random Graphs , pp. 425 - 446
Publisher: Cambridge University Press
Print publication year: 2001

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.

  • Sorting Algorithms
  • Béla Bollobás, Trinity College, Cambridge and University of Memphis
  • Book: Random Graphs
  • Online publication: 29 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511814068.017
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.

  • Sorting Algorithms
  • Béla Bollobás, Trinity College, Cambridge and University of Memphis
  • Book: Random Graphs
  • Online publication: 29 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511814068.017
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.

  • Sorting Algorithms
  • Béla Bollobás, Trinity College, Cambridge and University of Memphis
  • Book: Random Graphs
  • Online publication: 29 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511814068.017
Available formats
×