Book contents
- Frontmatter
- Contents
- Preface to the Second Edition
- Preface
- Notation
- 1 Probability Theoretic Preliminaries
- 2 Models of Random Graphs
- 3 The Degree Sequence
- 4 Small Subgraphs
- 5 The Evolution of Random Graphs—Sparse Components
- 6 The Evolution of Random Graphs—the Giant Component
- 7 Connectivity and Matchings
- 8 Long Paths and Cycles
- 9 The Automorphism Group
- 10 The Diameter
- 11 Cliques, Independent Sets and Colouring
- 12 Ramsey Theory
- 13 Explicit Constructions
- 14 Sequences, Matrices and Permutations
- 15 Sorting Algorithms
- 16 Random Graphs of Small Order
- References
- Index
15 - Sorting Algorithms
Published online by Cambridge University Press: 29 March 2011
- Frontmatter
- Contents
- Preface to the Second Edition
- Preface
- Notation
- 1 Probability Theoretic Preliminaries
- 2 Models of Random Graphs
- 3 The Degree Sequence
- 4 Small Subgraphs
- 5 The Evolution of Random Graphs—Sparse Components
- 6 The Evolution of Random Graphs—the Giant Component
- 7 Connectivity and Matchings
- 8 Long Paths and Cycles
- 9 The Automorphism Group
- 10 The Diameter
- 11 Cliques, Independent Sets and Colouring
- 12 Ramsey Theory
- 13 Explicit Constructions
- 14 Sequences, Matrices and Permutations
- 15 Sorting Algorithms
- 16 Random Graphs of Small Order
- References
- Index
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 - 446Publisher: Cambridge University PressPrint publication year: 2001