Professional Documents
Culture Documents
DISCRETE MATHEMATICS AND ITS APPLICATIONS Second DISCRETE MATHEMATICS AND ITS APPLICATIONS
Series Editor KENNETH H. ROSEN Edition Series Editor KENNETH H. ROSEN
COMBINATORICS OF COMBINATORICS OF
COMBINATORICS OF
PERMUTATIONS PERMUTATIONS
PERMUTATIONS
Second Edition Second Edition
“… a comprehensive, engaging, and eminently readable introduction
to all aspects of the combinatorics of permutations. … This book
can be utilized at a variety of levels, from random samplings of
Miklós Bóna
the treasures therein to a comprehensive attempt to master all the
material and solve all the exercises. In whatever direction the reader’s
tastes lead, thorough enjoyment and appreciation of a beautiful area
of combinatorics are certain to ensue.”
—Richard Stanley, MIT
A 2006 CHOICE Outstanding Academic Title, the first edition of
this bestseller was lauded for its detailed yet engaging treatment
of permutations. With much of the book significantly revised and
expanded, Combinatorics of Permutations, Second Edition
continues to clearly show the usefulness of this subject.
This second edition includes a new section on alternating
permutations and new material on multivariate applications of the
exponential formula. It also discusses several important results in
pattern avoidance as well as the concept of asymptotically normal
distributions. An entirely new chapter focuses on three sorting
algorithms from molecular biology. This edition also provides more Bóna
exercises and problems at the end of each chapter.
K12299
Jonathan L. Gross and Jay Yellen, Graph Theory and Its Applications, Second Edition
Jonathan L. Gross and Jay Yellen, Handbook of Graph Theory
David S. Gunderson, Handbook of Mathematical Induction: Theory and Applications
Richard Hammack, Wilfried Imrich, and Sandi Klavžar, Handbook of Product Graphs,
Second Edition
Darrel R. Hankerson, Greg A. Harris, and Peter D. Johnson, Introduction to Information Theory
and Data Compression, Second Edition
Darel W. Hardy, Fred Richman, and Carol L. Walker, Applied Algebra: Codes, Ciphers, and
Discrete Algorithms, Second Edition
Daryl D. Harms, Miroslav Kraetzl, Charles J. Colbourn, and John S. Devitt, Network Reliability:
Experiments with a Symbolic Algebra Environment
Silvia Heubach and Toufik Mansour, Combinatorics of Compositions and Words
Leslie Hogben, Handbook of Linear Algebra
Derek F. Holt with Bettina Eick and Eamonn A. O’Brien, Handbook of Computational Group Theory
David M. Jackson and Terry I. Visentin, An Atlas of Smaller Maps in Orientable and
Nonorientable Surfaces
Richard E. Klima, Neil P. Sigmon, and Ernest L. Stitzinger, Applications of Abstract Algebra
with Maple™ and MATLAB®, Second Edition
Patrick Knupp and Kambiz Salari, Verification of Computer Codes in Computational Science
and Engineering
William Kocay and Donald L. Kreher, Graphs, Algorithms, and Optimization
Donald L. Kreher and Douglas R. Stinson, Combinatorial Algorithms: Generation Enumeration
and Search
Hang T. Lau, A Java Library of Graph Algorithms and Optimization
C. C. Lindner and C. A. Rodger, Design Theory, Second Edition
Nicholas A. Loehr, Bijective Combinatorics
Alasdair McAndrew, Introduction to Cryptography with Open-Source Software
Elliott Mendelson, Introduction to Mathematical Logic, Fifth Edition
Alfred J. Menezes, Paul C. van Oorschot, and Scott A. Vanstone, Handbook of Applied
Cryptography
Stig F. Mjølsnes, A Multidisciplinary Introduction to Information Security
Jason J. Molitierno, Applications of Combinatorial Matrix Theory to Laplacian Matrices of Graphs
Richard A. Mollin, Advanced Number Theory with Applications
Richard A. Mollin, Algebraic Number Theory, Second Edition
Richard A. Mollin, Codes: The Guide to Secrecy from Ancient to Modern Times
Richard A. Mollin, Fundamental Number Theory with Applications, Second Edition
Titles (continued)
COMBINATORICS OF
PERMUTATIONS
Second Edition
Miklós Bóna
University of Florida
Gainesville, Florida, USA
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been
made to publish reliable data and information, but the author and publisher cannot assume responsibility for the
validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the
copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to
publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let
us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted,
or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, includ-
ing photocopying, microfilming, and recording, or in any information storage or retrieval system, without written
permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.com
(http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers,
MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety
of users. For organizations that have been granted a photocopy license by the CCC, a separate system of payment
has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for
identification and explanation without intent to infringe.
Visit the Taylor & Francis Web site at
http://www.taylorandfrancis.com
To Linda
To Mikike, Benny, and Vinnie
Foreword
Acknowledgments
References 435
Index 455
Foreword
Richard Stanley
Cambridge, Massachusetts
This page intentionally left blank
Preface to the First Edition
A few years ago, I was given the opportunity to teach a graduate combi-
natorics class on a special topic of my choice. I wanted the class to focus on
the combinatorics of permutations. However, I instantly realized that while
there were several excellent books that discussed some aspects of the subject,
there was no single book that would have contained all, or even most, areas
that I wanted to cover. Many areas were not covered in any book, which
was easy to understand as the subject is developing at a breathtaking pace,
producing new results faster than textbooks are published. Classic results,
while certainly explained in various textbooks of very high quality, seemed to
be scattered in numerous sources. This was again no surprise; indeed, per-
mutations are omnipresent in modern combinatorics, and there are quite a
few ways to look at them. We can consider permutations as linear orders; we
can consider them as elements of the symmetric group; we can model them
by matrices; or by graphs. We can enumerate them according to countless
interesting statistics; we can decompose them in many ways, and we can bi-
jectively associate them to other structures. One common feature of these
activities is that they all involve factual knowledge, new ideas, and serious
fun. Another common feature is that they all evolve around permutations,
and quite often, the remote-looking areas are connected by surprising results.
Briefly, they do belong to one book, and I am very glad that now you are
reading such a book.
***
As I have mentioned, there are several excellent books that discuss various
aspects of permutations. Therefore, in this book, I cover these aspects less
deeply than the areas that have previously not been contained in any book.
Chapter 1 is about descents and runs of permutations. While Eulerian num-
bers have been given plenty of attention during the last 200 years, most of the
research was devoted to analytic concepts. Nothing shows this better than
the fact that I was unable to find published proofs of two fundamental results
of the area using purely combinatorial methods. Therefore, in this chapter, I
concentrated on purely combinatorial tools dealing with these issues. By and
large, the same is true for Chapter 2, whose subject is inversions in permuta-
tions, and in permutations of multisets. Chapter 3 is devoted to permutations
as products of cycles, which is probably the most-studied of all areas covered
in this book. Therefore, while there were many classic results we had to
include there for the sake of completeness, nevertheless we still managed to
squeeze in less well-known topics, such as applications of Darroch’s theorem,
or transpositions and trees.
The area of pattern avoidance is a young one, and has not been given sig-
nificant space in textbooks before. Therefore, we devoted two full chapters
to it. Chapter 4 walks the reader through the quest for the solution of the
Stanley-Wilf conjecture, ending with the recent spectacular proof of Marcus
and Tardos for this 23-year-old problem. Chapter 5 discusses aspects of pat-
tern avoidance other than upper bounds or exact formulae. Chapter 6 looks
at random permutations and Standard Young Tableaux, starting with two
classic and difficult proofs of Greene, Nijenhaus, and Wilf. Standard tech-
niques for handling permutation statistics are presented. A relatively new
concept, that of min-wise independent families of permutations, is discussed
in the Exercises. Chapter 7, Algebraic Combinatorics of Permutations, is the
one in which we had to be most selective. Each of the three sections of that
chapter covers an area that is sufficiently rich to be the subject of an entire
book. Our goal with that chapter is simply to raise interest in these topics
and prepare the reader for the more detailed literature that is available in
those areas. Chapter 8 is about combinatorial sorting algorithms, many of
which are quite recent. This is the first time many of these algorithms (or at
least, most aspects of them) are discussed in a textbook, so we treated them
in depth.
Besides the Exercises, each chapter ends with a selection of Problems Plus.
These are typically more difficult than the exercises, and are meant to raise
interest in some questions for further research, and to serve as reference ma-
terial of what is known. Some of the Problems Plus are not classified as such
because of their level of difficulty, but because they are less tightly connected
to the topic at hand. A solution manual for the even-numbered Exercises is
available for instructors teaching a class using this book, and can be obtained
from the publisher.
Preface to the Second Edition
It has been eight years since the first edition of Combinatorics of Permuta-
tions was published. All parts of the subject went through significant progress
during those years. Therefore, we had to make some painful choices as to what
to include in the new edition of the book.
First, there is a new chapter in this edition, Chapter 9, which is devoted
to sorting algorithms whose original motivation comes from molecular biol-
ogy. This very young part of combinatorics is known for its easily stated
and extremely difficult problems, which sometimes can be solved using deep
techniques from remote-looking parts of mathematics. We decided to discuss
three sorting algorithms in detail.
Second, half of the existing chapters, namely Chapters 1, 3, 4, and 6, have
been significantly changed or extended. Chapter 1 has a new section on al-
ternating permutations, while Chapter 3 has new material on multivariate
applications of the exponential formula. In Chapter 4, which discusses pat-
tern avoidance, several important results have been improved. Some of these
are discussed in the text, some are discussed in the exercises. Chapter 6, dis-
cussing some probabilistic aspects of permutations, now covers the concept of
asymptotically normal distributions.
Third, all chapters have extended Exercises sections and extended Problems
Plus sections. The latter often contain results from the last eight years. Ex-
ercises marked with a (+) sign are thought to be more difficult than average,
while exercises marked with a (–) sign are thought to be easier.
The book does not assume previous knowledge of combinatorics above the
level of an introductory undergraduate course. We believe that the second
edition contains more than enough material for a one-semester course, so the
instructor has some liberty to decide which 70–85 percent of the text to cover.
We hope that both the instructor and the student will finish the course with
the thought that combinatorics of permutations is not only very useful, but
also thoroughly enjoyable.
Acknowledgments
This book grew out of various graduate combinatorics courses that I taught
at the University of Florida. I am indebted to the authors of the books I used
in those courses, for shaping my vision, and for teaching me facts and tech-
niques. These books are The Art of Computer Programming by D. E. Knuth,
Enumerative Combinatorics by Richard Stanley, The Probabilistic Method by
Noga Alon and Joel Spencer, The Symmetric Group by Bruce Sagan, and
Enumerative Combinatorics by Charalambos Charalambides. For my knowl-
edge of biologically motivated sorting algorithms, which is the topic of a new
chapter in the second edition, I am indebted to the book Combinatorics of
Genome Rearrangements by Guillaume Fertin, Anthony Labarre, Irena Rusu,
Éric Tannier, and Stéphane Vialette.
Needless to say, I am grateful to all the researchers whose results made a
textbook devoted exclusively to the combinatorics of permutations possible.
I am sure that new discoveries will follow.
I am thankful to my former research advisor Richard Stanley for having
introduced me to this fascinating field, and to Doron Zeilberger, and the late
Herb Wilf, who kept asking intriguing questions attracting scores of young
mathematicians like myself to the subject.
Some of the presented material was part of my own research, sometimes in
collaboration. I would like to say thanks to my co-authors, Richard Ehren-
borg, Andrew MacLennan, Bruce Sagan, Rodica Simion, Ryan Flynn, Daniel
Spielman, Vincent Vatter, and Dennis White. I also owe thanks to Michael
Atkinson, who introduced me to the history of stack sorting algorithms.
I am deeply indebted to Aaron Robertson for an exceptionally thorough
and knowledgeable reading of the first edition, and to the anonymous referees
of the second edition. I am also deeply appreciative for manuscript reading
by my colleague Andrew Vince, and by Rebecca Smith. I feel grateful to the
many mathematicians who pointed out various typos in the first edition.
A significant part of the book was written during the summer of 2003. In the
first half of that summer, I enjoyed the stimulating professional environment at
LABRI, at the University of Bordeaux I, in Bordeaux, France. The hospitality
of colleagues Olivier Guibert and Sylvain Pelat-Alloin made it easy for me to
keep writing during my one-month visit. In the second half of the summer,
I enjoyed the hospitality of my parents, Miklós and Katalin Bóna, at Lake
Balaton in Hungary. In 2005, I spent a sabbatical semester at the University
of Pennsylvania, where I learned from Herb Wilf and Robin Pemantle.
My gratitude is extended to Tina Freebody for preparing the cover page.
Last, but not least, I must be thankful to my wife Linda, my first reader
and critic, who keeps tolerating my book-writing endeavors. I will not forget
how much she helped me, and neither will she.
No Way around It. Introduction.
In other words, a permutation lists all elements of [n] so that each element
is listed exactly once.
Example 0.2
If n = 3, then the n-permutations are 123, 132, 213, 231, 312, 321.
There is nothing magic about the set [n]; other sets having n elements
would be just as good for our purposes, but working with [n] will simplify
our discussion. In Chapter 2, we will extend the definition of permutations
to multisets, and in Chapter 3, we will consider permutations from a different
perspective. The set of all n-permutations will be denoted by Sn , and the
reason for that will become clear in Chapter 3.
For now, we will denote an n-permutation by p = p1 p2 · · · pn , with pi being
the ith entry in the linear order given by p.
The following simple statement is probably the best-known fact about per-
mutations.
PROPOSITION 0.3
The number of n-permutations is n!.
1
This page intentionally left blank
References
435
436 Combinatorics of Permutations, Second Edition
[123] S. Elizalde, The most and the least avoided consecutive patterns.
Preprint, arXiv:1203.1636v1. [math.CO], available at http://lanl.
arxiv.gov/pdf/1203.1636.pdf.
[124] P. Erdős, On a conjecture of Hammersley. J. London Math. Soc., 28
(1953), 232–236.
[125] H. Eriksson, K. Eriksson, S. Linusson, J. Wästlund, Dense packing of
patterns in a permutation. Ann. Comb. 11 (2007), no. 3–4, 459-470.
[126] H. Eriksson, K. Eriksson, J. Karlander, L. Svensson, J. Wästlund, Sort-
ing a bridge hand. Disc. Math. 241 (2001), 289–300.
[127] P. Flajolet, Analytic models and ambiguity of context-free languages.
Theoret. Comput. Sci., 49 (1987), 282–309.
[128] P. Flajolet, R. Sedgewick, Analytic Combinatorics. Cambridge Univer-
sity Press, Cambridge, UK, 2009.
[129] D. Foata, On the Netto inversion number of a sequence. Proc. Amer.
Math. Soc., 19 (1968), no. 1, 236–240.
[130] D. Foata, Distributions Eulériennes et Mahoniennes sur le groupe des
permutations. In Higher Combinatorics, Martin Aigner, editor, D. Rei-
del, Dordrecht, The Netherlands, 1977.
[131] D. Foata, M. P. Schützenberger, Théorie Geometrique des Polynômes
Eulériens. In Lecture Notes in Mathematics, 138 (1970), Springer-
Verlag, Berlin, Germany.
[132] D. Foata, M. P. Schützenberger, Major index and inversion number of
permutations. Math. Nachr., 83 (1978), 143–159.
[133] D. Foata, D. Zeilberger, Denert’s permutation statistic is indeed Euler-
Mahonian. Stud. Appl. Math., 83 (1990), 31–59.
[134] D. Foata, G-N. Han, Fix-Mahonian calculus, I: Two transformations.
European J. Combin. 29 (2008), 1721–1732.
[135] S. Fomin, Finite, partially ordered sets and Young diagrams. (Russian)
Dokl. Akad. Nauk SSSR, 243 (1978), no. 5, 1144–1147.
[136] H. O. Foulkes, A nonrecursive rule for Eulerian numbers. J. Combin.
Theory Ser. A, 22 (1977), no. 2, 246–248.
[137] A. Frank, On chain and antichain families of a partially ordered set. J.
Combin. Theory Ser. B, 29 (1980), no. 2, 176–184.
[138] A. Frieze, Hamilton cycles in the union of random permutations. Ran-
dom Structures Algorithms, 18 (2001), no. 1, 83–94.
[139] G. Frobenius, Über die Charaktere der symmetrischen Gruppe. Preuss.
Akad. Wiss. Sitz., 1900, 516–534.
444 Combinatorics of Permutations, Second Edition