A permutation can also be represented by describing its cycles. What do you suppose is meant by this?



Similar documents
Zachary Monaco Georgia College Olympic Coloring: Go For The Gold


Just the Factors, Ma am

DATA ANALYSIS II. Matrix Algorithms

SQUARE-SQUARE ROOT AND CUBE-CUBE ROOT

Pigeonhole Principle Solutions

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Permission is given for the making of copies for use in the home or classroom of the purchaser only.

SECTIONS NOTES ON GRAPH THEORY NOTATION AND ITS USE IN THE STUDY OF SPARSE SYMMETRIC MATRICES

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = i.

Example 1: Suppose the demand function is p = 50 2q, and the supply function is p = q. a) Find the equilibrium point b) Sketch a graph

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

3.2 Sources, Sinks, Saddles, and Spirals

Direct Methods for Solving Linear Systems. Matrix Factorization

Unit 18 Determinants

3.2 Matrix Multiplication

Orthogonal Projections

Graph Theory Problems and Solutions

The Clar Structure of Fullerenes

How To Solve The Social Studies Test

Elementary Matrices and The LU Factorization

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

DETERMINANTS IN THE KRONECKER PRODUCT OF MATRICES: THE INCIDENCE MATRIX OF A COMPLETE GRAPH

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

How to Calculate the Probabilities of Winning the Nine PowerBall Prize Levels:

How to Calculate the Probabilities of Winning the Eight LUCKY MONEY Prize Levels:

GENERATING SETS KEITH CONRAD

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

Learn How to Use The Roulette Layout To Calculate Winning Payoffs For All Straight-up Winning Bets

Why? A central concept in Computer Science. Algorithms are ubiquitous.

Chapter 3. Distribution Problems. 3.1 The idea of a distribution The twenty-fold way

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

6.3 Conditional Probability and Independence

Session 6 Number Theory

Using a Graphing Calculator With Cramer s Rule

Developing Entity Relationship Diagrams (ERDs)

9.2 Summation Notation

Sum of Degrees of Vertices Theorem

Pennies and Blood. Mike Bomar

Acquisition Lesson Planning Form Key Standards addressed in this Lesson: MM2A3d,e Time allotted for this Lesson: 4 Hours

Graph Theory Lecture 3: Sum of Degrees Formulas, Planar Graphs, and Euler s Theorem Spring 2014 Morgan Schreffler Office: POT 902

CHOOSING A COLLEGE. Teacher s Guide Getting Started. Nathan N. Alexander Charlotte, NC

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

18.06 Problem Set 4 Solution Due Wednesday, 11 March 2009 at 4 pm in Total: 175 points.

Math 1050 Khan Academy Extra Credit Algebra Assignment

MEP Pupil Text 12. A list of numbers which form a pattern is called a sequence. In this section, straightforward sequences are continued.

Session 8 Probability

Row Echelon Form and Reduced Row Echelon Form

6. Cholesky factorization

Math Workshop October 2010 Fractions and Repeating Decimals

(67902) Topics in Theory and Complexity Nov 2, Lecture 7

Class One: Degree Sequences

The Open University s repository of research publications and other research outputs

Vectors 2. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

Current California Math Standards Balanced Equations

TIME VALUE OF MONEY. Hewlett-Packard HP-12C Calculator

Warshall s Algorithm: Transitive Closure

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

Determinants in the Kronecker product of matrices: The incidence matrix of a complete graph

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

How To Understand And Solve A Linear Programming Problem

Unit 7 Quadratic Relations of the Form y = ax 2 + bx + c

Chapter 11 Number Theory

Free Inductive/Logical Test Questions

DERIVATIVES AS MATRICES; CHAIN RULE

Contents. Sample worksheet from

Determinants can be used to solve a linear system of equations using Cramer s Rule.

STAT 35A HW2 Solutions

2.1. Inductive Reasoning EXAMPLE A

NUMBERS AND THE NUMBER SYSTEM

Recall that two vectors in are perpendicular or orthogonal provided that their dot

S on n elements. A good way to think about permutations is the following. Consider the A = 1,2,3, 4 whose elements we permute with the P =

Solving Simultaneous Equations and Matrices

Probability. Section 9. Probability. Probability of A = Number of outcomes for which A happens Total number of outcomes (sample space)

Euler Paths and Euler Circuits

Category 3 Number Theory Meet #1, October, 2000

MAKING MATH MORE FUN BRINGS YOU FUN MATH GAME PRINTABLES FOR HOME OR SCHOOL

Unit 6 Number and Operations in Base Ten: Decimals

Day One: Least Common Multiple

Common Multiples. List the multiples of 3. The multiples of 3 are 3 1, 3 2, 3 3, 3 4,...

Lesson 4.3: Using the VLOOKUP Function

Math Card Games to Print and Play

INTERSECTION MATH And more! James Tanton

Texas Hold em. From highest to lowest, the possible five card hands in poker are ranked as follows:

Lemma 5.2. Let S be a set. (1) Let f and g be two permutations of S. Then the composition of f and g is a permutation of S.

How To Understand And Solve Algebraic Equations

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

Chapter 6: Graph Theory

The Function Game: Can You Guess the Secret?

MD5-26 Stacking Blocks Pages

Social Media Mining. Graph Essentials

Answer: (a) Since we cannot repeat men on the committee, and the order we select them in does not matter, ( )

Extremal Wiener Index of Trees with All Degrees Odd

MATH APPLIED MATRIX THEORY

Objective: Use calculator to comprehend transformations.

Warm-Up What is the least common multiple of 6, 8 and 10?

Discrete Mathematics Problems

This document contains Chapter 2: Statistics, Data Analysis, and Probability strand from the 2008 California High School Exit Examination (CAHSEE):

Third Grade Math Games

I remember that when I

Transcription:

Shuffling, Cycles, and Matrices Warm up problem. Eight people stand in a line. From left to right their positions are numbered,,,... 8. The eight people then change places according to THE RULE which directs a person in one position to another. For example, the person in position moves to position, and we denote this by. Here is THE RULE in its entirety,,, 7,,, 7 8, 8. Suppose THE RULE is applied repeatedly. Will there ever be a time when every person is back in their original position? What is the minimum number of times before this happens? Can you think of other ways to represent THE RULE? Many magicians are wizards with cards. The best of them can take a deck of cards and repeatedly execute a perfect shuffle. In this way if they start with a new deck and do a couple of shuffles, they will know the position of every card in the deck. In fact, by executing enough perfect shuffles the deck can be returned to its original ordering. How many shuffles does this take? Before answering this question, we need to decide what we mean by a perfect shuffle. Not surprisingly there are many different ways to shuffle cards. Today we will work with the overhand shuffle. Of course there are many other ways to define a shuffle. We assume that our deck has an even number of cards, say n. Divide the deck into two equal stacks, and place the upper stack (cards through n) to the right of the lower stack (cards n + through n.) This is step b. in the figure below. Beginning with the right stack, alternately take the top card from each stack and place them in a new pile. Continue until no cards are left. See c. in the figure. Note that this can be done in with the riffle shuffle action we are all used to when shuffling cards, but the two step procedure described here is needed so we fully understand what kind of shuffle is being considered in this case. a. b. c.. Find the number of overhand shuffles needed to return a deck to its original ordering. Do this for decks of,,, 8, 0,,, cards. (The minimum number of shuffles needed is called the period (or order) of the shuffle).

A shuffle is a permutation (e.g., rearrangement) of the cards. Permutations can be described in many ways. One way is the arrow notation seen in the warm-up problem. This permutation can also be described by the structure ( ) 7 8 7 8 A permutation can also be represented by describing its cycles. What do you suppose is meant by this?. Write out the cycle structure for each of the shuffles in Problem. How does this help you find the period of the shuffle? What is the general result here linking periods and cycles?. Write out the card stack diagram (as in c. of the figure) and then the cycle diagram for the overhand shuffle of a card deck. How many overhand shuffles does it take to return a card deck to its original ordering?. Suppose you have a deck of n cards and do an overhand shuffle. To what position does card k go if k n? Where does it go if n + k n?. Suppose you have a deck of cards and you do an overhand shuffle. Where does card 7 (e.g., 7 from the top) end up? Where will this card be after a second overhand shuffle? After the third? Fourth? Keep going until you get back to the original position. How many steps did it take? What does this tell you about the period for a card deck?. In the card deck there are two cards that always stay in the same position. What are they? 7. Invent an overhand shuffle for a deck with and odd number (say n + ) of cards. Calculate the period for some small decks. A permutation can also be represented by its incidence matrix. The matrix for the warm-up permutation is 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0, 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

where, for example, the in the fifth row, sixth column, indicates that the person in position goes to position. 8. Write out the incidence matrix for an overhand shuffle of cards. Now do two consecutive overhand shuffles on the six card deck. What is the incidence matrix for the two shuffle permutation? What is the relationship between these two matrices? What would be the incidence matrix for four overhand shuffles of a six card deck? How does this matrix relate to the other two? Incidence matrices are also an important part of graph theory. A graph is a collection of points (or vertices) and edges that join pairs of these points. As an example, here is a picture of a graph with vertices and 8 edges. If we number the vertices, as in the figure, then we can write an incidence matrix for this graph: 0 0 0 0 0 M = 0 0 0 0 0, 0 0 where the in row and column (and row and column ) indicates that there are two edges connecting vertices and. 9. For each pair (a, b) of vertices count the number of ways to get from vertex a to vertex b on a path that is exactly two edges long. Write the incidence matrix for this set of data. How is this matrix related to M? Explain your reasoning. How could you get the number of paths at edges long between each vertex?

Shuffling, Cycles, and Matrices Notes There are two important ideas/skills underlying these activities. The first is the idea of a cycle. The second is matrix multiplication. The cycles for a permutation can be found by picking out one element and tracing its path until it gets back to itself. For example, when the rearrangement for the warm-up problem is displayed as cycles we have: 8 7 The first part of the cycle shows that the people is positions,,, are back in their original positions after four (or eight, or twelve... ) applications of THE RULE. This is a cycle of length. The number is the only number in its cycle since the person in this position never moves. Finally, the numbers, 7, 8 are in a cycle of length, so the people in these positions return to their initial position after three (or six or nine... ) applications of THE RULE. How many applications does it take for all people to be back in their original positions? The number must be a multiple of and of, and we are lead to the LCM of and which is.. Gather some data: n, n, n,...,n = n (n ). Thus if k n then k n (k ). Similarly, if n + k n then k (n k) +.. Using the formulae from the previous problem (but be careful!) we see 7 is in a cycle of length. Thus the period for the card shuffle is a multiple of.. Again use the formulas in. If k = n then card k stays in the same position if k = (k ), from which k =. Similarly, using the other part of we see card stays in the same position with each shuffle.

8. The incidence matrix for two consecutive shuffles can be found by multiplying the one shuffle matrix by itself: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 As illustrated, the element in the nd row and th column is found by taking the dot product of the nd row of the first matrix with the th column of the second: (0, 0, 0,, 0, 0) (0, 0, 0,, 0, 0) = 0 0 + 0 0 + 0 0 + + 0 0 + 0 0 =. The in this position of the product indicates that after two shuffles, card is in position.