Permutations. Example : let be defned by and let be defned by

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

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Ma/CS 6a Class 16: Permutations

Chapter 6.1. Cycles in Permutations

Permutation Groups. Definition and Notation

Combinations and Permutations

Math236 Discrete Maths with Applications

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

Lecture 18 - Counting

An Intuitive Approach to Groups

Permutations. = f 1 f = I A

Determinants, Part 1

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 11

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

Grade 7/8 Math Circles Game Theory October 27/28, 2015

EXPLAINING THE SHAPE OF RSK

Mathematics. ( (Chapter 7) (Permutations and Combinations) (Class XI) Exercise 7.3

Generalized Permutations and The Multinomial Theorem

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

Automorphisms of Graphs Math 381 Spring 2011

Latin Squares for Elementary and Middle Grades

CS103 Handout 22 Fall 2017 October 16, 2017 Practice Midterm Exam 2

LECTURE 8: DETERMINANTS AND PERMUTATIONS

CALCULATING SQUARE ROOTS BY HAND By James D. Nickel

Pattern Avoidance in Unimodal and V-unimodal Permutations

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

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

Exercises to Chapter 2 solutions

Algebra. Recap: Elements of Set Theory.

MAT 409 Semester Exam: 80 points

Discrete Mathematics. Spring 2017

The number of mates of latin squares of sizes 7 and 8

Lesson 2: Using the Number Line to Model the Addition of Integers

Final Exam, Math 6105

Sample Spaces, Events, Probability

CSE 1400 Applied Discrete Mathematics Permutations

7.4 Permutations and Combinations

Session 5 Variation About the Mean

CPCS 222 Discrete Structures I Counting

MAT 115: Finite Math for Computer Science Problem Set 5

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

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Fifteen puzzle. Sasha Patotski. Cornell University November 16, 2015

Lecture 2.3: Symmetric and alternating groups

To Your Hearts Content

ACTIVITY 6.7 Selecting and Rearranging Things

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015

Counting. Chapter 6. With Question/Answer Animations

YGB #2: Aren t You a Square?

CSE 312 Midterm Exam May 7, 2014

CRACKING THE 15 PUZZLE - PART 1: PERMUTATIONS

For each person in your group, designate one of the following colors: Red, Blue, and Black. Next to the color, write your name in that color:

Taking Sudoku Seriously

The Problem. Tom Davis December 19, 2016

MATLAB Image Processing Toolbox

Kenken For Teachers. Tom Davis January 8, Abstract

Chapter 4 Number Theory

Math 1111 Math Exam Study Guide

The Place of Group Theory in Decision-Making in Organizational Management A case of 16- Puzzle

MA 524 Midterm Solutions October 16, 2018

Study Guide: 5.3 Prime/Composite and Even/Odd

Joint Distributions, Independence Class 7, Jeremy Orloff and Jonathan Bloom

Grade 7/8 Math Circles. Visual Group Theory

MATH 13150: Freshman Seminar Unit 15

Building Concepts: Fractions and Unit Squares

Binary Continued! November 27, 2013

The Math Behind Futurama: The Prisoner of Benda

CSE 20 DISCRETE MATH. Fall

November 11, Chapter 8: Probability: The Mathematics of Chance

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

2 Textual Input Language. 1.1 Notation. Project #2 2

Discrete Mathematics with Applications MATH236

Grade 7/8 Math Circles. Visual Group Theory

Section 5: Models and Representations

Modular Arithmetic. Kieran Cooney - February 18, 2016

MATH 2420 Discrete Mathematics Lecture notes

Notes on 4-coloring the 17 by 17 grid

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

CONTENTS CONTENTS PAGES 11.0 CONCEPT MAP A. PERMUTATIONS a EXERCISE A B. COMBINATIONS a EXERCISE B PAST YEAR SPM

Practice Midterm Exam 5

With Question/Answer Animations. Chapter 6

Math 127: Equivalence Relations

A few chessboards pieces: 2 for each student, to play the role of knights.

On 3-Harness Weaving: Cataloging Designs Generated by Fundamental Blocks Having Distinct Rows and Columns

Intermediate Math Circles November 13, 2013 Counting II

Introduction to Counting and Probability

RMT 2015 Power Round Solutions February 14, 2015

An art collector might own a collection of paintings, while a music lover might keep a collection of CDs. Any collection of items can form a set.

LAMC Junior Circle February 3, Oleg Gleizer. Warm-up

Modular arithmetic Math 2320

MAT Modular arithmetic and number theory. Modular arithmetic

Reading 14 : Counting

Finite and Infinite Sets

12. 6 jokes are minimal.

@CRC Press. Discrete Mathematics. with Ducks. sarah-marie belcastro. let this be your watchword. serious mathematics treated with levity

1. What are the coordinates for the viewer s eye?

Exercises Exercises. 1. List all the permutations of {a, b, c}. 2. How many different permutations are there of the set {a, b, c, d, e, f, g}?

Transcription:

Permutations We reviewed the idea of function composition. Let f : A B g : B C be functions (ie. f is a function from set A to set B, g is a function from set B to set C) then we write the composition of g f as g f. g f is a function from A to C (in notation g f : A C) such that a A, (g f) (a) = g(f(a)) In plain English, when we see g f we just have to remember that it means, apply f, then apply g to the result of that. The key thing to remember is that the frst function we apply is the last one listed. Example : let be defned by let be defned by Consider g f (5). We know this is equivalent to. Since, our answer is, which is 16. But now consider f g(5)... this equals, which is... so the answer is 13. This demonstrates that g f f g are not the same. Note that when g f is well-defned, f g may not be defned at all. To compose two functions, the target set of the frst one we apply must match the input set of the second one we apply. In class we did an example using three sets: A = {1,2,3}, B = {Kingston, Otawa, Beijing, Damascus}, C = {bananas, strawberries, oranges, grapes} (I may have misremembered the exact sets we used because the example was created on the spur of the moment.) Now we can create a function a function (the details of the functions are not important) we know we can compose with that is, we know is welldefned. takes any element of A as input returns an element of B, then takes that element of B returns an element of C. It makes perfect sense to think of as a function that maps A to C. We can write. However is not defned, since produces elements of C as output, can only be applied to elements of A. Let s exp on this idea a bit. Suppose we have two sets A B, two functions. Now we are guaranteed that are both well-defned. We can write. Make sure you underst why this is true. And one step further. Let A be a set let be a function. It should be clear

that is also a function from A to A... it is reasonable to write as To illustrate this, consider the function defned by Then In the same way, we can defne so on. By this point it should be clear that composition gives us a way to combine functions to create new functions, it is similar in some ways diferent in some ways to the way that we use arithmetic operations to combine numbers to create new numbers. It may seem restrictive that there exist functions that cannot be composed with each other, but this is actually an indication that the set of all functions is more interesting than the set of all numbers. Now on to permutations. We ve seen the word permutation before, in the context of counting the number of diferent linear arrangements of n distinct objects. When we do that calculation, we ignore the details of the individual permutations we are counting. For the next couple of classes we are going to defne the concept of a permutation precisely, using our established understing of relations functions. We ll discuss the rudiments of a system of mathematics in which permutations are the fundamental objects. The idea of creating meaningful mathematical systems for things that are not numbers is of fundamental importance in discrete mathematics. Defnition: A permutation is a bijection from a set to itself. For example, let the set A = {a, red, 3, } One permutation of A is the bijection defned by the ordered pairs { (a,3), (red,a), (3, ), (, red) } --- make sure that you agree that this is a bijection. There were several questions raised in class about whether the set on which the permutations are based needs to be a set that has a natural order (such as {1,2,3,4} or {a,b,c,d} ). The answer is no, the set can be anything the set A in the example just given is a demonstration of that: there is no natural order for this set, but we can still defne permutations of it... in fact there are 4! permutations of this set. However most of our representations of permutations are based on the idea of choosing some particular order of the elements of the set as the normal or natural of the set then we describe permutations based on how they difer from the natural order of the set.

When we are studying permutations the objects in the set don t usually mater all that really maters is the siee of the set. For this reason, when we talk about permutations the set A is usually just {1, 2, 3,..., n} for some value of n. This is hy because we don t have to think too hard to come up with a natural order of the set! We use to represent the set of all permutations of the set {1, 2, 3,..., n} One of the frst questions we can ask is, what is? We already know the answer: The number of ways to create an ordered pair (1, x ) (where x represents an element of {1, 2,..., n}) is n. For each of those there are n-1 ways to create an ordered pair (2, y)... so on. The total number of bijections we can build is n! Consider the permutation of {1,2,3,4} defned by { (1,4), (2,1), (3,3) (4,2) } Notice that under this function, 3 maps to itself. This is perfectly fne. In fact, there is a permutation that changes nothing: f(x) = x for all x. For {1,2,3,4} the ordered pairs for this permutation are {(1,1), (2,2), (3,3), (4,4)}. This is called the identity permutation, we represent it with the Greek leter iota which looks like this:. It s basically i without the dot. In fact we almost always use Greek leters to name permutations : (pi), (sigma), (tau) are among the favourites. Permutations can be represented in a variety of ways. So far we have just listed the ordered pairs, but we can also use an n-by-n matrix, a diagram that shows the mapping of the set onto itself, or a 2-by-n matrix. For example, the permutation { (1,4), (2,1), (3,3) (4,2) } can also be represented as in which each row corresponds to the frst element in one of the ordered pairs, each column corresponds to the second element. A 1 in the matrix indicates that the elements represented by the row the column form an ordered pair. For example, there is a 1 in the second row frst column, so we know (2,1) is one of the ordered pairs in the permutation. As was mentioned in class, we could also use the columns to represent the frst elements of the pairs the rows to represent the second elements of the pairs. This would transpose the matrix.

We can also draw a diagram to represent the permutation. The 2-by-n matrix representation of this permutation looks like this: in which each column represents one of the ordered pairs in the permutation. It s important to underst that each of these representations contains exactly the same information (they defne the same permutation) that if we are given any one of them we can construct all the others. If we look at the 2-by-n matrix representation for diferent members of such as we can see that the frst line is always the same. So we can leave it out! We represent those permutations by I will call this the stard notation for a permutation of {1,..., n} because it is used very widely... but as we will see, there is another notation that is often more useful in practice.

Remember that a permutation is a function, so we can use it as one... the input is a position, the output is the value that occupies that position. So if =, we can say,, etc. Composing permutations is just like composing other functions. If are permutations of {1,..., n} we can write to represent the result of applying (as a function) then applying For example, let... what is? We can work it out:, so we get look... the result is a permutation! Exercise: Try to prove that the composition of two permutations will always be a permutation. 1 We can create a diagram to visualiee the composition of permutations. Using the same two permutations as in the previous example we get the fgure on the next page: 1 Hint: prove a broader statement: the composition of two bijections will always be a bijection. The result for permutations follows automatically since every permutation is a bijection.

This diagram illustrates. To see this, try starting at some position x in the frst column (for example, 3) follow the arrows to the last column (starting with 3, we end up on 2)... fnd that this corresponds exactly to. We can also just think of the operation of a permutation as turns x into y, so we can interpret as turns 3 into 4, then turns 4 into 2