CSE 1400 Applied Discrete Mathematics Permutations

Similar documents
Elementary Combinatorics

CSE 21 Mathematics for Algorithm and System Analysis

ACTIVITY 6.7 Selecting and Rearranging Things

Math 1111 Math Exam Study Guide

Permutations and Combinations Section

Math 166: Topics in Contemporary Mathematics II

Suppose you are supposed to select and carry out oneof a collection of N tasks, and there are T K different ways to carry out task K.

11.3B Warmup. 1. Expand: 2x. 2. Express the expansion of 2x. using combinations. 3. Simplify: a 2b a 2b

CSE 21 Practice Final Exam Winter 2016

Permutations and Combinations. MATH 107: Finite Mathematics University of Louisville. March 3, 2014

Reading 14 : Counting

Probability. The MEnTe Program Math Enrichment through Technology. Title V East Los Angeles College

Math 1111 Math Exam Study Guide

Name: Exam 1. September 14, 2017

Permutations and Combinations Practice Test

Permutations and Combinations

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

Honors Precalculus Chapter 9 Summary Basic Combinatorics

March 5, What is the area (in square units) of the region in the first quadrant defined by 18 x + y 20?

Developed by Rashmi Kathuria. She can be reached at

CS Programming Project 1

MGF 1106: Exam 2 Solutions

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

Chapter 2. Permutations and Combinations

Permutations and Combinations Problems

CSE 312: Foundations of Computing II Quiz Section #1: Counting (solutions)

Unit on Permutations and Combinations (Counting Techniques)

CIS 2033 Lecture 6, Spring 2017

MA 524 Midterm Solutions October 16, 2018

Counting integral solutions

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

Unit 5 Radical Functions & Combinatorics

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Math-Essentials. Lesson 9-2: Counting Combinations

Poker Hands. Christopher Hayes

MAT points Impact on Course Grade: approximately 10%

ABE/ASE Standards Mathematics

Fundamentals of Probability

CS 3233 Discrete Mathematical Structure Midterm 2 Exam Solution Tuesday, April 17, :30 1:45 pm. Last Name: First Name: Student ID:

10 Game. Chapter. The PV Unit comes with two built-in games for your enjoyment. The games are named Game-1 and Game-2.

Chapter 6.1. Cycles in Permutations

Elementary Combinatorics CE 311S

CS Project 1 Fall 2017

Jong C. Park Computer Science Division, KAIST

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1:

Combinatorics. Chapter Permutations. Counting Problems

The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n ways to do the first task and n

CSE 312: Foundations of Computing II Quiz Section #1: Counting

Introduction. Firstly however we must look at the Fundamental Principle of Counting (sometimes referred to as the multiplication rule) which states:

The Problem. Tom Davis December 19, 2016

Mathematical Foundations of Computer Science Lecture Outline August 30, 2018

Algebra. Recap: Elements of Set Theory.

Alg 2/Trig Honors Qtr 3 Review

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

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

Poker: Further Issues in Probability. Poker I 1/29

3 The multiplication rule/miscellaneous counting problems

Multiple Choice Questions for Review

Tribute to Martin Gardner: Combinatorial Card Problems

Design and Analysis of Algorithms Prof. Madhavan Mukund Chennai Mathematical Institute. Module 6 Lecture - 37 Divide and Conquer: Counting Inversions

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

Compound Probability. Set Theory. Basic Definitions

Counting. Chapter 6. With Question/Answer Animations

Sample Spaces, Events, Probability

Permutations. Used when "ORDER MATTERS"

19.2 Permutations and Probability Combinations and Probability.

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

Counting Methods and Probability

13.3 Permutations and Combinations

NOTES ON SEPT 13-18, 2012

{ a, b }, { a, c }, { b, c }

SMS Dictionary. Solution hint. Input format. Output format. (Indian National Olympiad in Informatics, INOI, 2007)

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

OALCF Task Cover Sheet. Apprenticeship Secondary School Post Secondary Independence

Principle of Inclusion-Exclusion Notes

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

Pattern Avoidance in Unimodal and V-unimodal Permutations

Bell Work. Get out the two copies of your desmos picture, the one copy of your equations, and the construction paper you brought.

n! = n(n 1)(n 2) 3 2 1

FOURTH LECTURE : SEPTEMBER 18, 2014

Poker: Probabilities of the Various Hands

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

COUNTING AND PROBABILITY

STAT Statistics I Midterm Exam One. Good Luck!

Determine the number of permutations of n objects taken r at a time, where 0 # r # n. Holly Adams Bill Mathews Peter Prevc

Week 1: Probability models and counting

CSE 21: Midterm 1 Solution

How Euler Did It. by Ed Sandifer. Derangements. September, 2004

Lecture 14. What s to come? Probability. A bag contains:

Sorting Squares. (Martin Gardner)

HIGH SCHOOL MATHEMATICS CONTEST Sponsored by THE MATHEMATICS DEPARTMENT of WESTERN CAROLINA UNIVERSITY. LEVEL I TEST March 23, 2017

CISC 1400 Discrete Structures

Lesson1.notebook July 07, 2013

Theory of Probability - Brett Bernstein

Bell Work. List all the possible ways three different people can be standing in order.

Staircase Rook Polynomials and Cayley s Game of Mousetrap

Venn Diagram Problems

Probability (Devore Chapter Two)

Question No: 1 If you join all the vertices of a heptagon, how many quadrilaterals will you get?

DISCRETE STRUCTURES COUNTING

Transcription:

CSE 1400 Applied Discrete Mathematics Department of Computer Sciences College of Engineering Florida Tech Fall 2011 1 Cyclic Notation 2 Re-Order a Sequence 2 Stirling Numbers of the First Kind 2 Problems on 4 Abstract A permutation is a one-to-one function from a set onto itself. A permutation is a function that rearranges the order of terms in a sequence. It is useful to study a few small examples. Consider the suits in a deck of playing cards: clubs, diamonds, hearts, and spades. In computing practice, sorting a group of objects into a preferred order is a fundamental operation. Sorting algorithms perform a sequence of permutations on the objects, each bringing them closer to the preferred order. There are 2! = 2 permutations of two things. Starting with a, after picking up a, place it before or after the. If you next draw a it can be place before, in the middle, or after the already permuted pairs. Imagine inserting a into one of the already arranged suits, say. There are four places where the can be inserted: first, second, third, or fourth. Reasoning like this it is not difficult to observe there are 4! = 4 6 = 4 3 2 1 = 24 There are 3! = 6 permutations of three things.,,,

permutations 2 permutations on 4 things. Let A be a ith n elements. The symbol for the count of ways to permute the elements of A is n! and pronounced n factorial. This count of permutations can be computed by evaluating the product n! = n(n 1)(n 2) (2)(1) called n factorial. Cyclic Notation Under a permutation a thing in spot n goes to spot m. Cyclic notation describes goes to. Consider the permutation shift by 2 [0, 2, 4,, 24][1, 3, 5,, 25] on the English alphabet applied to the characters in the statement a man a plan a canal panama c ocp c rncp c ecpcn rcpcoc Re-Order a Sequence In computing practice, you may need to save the thing is spot m before overwriting it with the thing from spot n. For instance, under the permutation Original Order 0 1 2 3 4 Permuted Order 4 3 2 1 0 value 0 goes to position 4 and 4 goes to 0, 1 goes to position 3 and 3 goes to 1, and 2 stays put. In cyclic notation, the above permutation is written [0, 4][1, 3][2] Okay! Blank did not shift. For small sets each permutation can be listed. Let A be a set with cardinality A = n. There are n factorial different permutations of the elements in A. Figure 1 shows the 3! = 6 permutations of the elements in {0, 1, 2} written in cyclic notation. The permutations on {0, 1, 2, 3} can be defined recursively, that is, from the permutations on {0, 1, 2}. For instance, to build all 2-cycle permutations of {0, 1, 2, 3}. use the one and two-cycle permutations of {0, 1, 2}. It is convenient to say there is a permutation of the, so there is 1. That is, 0! = 1. 1. Append the cycle [3] to each 1-cycle permutation of {0, 1, 2} 2. Insert new element 3 in three positions in each 2-cycle permutations of {0, 1, 2} Using [ n m ] to name the count of 2-cycle permutations of a 4-element set, write [ ] 4 = 2 [ ] 3 + 2 1 [ ] 3 = 2 + 3 3 = 11 2 These eleven permutations are shown in figure 2.

permutations 3 Figure 1: Cyclic notation for the 3! permutations of {0, 1, 2}. [0, 1, 2] [0][1, 2] [0][1][2] [0, 2, 1] [1][0, 2] [2][0, 1] Figure 2: Cyclic notation for the 4! permutations of {0, 1, 2, 3}. [0, 1, 2, 3] [0, 1, 2][3] [0][1, 2][3] [0][1][2][3] [0, 1, 3, 2] [0, 2, 1][3] [1][0, 2][3] [0, 3, 1, 2] [0][1, 2, 3] [2][0, 1][3] [0, 2, 1, 3] [0][1, 3, 2] [0][1][2, 3] [0, 2, 3, 1] [0, 3][1, 2] [0][1, 3][2] [0, 3, 2, 1] [1][0, 2, 3] [0, 3][1][2] [1][0, 3, 2] [1, 3][0, 2] [2][0, 1, 3] [2][0, 3, 1] [2, 3][0, 1]

permutations 4 Stirling Numbers of the First Kind The elements of set with cardinality n can be permuted into m cycles in [ n m ] ways. Stirling numbers of the first kind are defined by the recurrence equation n n 1 n 1 = + (n 1) m m 1 m with boundary conditions [ ] n = 1, and n [ ] n = 0, for n > 0 0 Check that the following arithmetic can be verified by the numbers in table 1. 4 3 3 = + 3 = 3 + 3 1 3 2 3 5 4 4 = + 4 = 11 + 4 6 3 [ ] 7 = 5 2 3 [ ] [ ] 6 6 + 6 = 85 + 6 15 4 5 The notation [ n m ] is called n cycle m. Table 1: Stirling numbers of the first kind [ n m ] count the permutations with m cycles of n things. Stirling Numbers of the First Kind [ n m ] Cycle m 0 1 2 3 4 5 6 7 8 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 2 0 1 1 0 0 0 0 0 0 3 0 2 3 1 0 0 0 0 0 n 4 0 6 11 6 1 0 0 0 0 5 0 24 50 35 10 1 0 0 0 6 0 120 274 225 85 15 1 0 0 7 0 720 1764 1624 735 175 21 1 0 8 0 5040 13068 13132 6769 1960 322 28 1 Problems on 1. True or false: A permutation of X is a one-to-one function from X onto X. 2. True or false: [c, a, b] is a permutation of {a, b, c}. 3. True or false: [a, a, b] is a permutation of {a, b, c}. 4. True or false: There are 2 n permutations of an n element set. 5. True or false: There are n! permutations of an n element set. 6. Let H = {0, 1, 2,..., E, F}. (a) How many permutations can be defined on H? (b) In how many ways can you choose 5 elements from H

permutations 5 (c) In how many ways can you choose and permute 5 elements from H (d) How many permutations on H have 16 cycles? (e) How many permutations on H have 1 cycle? 7. Let X be an 8-element set. How many permutations on X have 4 cycles? That is, what is the value of the Stirling number [ 8 4 ] 8 cycle 4? You may want to know row 7 of Stirling s triangle of the first kind is 0 1 2 3 4 7 0 720 1764 1624 735 8. Use cyclic notation to describe the permutation (0, 1, 2, 3) of the elements in the set {0, 1, 2, 3} 9. Use cyclic notation to describe the permutation (0, 2, 4, 6, 1, 3, 5, 7) of the octal alphabet {0, 1, 2, 3, 4, 5, 6, 7} 10. Use cyclic notation to describe the permutation (1, 2, 0, 7, 3, 4, 5, 6) of the octal alphabet {0, 1, 2, 3, 4, 5, 6, 7}