Published online by Cambridge University Press: 08 February 2010
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.
To save this book to your Kindle, first ensure no-reply@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.
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.
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.