Swaps and Inversions

Similar documents
Reading tax tables: Percentage method for withholding

Notes on the symmetric group

Lesson Exponential Models & Logarithms

Math 167: Mathematical Game Theory Instructor: Alpár R. Mészáros

Algebra homework 8 Homomorphisms, isomorphisms

Determinants II Linear Algebra, Fall 2008

CH 39 CREATING THE EQUATION OF A LINE

GPD-POT and GEV block maxima

Introduction. What exactly is the statement of cash flows? Composing the statement

Date Lesson #6: Factoring Trinomials with Leading Coefficients. Day #1

Chapter 6: Supply and Demand with Income in the Form of Endowments

Lecture Notes Simplifying Algebraic Expressions page 1

AS/ECON 2350 S2 N Answers to Mid term Exam July time : 1 hour. Do all 4 questions. All count equally.

Section 6.4 Adding & Subtracting Like Fractions

FOR INDIVIDUALS RECEIVING DISABILITY BENEFITS

Pre-Algebra, Unit 7: Percents Notes

TIM 50 Fall 2011 Notes on Cash Flows and Rate of Return

Cash Flow Statement [1:00]

Northeast Power. Sixty and. James P. Smith. Electric Bill /22/2003 $ 60.00

Finding the Sum of Consecutive Terms of a Sequence

6.1 Binomial Theorem

Mathematics Notes for Class 12 chapter 1. Relations and Functions

Real Estate Private Equity Case Study 3 Opportunistic Pre-Sold Apartment Development: Waterfall Returns Schedule, Part 1: Tier 1 IRRs and Cash Flows

6-3 Dividing Polynomials

Chapter 12 Module 4. AMIS 310 Foundations of Accounting

Pennsylvania Amend Instructions:

International Economics Prof. S. K. Mathur Department of Humanities and Social Science Indian Institute of Technology, Kanpur. Lecture No.

Yao s Minimax Principle

Lesson Description. Texas Essential Knowledge and Skills (Target standards) Texas Essential Knowledge and Skills (Prerequisite standards)

Cash flow forecasts Why is it important? Cash is not the same as profit How do we solve a cash flow problem?

UNIT 6 1 What is a Mortgage?

f x f x f x f x x 5 3 y-intercept: y-intercept: y-intercept: y-intercept: y-intercept of a linear function written in function notation

Chapter 7 BUILD YOUR VOCABULARY

Chapter 2 Fiscal Policies in Germany and France

How Do You Calculate Cash Flow in Real Life for a Real Company?

Accounting Principles Guide. Discussion of principles applicable to use of spreadsheet available for download at:

4: Single Cash Flows and Equivalence

Club Accounts - David Wilson Question 6.

The figures in the left (debit) column are all either ASSETS or EXPENSES.

Scenic Video Transcript Dividends, Closing Entries, and Record-Keeping and Reporting Map Topics. Entries: o Dividends entries- Declaring and paying

FEARLESS MATH. A Guide For Real Estate Agents. By Geoffrey Thompson and Rich Linkemer

Fiscal Closing Methods Summary

Chapter 33: Public Goods

NUMERACY BOOKLET: HELPFUL HINTS

Corporate Finance, Module 21: Option Valuation. Practice Problems. (The attached PDF file has better formatting.) Updated: July 7, 2005

CATEGORICAL SKEW LATTICES

How Working Affects SSA Benefits. Presented by MRS

ECO155L19.doc 1 OKAY SO WHAT WE WANT TO DO IS WE WANT TO DISTINGUISH BETWEEN NOMINAL AND REAL GROSS DOMESTIC PRODUCT. WE SORT OF

Name For those going into. Algebra 1 Honors. School years that begin with an ODD year: do the odds

A MODEL FOR A GLOBAL INVESTMENT ATTRIBUTION ANALYSIS, BASED ON A SYMMETRICAL ARITHMETIC ATTRIBUTION MODEL

IB Interview Guide: Case Study Exercises Three-Statement Modeling Case (30 Minutes)

Lesson 28. Student Outcomes. Lesson Notes. Materials. Classwork. Formulating the Problem (15 minutes)

(2/3) 3 ((1 7/8) 2 + 1/2) = (2/3) 3 ((8/8 7/8) 2 + 1/2) (Work from inner parentheses outward) = (2/3) 3 ((1/8) 2 + 1/2) = (8/27) (1/64 + 1/2)

Adding & Subtracting Percents

Economics. The last two weeks...

CSE 21 Winter 2016 Homework 6 Due: Wednesday, May 11, 2016 at 11:59pm. Instructions

Bayesian Nash Equilibrium

LECTURE 3: FREE CENTRAL LIMIT THEOREM AND FREE CUMULANTS

The basis for the depreciations is the acquisition cost.

An introductory guide to creating local budgets

What To Do With an Expected Inheritance

3 cups ¾ ½ ¼ 2 cups ¾ ½ ¼. 1 cup ¾ ½ ¼. 1 cup. 1 cup ¾ ½ ¼ ¾ ½ ¼. 1 cup. 1 cup ¾ ½ ¼ ¾ ½ ¼

Introduction to Priestley duality 1 / 24

A Layman s Guide to Earned Value

Can I take positive 5 from both sides of the equation? [Yes]

3 Ways to Write Ratios

3 Ways to Write Ratios

Economics 307: Intermediate Macroeconomic Theory A Brief Mathematical Primer

4A-122. Interim monthly income and expenses statement.

Chapter 2 Algebra Part 1

clarifying life s choices Life Insurance Selector Made Easy Producer Guide LIFE INSURANCE

About this lecture. Three Methods for the Same Purpose (1) Aggregate Method (2) Accounting Method (3) Potential Method.

Chapter 6 Firms: Labor Demand, Investment Demand, and Aggregate Supply

GCSE Homework Unit 2 Foundation Tier Exercise Pack New AQA Syllabus

Lesson 7.1: Factoring a GCF

Name Class Date. Adding and Subtracting Polynomials

Risk-neutral Binomial Option Valuation

Problem Set #4. Econ 103. (b) Let A be the event that you get at least one head. List all the basic outcomes in A.

Math Tech IIII, Mar 13

9/16/ (1) Review of Factoring trinomials. (2) Develop the graphic significance of factors/roots. Math 2 Honors - Santowski

Warm Up Lesson Presentation Lesson Quiz. Holt Algebra McDougal 1 Algebra 1

Maximum Contiguous Subsequences

1102 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 51, NO. 3, MARCH Genyuan Wang and Xiang-Gen Xia, Senior Member, IEEE

New York LIFE INSURANCE BUYER S GUIDE

12.3 Geometric Series

HPM Module_2_Breakeven_Analysis

2. This algorithm does not solve the problem of finding a maximum cardinality set of non-overlapping intervals. Consider the following intervals:

BUDGETING. 7.1 What Do I Need? 7.2 What Will My Attendant Services Cost? Wages. Section 7

Chapter 12 Module 6. AMIS 310 Foundations of Accounting

Piecewise-Defined Functions

CHAPTER 4 INTEREST RATES AND PRESENT VALUE

Arizona Form 2011 Property Tax Refund (Credit) Claim 140PTC

Savings and Investing

The Time Value of Money and the 4Ds: Divorce, Division, Death and Discounting

2. Aggregate Demand and Output in the Short Run: The Model of the Keynesian Cross

( ) P = = =

LIFE INSURANCE BUYER'S GUIDE. This guide can help you when you shop for life insurance. It discusses how to:

Shareholder Maintenance Worksheet.

15-451/651: Design & Analysis of Algorithms October 23, 2018 Lecture #16: Online Algorithms last changed: October 22, 2018

UNIT 4 VOCABULARY: FRACTIONS

Transcription:

Swaps and Inversions I explained in class why every permutation can be obtained as a product [composition] of swaps and that there are multiple ways to do this. In class, I also mentioned, without explaining why it is true, fact ( ) below: If there is a way to express a permutation p as the product of an (respectively number of swaps, then every way of expressing p as the product of swaps will contain an (respectively number of swaps. In other ( ) words, if p has been expressed as a product of swaps in two different ways, it is not possible for one of the products to contain an even number of swaps and the other product to contain an odd number of swaps. This handout will explain why this statement is true. explanation is that of an inversion in a permutation: The key idea in the Definition. Let permutation p be written in word form. An inversion in p is a pair of letters that are out of order in p. For example, consider the permutation CDGEFBA in P 7. For each letter, we will count the number of inversions that start with that letter; the total of these counts the total number of inversions. Letter: A B C D E F G Total number of inversions: # of inversions with that letter on the left:

Thus, the permutation CDGEFBA has thirteen inversions. At this point, please do the first classwork assignment. The connection between inversions and swaps is this: If permutation p contains an (respectively number of inver- ( ) odd sions, and if (a, b) is any swap, then (a, b) p will contain an (respectively even) number of inversions. For example, let us compose the swap (3, 6) with the permutation p = CDGEFBA from the previous page: the product is CDBEFGA. Let us count the total number of inversions in this new word. Letter: A B C D E F G Total number of inversions: # of inversions with that letter on the left: At this point, please do the second classwork assignment. The reason ( ) is true is that, as I will show: Composing (a, b) with p will always add or subtract an ODD number ( ) of inversions.

a b p Block I l 1 Block II l 2 Block III (a, b) p Block I l 2 Block II l 1 Block III Table 1: Composing (a, b) with p. I will explain why ( ) is true in two steps. First, let me set the stage. Say that, in p, letter l 1 is in position a and letter l 2 is in position b. 1 Then we can represent p and (a, b) p as shown in Table 1 (where Block I is the stuff to the left of l 1, Block II is the stuff between l 1 and l 2, and Block III is the stuff to the right of l 2 ). 2 Proof of ( ), Step 1. In the table below, let us localize the changes to the number of inversions block-by-block; I will work a specific example at the board to help explain how to determine the correct entries. As you will see, the changes can be localized very precisely. in Block I Change to Number of Inversions, Tracked Block-by-Block Right Right Right Right letter of letter of letter of letter of letter of inversion inversion inversion inversion inversion is in is is in is is in Block I l 1 Block II l 2 Block III of inversion is l 1 in Block II of inversion is l 2 in Block III 1 Assume a < b; that is, let a represent the smaller of these two numbers. 2 Depending upon the values of a and b, note, one or even two of the blocks might be empty.

Proof of ( ), Step 2. At this point, except for the ±1, we have localized all of the changes to the two boxes that received question marks. I will finish the proof of statement ( ) by showing that the sum of the numbers in these two boxes must be even, so that the total number of changes (including the ±1) must be odd. I will show this in the case that l 1 comes before l 2 in the alphabet; the argument for the other case is identical in structure. I will need to use some algebra: Let x denote the number of letters in Block II that come before l 1 in the alphabet; let y denote the number of letters in Block II that come between l 1 and l 2 in the alphabet; and let z denote the number of letters in Block II that come after l 2 in the alphabet. In other words, if you were to take l 1, l 2, and the Block II letters and put them all into into alphabetical order, you would see l 1 l 2 Let us now find, in terms of x, y and z, the change in the number of [l 1 Block II] inversions, as well as the change to the number of [l 2 Block II] inversions, as we move from p to (a, b) p. I will again work a specific example at the board to help you keep track of the computation. Below, I have modified the relevant piece of Table 1 by alphabetizing Block II. a Part of p l 1 {{ b l 2 Part of (a, b) p l 2 {{ l 1

Number of Number of Column 2 minus Inversions in p Inversions in (a, b) p Column 1 l 1 Block II l 2 Block II Column Sum The number 2y in the bottom right position is the same number you would get by adding the two question-mark numbers; and obviously the number 2y is even for any number y. The proof is complete [for the case: l 1 comes before l 2 in the alphabet]. Extra Credit Problem. Supply the proof for the case: l 2 comes before l 1 in the alphabet. Always Even or Always Odd It is now easy to see why statement ( ) at the beginning of the handout must be true. Say you compute a product of swaps. You start with the identity permutation, which has an even number of inversions, 3 and apply your swaps one-by-one. Each swap reverses the evenness/oddness of the product, so at the end, the number of inversions in your permutation will be even (respectively if the number of swaps you multiply together is even (respectively. Now say you and someone else independently compute the same permutation by multiplying swaps. If this permutation has an odd number of inversions, both you and she must have used an odd number of swaps; and if this permutation has an even number of inversions, both you and she must have used an even number of swaps. 3 The identity (in which all the letters are in alphabetical order) has zero inversions, and zero is an even number.