Book contents
- Frontmatter
- Contents
- Preface
- Part one Foundations
- Part two Investigations
- 8 Magic Squares
- 9 GCDs, Pseudoprimes and Miller's Test
- 10 Graphics: Curves and Envelopes
- 11 Zigzags and Fast Curves
- 12 Sequences of Real Numbers
- 13 Newton–Raphson Iteration and Fractals
- 14 Permutations
- 15 Iterations for Nonlinear Equations
- 16 Matrices and Solution of Linear Systems
- 17 Function Interpolations and Approximation
- 18 Ordinary Differential Equations
- Part three Modelling
- Appendix 1 MATLAB Command Summary
- Appendix 2 Symbolic Calculations within MATLAB
- Appendix 3 List of All M-files Supplied
- Appendix 4 How to Get Solution M-files
- Appendix 5 Selected MATLAB Resources on the Internet
- References
- Index
14 - Permutations
Published online by Cambridge University Press: 08 February 2010
- Frontmatter
- Contents
- Preface
- Part one Foundations
- Part two Investigations
- 8 Magic Squares
- 9 GCDs, Pseudoprimes and Miller's Test
- 10 Graphics: Curves and Envelopes
- 11 Zigzags and Fast Curves
- 12 Sequences of Real Numbers
- 13 Newton–Raphson Iteration and Fractals
- 14 Permutations
- 15 Iterations for Nonlinear Equations
- 16 Matrices and Solution of Linear Systems
- 17 Function Interpolations and Approximation
- 18 Ordinary Differential Equations
- Part three Modelling
- Appendix 1 MATLAB Command Summary
- Appendix 2 Symbolic Calculations within MATLAB
- Appendix 3 List of All M-files Supplied
- Appendix 4 How to Get Solution M-files
- Appendix 5 Selected MATLAB Resources on the Internet
- References
- Index
Summary
In this chapter there are two projects. The first one (A) is about random permutations of a finite set, cycles and permutation matrices. The second (B) is an investigation of card shuffling, introducing many of the standard ideas including perfect and approximate riffle shuffles.
A Cycle decompositions
Aims of the project
We shall use MATLAB to investigate ‘random’ permutations, especially their disjoint cycle decompositions. There is a theoretical and experimental investigation of the [5 [5 average number of disjoint cycles occurring in a random permutation. The basic material on permutations is generally covered in a first course on abstract algebra; see, for example, [11].
Mathematical ideas used
This investigation studies permutations of a finite set, decompositions into disjoint cycles, the order of a permutation and permutation matrices. The order of a permutation involves the idea of the least common multiple (lcm) of a set of integers. Also the average number of disjoint cycles occurring in permutations of a given finite set is investigated both experimentally and theoretically. Note: We always write composition of permutations from right to left: the notation Φ2Φ1 means ‘do Φ1 first and then do Φ2’.
MATLAB techniques used
A given M-file produces ‘random’ permutations of the consecutive numbers 1,2,…, n, and another breaks a permutation up into disjoint cycles.
- Type
- Chapter
- Information
- Mathematical Explorations with MATLAB , pp. 171 - 188Publisher: Cambridge University PressPrint publication year: 1999