Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Our platform provides a seamless experience for finding reliable answers from a knowledgeable network of professionals. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.
Sagot :
K₅ is the 5-complete graph, with adjacency matrix
[tex]A = \begin{bmatrix} 0 & 1 & 1 & 1 & 1 \\ 1 & 0 & 1 & 1 & 1 \\ 1 & 1 & 0 & 1 & 1 \\ 1 & 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 1 & 0 \end{bmatrix}[/tex]
The (i, j)-th entry of the matrix A⁴ gives the number of length-4 paths from vertex i to vertex j. Computing A⁴ isn't so bad:
[tex]A^2 = \begin{bmatrix} 0 & 1 & 1 & 1 & 1 \\ 1 & 0 & 1 & 1 & 1 \\ 1 & 1 & 0 & 1 & 1 \\ 1 & 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 1 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 & 1 & 1 & 1 \\ 1 & 0 & 1 & 1 & 1 \\ 1 & 1 & 0 & 1 & 1 \\ 1 & 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 1 & 0 \end{bmatrix} = \begin{bmatrix} 4 & 3 & 3 & 3 & 3 \\ 3 & 4 & 3 & 3 & 3 \\ 3 & 3 & 4 & 3 & 3 \\ 3 & 3 & 3 & 4 & 3 \\ 3 & 3 & 3 & 3 & 4 \end{bmatrix}[/tex]
[tex]A^4 = \begin{bmatrix} 4 & 3 & 3 & 3 & 3 \\ 3 & 4 & 3 & 3 & 3 \\ 3 & 3 & 4 & 3 & 3 \\ 3 & 3 & 3 & 4 & 3 \\ 3 & 3 & 3 & 3 & 4 \end{bmatrix} \begin{bmatrix} 4 & 3 & 3 & 3 & 3 \\ 3 & 4 & 3 & 3 & 3 \\ 3 & 3 & 4 & 3 & 3 \\ 3 & 3 & 3 & 4 & 3 \\ 3 & 3 & 3 & 3 & 4 \end{bmatrix} = \begin{bmatrix} 52 & 51 & 51 & 51 & 51 \\ 51 & 52 & 51 & 51 & 51 \\ 51 & 51 & 52 & 51 & 51 \\ 51 & 51 & 51 & 52 & 51 \\ 51 & 51 & 51 & 51 & 52 \end{bmatrix}[/tex]
We want the paths between two distinct vertices, so we ignore the entries on the diagonal and take the total of the non-diagonal entries, 20 • 51 = 1020.
Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.