An old pastime.

Similar documents
Lecture 16b: Permutations and Bell Ringing

MA/CSSE 473 Day 13. Student Questions. Permutation Generation. HW 6 due Monday, HW 7 next Thursday, Tuesday s exam. Permutation generation

Chapter 6.1. Cycles in Permutations

5. (1-25 M) How many ways can 4 women and 4 men be seated around a circular table so that no two women are seated next to each other.

Bob Doubles (Plain Course)

Ma/CS 6a Class 16: Permutations

Counting Snakes, Differentiating the Tangent Function, and Investigating the Bernoulli-Euler Triangle by Harold Reiter

On uniquely k-determined permutations

RESTRICTED PERMUTATIONS AND POLYGONS. Ghassan Firro and Toufik Mansour Department of Mathematics, University of Haifa, Haifa, Israel

Section 1.6 The Factor Game

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

Equivalence classes of length-changing replacements of size-3 patterns

PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES

THE TAYLOR EXPANSIONS OF tan x AND sec x

Section 8.1. Sequences and Series

MA 524 Midterm Solutions October 16, 2018

A Coloring Problem. Ira M. Gessel 1 Department of Mathematics Brandeis University Waltham, MA Revised May 4, 1989

Solutions to Problem Set 7

MAT3707. Tutorial letter 202/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/202/1/2017

Second Annual University of Oregon Programming Contest, 1998

Discrete Mathematics with Applications MATH236

Math236 Discrete Maths with Applications

THE 15-PUZZLE (AND RUBIK S CUBE)

COUNTING AND PROBABILITY

Permutation group and determinants. (Dated: September 19, 2018)

X = {1, 2,...,n} n 1f 2f 3f... nf

Surreal Numbers and Games. February 2010

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Strings. A string is a list of symbols in a particular order.

Dyck paths, standard Young tableaux, and pattern avoiding permutations

Enumeration of Two Particular Sets of Minimal Permutations

Permutations. = f 1 f = I A

BRITISH COLUMBIA SECONDARY SCHOOL MATHEMATICS CONTEST, 2006 Senior Preliminary Round Problems & Solutions

Domino Tilings of Aztec Diamonds, Baxter Permutations, and Snow Leopard Permutations

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Tennessee Senior Bridge Mathematics

Some algorithmic and combinatorial problems on permutation classes

Harmonic numbers, Catalan s triangle and mesh patterns

Pin-Permutations and Structure in Permutation Classes

Avoiding consecutive patterns in permutations

Adventures with Rubik s UFO. Bill Higgins Wittenberg University

Functions of several variables

Staircase Rook Polynomials and Cayley s Game of Mousetrap

Pythagorean Theorem Unit

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

Simple permutations and pattern restricted permutations

Gray code for permutations with a fixed number of cycles

UNC Charlotte 2012 Algebra

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

Algebra. Recap: Elements of Set Theory.

Chapter 1. The alternating groups. 1.1 Introduction. 1.2 Permutations

Warm-Up 14 Solutions. Peter S. Simon. January 12, 2005

The Sign of a Permutation Matt Baker

Comparisons for Determinants of Special Matrices by Algorithm Proposed

CIS 2033 Lecture 6, Spring 2017

Counting Things Solutions


m-partition Boards and Poly-Stirling Numbers

Pre-Algebra Unit 1: Number Sense Unit 1 Review Packet

LECTURE 8: DETERMINANTS AND PERMUTATIONS

MA/CSSE 473 Day 14. Permutations wrap-up. Subset generation. (Horner s method) Permutations wrap up Generating subsets of a set

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

Fundamentals of Probability

1. Answer: 250. To reach 90% in the least number of problems involves Jim getting everything

It is important that you show your work. The total value of this test is 220 points.

Evacuation and a Geometric Construction for Fibonacci Tableaux

1. Answer: 250. To reach 90% in the least number of problems involves Jim getting everything

Mathematical Foundations of Computer Science Lecture Outline August 30, 2018

Sequences. like 1, 2, 3, 4 while you are doing a dance or movement? Have you ever group things into

Honors Algebra 2 Assignment Sheet - Chapter 1

MAT points Impact on Course Grade: approximately 10%

Radical Expressions and Graph (7.1) EXAMPLE #1: EXAMPLE #2: EXAMPLE #3: Find roots of numbers (Objective #1) Figure #1:

arxiv: v1 [cs.ds] 17 Jul 2013

Mathematics Enhancement Programme TEACHING SUPPORT: Year 3

Quotients of the Malvenuto-Reutenauer algebra and permutation enumeration

Full Transcript for An Introduction to the Montessori Math Curriculum

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

Permutation Groups. Definition and Notation

Connected Permutations, Hypermaps and Weighted Dyck Words. Robert Cori Mini course, Maps Hypermaps february 2008

PRMO Official Test / Solutions

You ve seen them played in coffee shops, on planes, and

Asymptotic behaviour of permutations avoiding generalized patterns

In the game of Chess a queen can move any number of spaces in any linear direction: horizontally, vertically, or along a diagonal.

Lecture 17 z-transforms 2

Remember that represents the set of all permutations of {1, 2,... n}

Combinatorics. PIE and Binomial Coefficients. Misha Lavrov. ARML Practice 10/20/2013

CK-12 Algebra II with Trigonometry Concepts 1

European Journal of Combinatorics. Staircase rook polynomials and Cayley s game of Mousetrap

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

OXFORD DIOCESAN GUILD OF CHURCH BELL RINGERS. Educational Leaflet. No. 12 SURPRISE MINOR: CAMBRIDGE TO LONDON. Part 2 BUILDING ON CAMBRIDGE MINOR

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

Linear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.

1111: Linear Algebra I

Math Fundamentals for Statistics (Math 52) Unit 2:Number Line and Ordering. By Scott Fallstrom and Brent Pickett The How and Whys Guys.

Chained Permutations. Dylan Heuer. North Dakota State University. July 26, 2018

Introduction to Fractions

Multiple Choice Questions for Review

Heuristic Search with Pre-Computed Databases

MAS336 Computational Problem Solving. Problem 3: Eight Queens

Activity Sheet #1 Presentation #617, Annin/Aguayo,

Transcription:

Ringing the Changes

An old pastime http://www.youtube.com/watch?v=dk8umrt01wa

The mechanics of change ringing http://www.cathedral.org/wrs/animation/rounds_on_five.htm

Some Terminology Since you can not rapidly change which bells are rung, it is almost impossible to have church bells create a tune (with rope pulling... you can create tunes with hammers on church bells but that is a totally different thing). The church bells are arranged in tonal order with the highest pitched bell first (the treble) and the lowest pitched bell last (the tenor). The order in which the bells are rung can be modified in a very restricted way. Change ringing involves ringing the bells in all possible orders (with no repeats), and this is called an extent. Going from one order to another is called a change (or sometimes a row).

Some terminology n n! Approximate Time Name 3 6 15 secs. Singles 4 24 1 min. Minimus 5 120 5 mins. Doubles 6 720 30 mins. Minor 7 5,040 3 hrs. Triples 8 40,320 24 hrs.* Major 9 362,880 9 days Caters 10 3,628,800 3 months Royal 11 39,916,800 3 years Cinques 12 479,001,600 36 years Maximus * July 27,28 1963 Loughborough Bell Foundry, England actually took 17 hrs. 58 min.

A small example 1 2 3 4 1 3 4 2 1 4 2 3 2 1 4 3 3 1 2 4 4 1 3 2 2 4 1 3 3 2 1 4 4 3 1 2 4 2 3 1 2 3 4 1 3 4 2 1 4 3 2 1 2 4 3 1 3 2 4 1 3 4 1 2 4 2 1 3 2 3 1 4 3 1 4 2 4 1 2 3 2 1 3 4 1 3 2 4 1 4 3 2 1 2 4 3 1 2 3 4 Plain Bob Minimus (with treble plain hunting depicted)

A little history Prior to the fourteenth century, church bells in Europe were usually hung on a spindle and chimed by pulling a rope attached to the spindle. The next two centuries saw the development, in England, of a more sophisticated method of hanging a bell, to improve the control that a ringer had over it. In the seventeenth century, the development of the slider and stay, which prevents a bell from going beyond a 360 o turn, gave ringers enough control over the bells to make change ringing possible. During WW II, church bells were needed in civil defense activities, so church bell change ringing was not allowed. This led to the rise of using hand bells for change ringing. This has remained popular even after church bells were again available.

The Rules

Following the Blue Line There are many rules that change ringers follow and one of them is that no visual aids are allowed while an extent is being rung. Ringers do not memorize thousands of permutations in order to ring extents, rather they memorize the path that their particular bell takes through the various permutations. Visually, if the permutations are listed one below the other, this path of any particular bell is called the blue line for that bell. So, for instance, if the treble bell ringer knows that the treble will be plain hunting (a typical blue line for the treble) throughout the extent, the ringer knows what to do at every change without having to know what the other bells are doing.

Following the Blue Line Canterbury Minimus: 1 2 3 4 3 1 2 4 4 3 1 2 2 1 4 3 3 2 1 4 4 3 2 1 2 4 1 3 3 2 4 1 3 4 2 1 2 4 3 1 2 3 4 1 3 4 1 2 4 2 3 1 2 3 1 4 3 1 4 2 4 2 1 3 2 1 3 4 1 3 2 4 4 1 2 3 1 2 4 3 1 2 3 4 1 4 3 2 1 4 2 3 1 3 4 2 4 1 3 2 Treble is plain hunting. Bells 2 and 3 are doing the same work, but Tenor is not.

The Mathematics From the mathematical point of view change ringing amounts to generating all permutations in a systematic way according to certain restricting rules. We will approach the mathematical question in stages, getting closer and closer to acceptable solutions. Our first steps will be to satisfy rules 1) 3) and not worry about the others until these are satisfied.

Generating Permutations There are several algorithms for generating permutations. In some cases one wants to generate all permutations (without repetition), or generate some special permutations, or random permutations, etc. Algorithms for generating all permutations are only of limited use, since for permutations even on a small number of elements (12-14) the amount of time or storage needed to generate them becomes prohibitive. However, there are some circumstances (ours in particular) in which this is necessary. Since the number of permutations is large, one wants algorithms which can produce them efficiently on a computer.

Lexicographical Order One well known algorithm produces permutations in lexicographical order (alphabetical except using numbers). Letting k 1 k 2...k n represent a permutation on n letters. To obtain the next permutation in lexicographical order we: 1) Find the largest i so that k i-1 < k i. 2) For this fixed i find the largest j so that k i-1 < k j. 3) Interchange k i-1 and k j. 4) Reverse the order of the digits k i k i+1...k n.

Lexicographical Order Example: With n = 4, the next permutation after 2 4 3 1 in this order is obtained in four steps: 1) i = 2 2) j = 3 3) Interchange k 1 with k 3 to obtain 3 4 2 1 4) Reverse k 2...k 4 to obtain 3 1 2 4 for another example start with 1 2 3 4: 1) i = 4 2) j = 4 3) Interchange k 3 with k 4 to obtain 1 2 4 3 4) Reverse k 4...k 4 to obtain 1 2 4 3

Lexicographical Order The permutations on 4 symbols in this order are: 1234 2134 3124 4123 1243 2143 3142 4132 1324 2314 3214 4213 1342 2341 3241 4231 1423 2413 3412 4312 1432 2431 3421 4321 We can see that this ordering will not satisfy rule 3 of change ringing (look at the second transition), so we must investigate other orderings of these permutations.

Factorial Representation The lexicographical ordering of permutations is so common that it is hard to even visualize any other ordering. Any non-negative integer m can be written uniquely in the following factorial form : m = a 1 1! + a 2 2! +... + a n-1 (n-1)! where 0 a i i. The a i 's are called factorial digits and we can write m = (a 1, a 2,..., a n-1 ). Thus, 0 = (0,0,...,0) and 2000 = (0,1,1,3,4,2). For fixed n, the largest integer represented is (1,2,...,n-1) = n! - 1.

Factorial Representation The factorial representation using the n-1 digits a 1,a 2,...,a n-1 can represent all the integers from 0 to n!-1, that is, n! integers. Any bijection between these representations and the set of permutations on n symbols will give an ordering of the permutations. There are many ways to set up these bijections, here we give one method due to Marshall Hall Jr. The permutations are written on the symbols 0,1,..., n-1. Given a permutation π, set a i as the number of symbols less than i which actually follow i in π. (Note that we have 0 a i i) 1 3 0 2 (1,0,2) = 13 3 2 0 1 (0, 2, 3) = 22

Inverse The easiest way to show that this is a bijection is to produce the inverse function. To form the permutation on the symbols 0,...,n-1 from the factorial representation (a 1, a 2,..., a n-1 ), we fill the n positions of the permutation in the following way: Work with the symbols starting with the largest (n-1) and going down to 0. Place symbol i in position a i where one counts only unoccupied positions, going from right to left and starting the count at 0. Put 0 in the last empty space. Thus, (1,0,2) would give us the following steps:. 3... 3. 2 13. 2 1302

Johnson-Trotter Algorithm Independently, Johnson and Trotter came up with an algorithm for generating all permutations where each new permutation differs from the last one by only a switch of two adjacent symbols. This algorithm produces a list of permutations which would satisfy rule 3. The algorithm is based on the idea that if you already have a permutation on n-1 symbols, to get a permutation on n symbols you only have to put in the symbol n. 1 2 3 4 1 2 4 3 all come from expanding 123 1 4 2 3 4 1 2 3

Johnson-Trotter Algorithm This idea can be used to recursively generate the permutations, but we can actually generate the next permutation in this order knowing only the last one. This algorithm for generating the permutations in the Johnson- Trotter order is due to Even. To each symbol in the permutation we will associate a direction, either left or right, by writing an arrow above the symbol. A symbol is called mobile if its arrow points to a smaller symbol adjacent to it. So, in 2 6 3 1 5 4 (no arrow = left arrow) only 3, 5 and 6 are mobile.

Johnson-Trotter (Even) The algorithm: Begin with 123...n (all arrows pointing left). While there is a mobile symbol do the following: (1) Find the largest mobile symbol m. (2) Swap m and the adjacent symbol to which it points. (3) Switch the direction of all the arrows above the symbols larger than m. The algorithm stops when there are no mobile symbols.

Examples: Johnson-Trotter (Even) 3 21 4 3 is largest mobile 2 31 4 swap 3 and 2 2 314 change direction on symbols greater than 3 4 31 2 2 is largest mobile 4 321 swap 2 and 1 4 3 21 change direction on symbols greater than 2

Johnson-Trotter The output for n = 4 is: 1 2 34 4 3 21 1 2 43 3 4 21 1 4 23 3 2 41 4 1 23 3 21 4 4132 2 3 14 1 4 32 2 3 41 1 3 42 2 4 31 1 3 2 4 4 2 31 3 1 24 4 21 3 3 1 42 2 41 3 3 4 12 2 1 4 3 4 3 12 2 1 3 4

Fibonacci Sequences How many ways (ordered) can one write a non-negative integer as a sum of 1's and 2's? For the non-negative integer n, let F(n) = F n be the answer to this question. We have: F 2 = 2 since 2 = 2 = 1+1 (2 ways) F 3 = 3 since 3 = 2+1 = 1+2 = 1+1+1 (3 ways) F 4 = 5 since 4 = 2+2 = 2+1+1 = 1+2+1 = 1+1+2 = = 1+1+1+1 (5 ways) Clearly, F 1 = 1 and it makes sense to define F 0 = 1, since there is only one way to write 0 this way (use no 1's and no 2's).

Fibonacci Sequences Let n 2. Any of these expressions for n must end in either a 1 or a 2. For those that end in a 1, the earlier digits must add up to n-1 (and are just 1's and 2's) and any expression for n-1 consisting of just 1's and 2's with an additional 1 added at the end will give an expression for n (which ends in a 1). Similarly, those expressions that end in a 2 have earlier terms that add up to n-2. So, we must have F n = F n-1 + F n-2 for n 2. This is known as the Fibonacci recursion relation and with the initial conditions that F 0 = F 1 = 1, the sequence of integers {F n } n 0 is known as the Fibonacci sequence.

Fibonacci Sequences We wish to obtain an explicit formula for the n th Fibonacci number. Since the recursion relation is linear, any linear combination of solutions to the recursion is also a solution to the recursion. If the number of terms in such a linear combination equals the number of initial conditions, the coefficients of the linear combination can be determined. There are two common methods for solving linear recursion relations and we will look at both of them as applied to our situation.

Fibonacci Sequences Method 1: Start with the recursion relation: F n = F n-1 + F n-2 Make the subscripts exponents:(a nonsense move) F n = F n-1 + F n-2 Factor out any common factors and solve the resulting polynomial equation (for F). F 2 F 1 = 0. The solutions of this polynomial raised to the n th power are particular solutions of the recursion relation. f 1 = 1 5 2 n and f 2 = 1 5 2 n

Fibonacci Sequences Method 1 (cont.): Now we form the linear combination of these two solutions to get the general solution: F n = af 1 + bf 2 We solve for the coefficients by using the initial conditions: 1 = F 0 = a + b, and 1 = F 1 = a 1 5 2 b 1 5 2. To get, a = 5 1 2 5 and b = 5 1 2 5, F n = 5 1 1 n 5 2 5 2 5 1 1 n 5. 2 5 2

Fibonacci Sequences Method 2: Form the (ordinary) generating function for the Fibonacci sequence: G t = n 0 F n t n We multiply by powers of t to set up a replacement using the recursion relation: t G t = F n t n 1 n 0 t 2 G t = F n t n 2 n 0 = F n 1 t n n 1 = F n 2 t n n 2

Fibonacci Sequences G t t G t t 2 G t = F 0 F 1 t n 2 1 t t 2 G t = F 0 F 1 t F 0 t = 1 so G t = F n t n F 0 t n 2 F n 1 t n n 2 F n 2 t n 1 1 t t 2. Now we need to write G(t) as a power series and then read off the coefficients which will be the Fibonacci numbers. The steps here involve factoring the denominator and then writing this rational function in its partial fraction form: G t = 1 1 t t = 1 2 1 t 1 t = A 1 t B 1 t

Fibonacci Sequences After finding the constants, α, β, A and B we would have: G t = A n 0 t n so F n = A n B n. B n 0 t n = A n B n t n n 0 Since 1 t t 2 = (1 αt)(1 βt), we must have that αβ = -1 and α + β = 1. Thus, α and β are the roots of the quadratic x 2 -x 1. Finding A and B also involves simple manipulations that we have already seen, so F n = 5 1 1 n 5 2 5 2 5 1 1 n 5. 2 5 2

Special Involutions The Fibonacci numbers arise in quite a few places where you would not expect them. In change ringing, the transition from one row to the next must either leave a bell fixed or interchange a bell with one that is adjacent to it. When thought of as a permutation, if a transition is repeated, we would fix every bell (that is, get the identity permutation). Such permutations (of order 2) are called involutions. Not all involutions give transitions (consider an involution which interchanges just two non-adjacent bells) and the identity permutation (which is an involution) does not give a proper transition.

Special Involutions Let t(n) be the number of change ringing transitions that are permitted with n bells. Theorem: For n 2, t(n) = F n -1. (F n is the n th Fibonacci #) Pf: It is easy to see that t(2) = 1 = F 2-1 and t(3) = 2 = F 3 1. We can then assume the result for n < k and consider t(k) with k 4. There are t(k-1) transitions which fix position k (the last position). Also, there are t(k-2) transitions which interchange positions k and k-1 and at least one other pair. Finally, a single transposition (k-1,k) (not already counted). t(k) = t(k-1) + t(k-2) + 1 = F k-1-1 + F k-2 1 + 1 = F k - 1.