Counting Paths between Vertices We can use the adjacency matrix of a graph to find the number of paths between two vertices in the graph. Theorem: Let G be a graph with adjacency matrix A with respect to the ordering v₁, ..., V, of vertices (with directed or undirected edges, multiple edges and loops allowed). The number of different paths of length r from v; where r >0 is a positive integer, equals the (i,j)th entry of A". to Vi, Proof by mathematical induction: Basis Step: By definition of the adjacency matrix, the number of paths from v; to v, of length 1 is the (i,j)th entry of A. Inductive Step: For the inductive hypothesis, we assume that that the (i,j)th entry of A' is the number of different paths of length r from v; to vj. Because A+1=AA, the (i,j)th entry of Ar+1 equals bija₁; +b2a2; ++ binani where bik is the (i,k)th entry of A'. By the inductive hypothesis, bk is the number of paths of length r from v; to Vk. A path of length + 1 from v; to v; is made up of a path of length r from v; to some vk, and an edge from V to vj. By the product rule for counting, the number of such paths is the product of the number of paths of length r from v; to vk (i.e., bik) and the number of edges from from v to v, (i.e, ak). The sum over all possible intermediate vertices vk is ba₁; + biza2; +.... + binani

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter2: Basic Linear Algebra
Section: Chapter Questions
Problem 15RP
icon
Related questions
Question

My professor went over the proof on this slide and I don't really understand it. Can you explain it in detail step by step?

Counting Paths between Vertices
We can use the adjacency matrix of a graph to find the number of paths between two vertices in the
graph.
Theorem: Let G be a graph with adjacency matrix A with respect to the
ordering v₁, ..., V, of vertices (with directed or undirected edges, multiple
edges and loops allowed). The number of different paths of length r from v;
where r >0 is a positive integer, equals the (i,j)th entry of A".
to Vi,
Proof by mathematical induction:
Basis Step: By definition of the adjacency matrix, the number of paths from v; to v, of length 1 is the (i,j)th
entry of A.
Inductive Step: For the inductive hypothesis, we assume that that the (i,j)th entry of A' is the number of
different paths of length r from v; to vj.
Because A+1=AA, the (i,j)th entry of Ar+1 equals bija₁; +b2a2; ++ binani where bik is the (i,k)th
entry of A'. By the inductive hypothesis, bk is the number of paths of length r from v; to Vk.
A path of length + 1 from v; to v; is made up of a path of length r from v; to some vk, and an edge from
V to vj. By the product rule for counting, the number of such paths is the product of the number of
paths of length r from v; to vk (i.e., bik) and the number of edges from from v to v, (i.e, ak). The sum
over all possible intermediate vertices vk is ba₁; + biza2; +....
+ binani
Transcribed Image Text:Counting Paths between Vertices We can use the adjacency matrix of a graph to find the number of paths between two vertices in the graph. Theorem: Let G be a graph with adjacency matrix A with respect to the ordering v₁, ..., V, of vertices (with directed or undirected edges, multiple edges and loops allowed). The number of different paths of length r from v; where r >0 is a positive integer, equals the (i,j)th entry of A". to Vi, Proof by mathematical induction: Basis Step: By definition of the adjacency matrix, the number of paths from v; to v, of length 1 is the (i,j)th entry of A. Inductive Step: For the inductive hypothesis, we assume that that the (i,j)th entry of A' is the number of different paths of length r from v; to vj. Because A+1=AA, the (i,j)th entry of Ar+1 equals bija₁; +b2a2; ++ binani where bik is the (i,k)th entry of A'. By the inductive hypothesis, bk is the number of paths of length r from v; to Vk. A path of length + 1 from v; to v; is made up of a path of length r from v; to some vk, and an edge from V to vj. By the product rule for counting, the number of such paths is the product of the number of paths of length r from v; to vk (i.e., bik) and the number of edges from from v to v, (i.e, ak). The sum over all possible intermediate vertices vk is ba₁; + biza2; +.... + binani
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning