Adjacency Matrices and PageRank

Slides:



Advertisements
Similar presentations
Representing Relations
Advertisements

CSE115/ENGR160 Discrete Mathematics 04/26/12 Ming-Hsuan Yang UC Merced 1.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Introduction to Graph “theory”
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
DATA MINING LECTURE 12 Link Analysis Ranking Random walks.
Applied Discrete Mathematics Week 12: Trees
Introduction to Graphs
CS 206 Introduction to Computer Science II 03 / 25 / 2009 Instructor: Michael Eckmann.
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
Problem: Induced Planar Graphs Tim Hayes Mentor: Dr. Fiorini.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Graphs, relations and matrices
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
Piyush Kumar (Lecture 2: PageRank) Welcome to COT5405.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Euler paths and tours.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Based on slides by Y. Peng University of Maryland
1 Closures of Relations: Transitive Closure and Partitions Sections 8.4 and 8.5.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
Week 1 – Introduction to Graph Theory I Dr. Anthony Bonato Ryerson University AM8002 Fall 2014.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
Graph Theory and Applications
Data Structures & Algorithms Graphs Richard Newman based on book by R. Sedgewick and slides by S. Sahni.
Basic properties Continuation
Equivalence Relations
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Graphs Basic properties.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
Fundamental Graph Theory (Lecture 1) Lectured by Hung-Lin Fu 傅 恆 霖 Department of Applied Mathematics National Chiao Tung University.
Applied Discrete Mathematics Week 14: Trees
Introduction to Graphs
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
DETERMINANTS A determinant is a number associated to a square matrix. Determinants are possible only for square matrices.
Representing Graphs and
Introduction to Graphs
Matrix Representation of Graph
Graphs.
Based on slides by Y. Peng University of Maryland
Piyush Kumar (Lecture 2: PageRank)
Discrete Mathematics and its Applications Lecture 1 – Graph Theory
Modelling and Searching Networks Lecture 3 – ILT model
Miniconference on the Mathematics of Computation
Discrete Mathematics and its Applications Lecture 3 – ILT model
Discrete Mathematics Lecture 12: Graph Theory
Discrete Mathematics and its Applications Lecture 7 – Cops and Robbers
Miniconference on the Mathematics of Computation
Miniconference on the Mathematics of Computation
Combinations and Pascal’s triangle
Miniconference on the Mathematics of Computation
Miniconference on the Mathematics of Computation
Modelling and Searching Networks Lecture 10 – Cop Number and Genus
Modelling and Searching Networks Lecture 5 – Random graphs
Miniconference on the Mathematics of Computation
DETERMINANT MATH 80 - Linear Algebra.
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
Discrete Mathematics and its Applications Lecture 5 – Random graphs
Agenda Review Lecture Content: Shortest Path Algorithm
Introduction to Graphs
Introduction to Graphs
Presentation transcript:

Adjacency Matrices and PageRank Miniconference on the Mathematics of Computation MTH 210 Adjacency Matrices and PageRank Dr. Anthony Bonato Ryerson University

Adjacency matrix given a simple graph of order n, with vertices 1,2,3, …, n-1,n, then: place a 1 in the (i,j) entry if ij is an edge place a 0 in the (i,j) entry if ij is a non-edge

Examples

Things to notice about the adjacency matrix it is symmetric: interchange rows and columns (ie transpose) remains the same it is binary: every entry is 0 or 1 diagonal (i,i) entries are all 0: no loops

Multi-graphs and loops replace “1” by the number of parallel edges between i and j note: not necessarily a binary matrix loops add +1 on diagonal

Directed graphs no longer symmetric

Key facts If G is a graph: row or column sums are degrees. If G is a digraph: Row sum is out-degree. Column sum is in-degree.

PageRank Used by Google to rank pages Idea: When surfing the web, you typically follow links You get bored occasionally and go to a random page

PageRank PageRank is the probability a random web surfer lands on your page the higher the PageRank the more “popular” the web page

PageRank matrix G connected graph of order n C a real number in (0,1) If ij is an edge, (i,j) entry is: C/deg(i) + (1-C)/n If ij is not an edge, then the (i,j) entry is (1-C)/n

Notes on PageRank matrix derived from an n x n matrix the constant C is given beforehand entries depend on C and n, but also on deg(i) entries in matrix are rational numbers (not necessarily integers)

Exercises

Miniconference on the Mathematics of Computation MTH 210 Isomorphisms Dr. Anthony Bonato Ryerson University

“these graphs are the same” we’ll make precise: “these graphs are the same” If they are the same, they should share all the same properties/invariants. same will be “isomorphic”

Informal ideas: if graphs are isomorphic, you can redraw one to look like the other if graphs are non-isomorphic, then there is some property holding in one but not the other

isomorphic graphs

non-isomorphic graphs

One-to-one functions a function f: X → Y is one-to-one if distinct elements of X map to distinct elements of Y that is: For all u,v in X, if u ≠ v, then f(u) ≠ f(v) Idea: one-to-one functions “separate points” in X

Examples

Isomorphisms let G and H be graphs, and let f: V(G)→V(H) be a function f is an isomorphism if: G and H have the same order f is one-to-one and for all vertices u and v in G: uv is an edge in G if and only if f(u)f(v) is an edge in H

Note my definition is a little different looking (but the equivalent!) to the book’s in real “graph theory,” you don’t define two mappings like the book does for an isomorphism...

Key fact if G and H have different orders or sizes, they are not isomorphic Check their subgraphs, kinds and number of cycles, number of leaves, degrees of vertices … to see if they are the same can you redraw G to look like H?

Exercises