The Friendship Theorem Dr. John S. Caughman Portland State University

84
The Friendship Theorem Dr. John S. Caughman Portland State University

description

The Friendship Theorem Dr. John S. Caughman Portland State University. Public Service Announcement. “Freshman’s Dream”. ( a+b ) p = a p +b p …mod p …when a, b are integers …and p is prime. Freshman’s Dream Generalizes!. (a 1 +a 2 +…+a n ) p =a 1 p +a 2 p +…+ a n p …mod p - PowerPoint PPT Presentation

Transcript of The Friendship Theorem Dr. John S. Caughman Portland State University

Page 1: The  Friendship  Theorem Dr. John S. Caughman Portland State University

The Friendship Theorem

Dr. John S. CaughmanPortland State University

Page 2: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Public Service Announcement

(a+b)p=ap+bp …mod p

…when a, b are integers…and p is prime.

“Freshman’s Dream”

Page 3: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Freshman’s Dream Generalizes!

(a1+a2+…+an)p=a1p +a2

p +…+anp

…mod p…when a, b are integers

…and p is prime.

Page 4: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Freshman’s Dream Generalizes

(a1+a2+…+an)p = a1p +a2

p +…+anp

tr(A) p = tr(Ap) (mod p)

a4000*a300**a20***a1

A =

Page 5: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Freshman’s Dream Generalizes!

tr(A) p = tr(Ap) (mod p)

****************

A =

tr(A p) = tr((L+U)p) = tr(Lp +Up) = tr(Lp)+tr(Up)=0+tr(U)p = tr(A)p

Note: tr(UL)=tr(LU) so cross terms combine , and coefficients =0 mod p.

Page 6: The  Friendship  Theorem Dr. John S. Caughman Portland State University

The Theorem

If every pair of people at a party has precisely one common friend, then there must be a person who is everybody's friend.

Page 7: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Cheap ExampleNancy

John Mark

Page 8: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Cheap Example of a GraphNancy

John Mark

Page 9: The  Friendship  Theorem Dr. John S. Caughman Portland State University

What a Graph IS:Nancy

John Mark

Page 10: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John

Vertices!

Mark

What a Graph IS:

Page 11: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John

Edges!

Mark

What a Graph IS:

Page 12: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John Mark

What a Graph IS NOT:

Page 13: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy Loops!

MarkJohn

What a Graph IS NOT:

Page 14: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy Loops!

MarkJohn

What a Graph IS NOT:

Page 15: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John

Directed edges!

Mark

What a Graph IS NOT:

Page 16: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John

Directed edges!

Mark

What a Graph IS NOT:

Page 17: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John

Multi-edges!

Mark

What a Graph IS NOT:

Page 18: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Nancy

John

Multi-edges!

Mark

What a Graph IS NOT:

Page 19: The  Friendship  Theorem Dr. John S. Caughman Portland State University

‘Simple’ Graphs…Nancy

John

• Finite• Undirected• No Loops• No Multiple Edges

Mark

Page 20: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Let G be a simple graph with n vertices.

The Theorem, Restated

If every pair of vertices in G has precisely one common neighbor, then G has a vertex with n-1 neighbors.

Page 21: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Generally attributed to Erdős (1966).

Easily proved using linear algebra.

Combinatorial proofs more elusive.

The Theorem, Restated

Page 22: The  Friendship  Theorem Dr. John S. Caughman Portland State University

NOT A TYPICAL “THRESHOLD” RESULT

Page 23: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Pigeonhole PrincipleIf more than n pigeons are placed

into n or fewer holes, then at least one hole

will contain more than one pigeon.

Page 24: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Some threshold resultsIf a graph with n vertices has > n2/4 edges, then there must be a set of 3

mutual neighbors.

If it has > n(n-2)/2 edges, then there must be a vertex with n-1 neighbors.

Page 25: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Extremal Graph TheoryIf this were an extremal problem, we

would expect graphs with MORE edges than ours to also satisfy the same

conclusion…

Page 26: The  Friendship  Theorem Dr. John S. Caughman Portland State University
Page 27: The  Friendship  Theorem Dr. John S. Caughman Portland State University
Page 28: The  Friendship  Theorem Dr. John S. Caughman Portland State University
Page 29: The  Friendship  Theorem Dr. John S. Caughman Portland State University
Page 30: The  Friendship  Theorem Dr. John S. Caughman Portland State University

1

Page 31: The  Friendship  Theorem Dr. John S. Caughman Portland State University

1

2

Page 32: The  Friendship  Theorem Dr. John S. Caughman Portland State University

1

2 3

Page 33: The  Friendship  Theorem Dr. John S. Caughman Portland State University

1

2 3

4

Page 34: The  Friendship  Theorem Dr. John S. Caughman Portland State University

4

Page 35: The  Friendship  Theorem Dr. John S. Caughman Portland State University

4

Page 36: The  Friendship  Theorem Dr. John S. Caughman Portland State University

4

Page 37: The  Friendship  Theorem Dr. John S. Caughman Portland State University

2

Page 38: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Of the 15 pairs, 3 have four neighbors in common and 12 have two in common. So ALL pairs have at least one in common.

But NO vertex has five neighbors!

Page 39: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Related Fact – losing edges

Page 40: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Related Fact – losing edges

Page 41: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Related Fact – losing edges

Page 42: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Summary

If every pair of vertices in a graph has at least one neighbor in common, it might not be possible to remove edges and produce a

subgraph in which every pair has exactly one common neighbor.

Page 43: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Accolades for Friendship The Friendship Theorem is listed among

Abad's “100 Greatest Theorems”

The proof is immortalized in Aigner and Ziegler's Proofs from THE BOOK.

Page 44: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Example 1

Page 45: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Example 2

Page 46: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Example 3

Page 47: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:STEP ONE: If x and y are not neighbors,

they have the same # of neighbors.Why:

Let Nx = set of neighbors of x

Let Ny = set of neighbors of y

Page 48: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y

How to prove it:

Page 49: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y

Nx

How to prove it:

Page 50: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y

Ny

How to prove it:

Page 51: The  Friendship  Theorem Dr. John S. Caughman Portland State University

For each u in Nx define:f(u) = common neighbor of u and y.

x y

How to prove it:

Page 52: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Pick u1 in Nx.

x y

u1How to prove it:

Page 53: The  Friendship  Theorem Dr. John S. Caughman Portland State University

f(u1) = common neighbor of u1 and y.

x y

u1

f(u1)

How to prove it:

Page 54: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y

How to prove it:

Page 55: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x yu2

Pick u2 in Nx.

How to prove it:

Page 56: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x yu2

f(u2)

f(u2) = common neighbor of u2 and y.

How to prove it:

Page 57: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y

How to prove it:

Page 58: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y u*f(u)= f(u*) u

How to prove it:

Page 59: The  Friendship  Theorem Dr. John S. Caughman Portland State University

x y u*f(u)= f(u*) u

How to prove it:

Page 60: The  Friendship  Theorem Dr. John S. Caughman Portland State University

So f is one-to-one from Nx to Ny.

x y u*f(u)= f(u*) u

How to prove it:

Page 61: The  Friendship  Theorem Dr. John S. Caughman Portland State University

So f is one-to-one from Nx to Ny.

x y u*f(u)= f(u*) u

So it can’t be true that |Nx| > |Ny|.

How to prove it:

Page 62: The  Friendship  Theorem Dr. John S. Caughman Portland State University

So f is one-to-one from Nx to Ny.

x y u*f(u)= f(u*) u

So |Nx| = |Ny|.

How to prove it:

So it can’t be true that |Nx| > |Ny|.

Page 63: The  Friendship  Theorem Dr. John S. Caughman Portland State University

STEP 1: If x and y are not neighbors, they have the same # of neighbors.

STEP 2: Either some x has n-1 neighbors or ALL vertices have same # of neighbors.

Why: Assume no vertex has n-1 neighbors.Let A = {x : x has max # of neighbors, k}.

B = {y : y has < k neighbors}.

How to prove it:

Page 64: The  Friendship  Theorem Dr. John S. Caughman Portland State University

A = {x : x has max # of neighbors, k}.

B = {y : y has < k neighbors}.

By Step 1, all in A are neighbors to all in B!

Set || Possible Size . A 0, 1, 2, …. , n

B 0, 1, 2, …. , n

Page 65: The  Friendship  Theorem Dr. John S. Caughman Portland State University

STEP 1: If x and y are not neighbors, they have the same # of neighbors.

STEP 2: Either some x has n-1 neighbors or ALL vertices have k neighbors.

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

How to prove it:

Page 66: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

Page 67: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( )n2

Page 68: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( ) 1n2

Page 69: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( ) 1 =n2

Page 70: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( ) 1 = n

n2

Page 71: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( ) 1 = n (k)n2

Page 72: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( ) 1 = n (k) (k-1) n2

Page 73: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:

Why:

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

Count paths of length 2…

( ) 1 = n (k) (k-1) ________2

n2

Page 74: The  Friendship  Theorem Dr. John S. Caughman Portland State University

How to prove it:STEP 3: If all vertices have k neighbors, then

n = k (k-1) + 1.

( ) 1 = n (k) (k-1) ________2

n2

= n (k) (k-1) ________2

(n)(n-1)2

n = k (k-1) + 1

Page 75: The  Friendship  Theorem Dr. John S. Caughman Portland State University

STEP 1: If x and y are not neighbors, they have the same # of neighbors.

STEP 2: Either some x has n-1 neighbors or ALL vertices have k neighbors.

STEP 3: If all vertices have k neighbors, then n = k (k-1) + 1.

How to prove it:

Page 76: The  Friendship  Theorem Dr. John S. Caughman Portland State University

The Master PlanEach pair has 1 in common

If x,y not

neighbors,

|Nx|=|Ny|

Some x has n-1

neighbors

|Nx|= k for

all x, and

n =k(k-1)+1

Some Linear

Algebra

Either

Or

?

Page 77: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Adjacency MatrixCall vertices v1, v2, …, vn. Let A = n x n matrix where: Aij = 1, if vi, vj are neighbors, Aij = 0, if not. A is called the adjacency matrix of G.

Notice that the trace of A is 0.

{

Page 78: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Adjacency Matrix

v4

v1

v2

v3 0101101101011110

A =

A2 =0101101101011110

0101101101011110

=2121131221211213

Page 79: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Adjacency Matrix(A2)

ij = # common neighbors of vi, vj

So…….. for our graphs…..

A2 = (k-1) I + J. (J = all 1’s matrix)

(A2) ij = 1 if i, j different, and

(A2) ij = k if i = j.

Page 80: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Adjacency MatrixA2 = (k-1) I + J

(J = all 1’s matrix) A J = (k) J

Now let p be a prime divisor of k-1.Then k = 1 and n = k(k-1)+1 = 1 (mod p)

So A2 = J, and A J = J. (mod p)Therefore, Ai = J for all i > 1. (mod p)

Page 81: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Adjacency MatrixAi = J for all i > 1 (mod p)

But tr Ap = (tr A)p (mod p)

So, modulo p, we get: 1 = n = tr J = tr Ap = (tr A)p = 0.

Page 82: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Putting it all togetherEach pair has 1 in common

If x,y not

neighbors,

|Nx|=|Ny|

Some x has n-1

neighbors

|Nx|= k for

all x and

n =k(k-1)+1

0=1

Either

Or

Page 83: The  Friendship  Theorem Dr. John S. Caughman Portland State University

Moral:

To make progress in almostany field of math, find a way to sneak linear algebra into it

!

Page 84: The  Friendship  Theorem Dr. John S. Caughman Portland State University

THANK YOU !