Find the
1
0
×
1
0
adjacency matrix
A
of the graph above.
Input det ( 2 ( A 2 + A − K ) ) as your answer.
Details and assumptions
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If A = ( a i j ) is an adjacency matrix of an unordered graph, then A 2 = ( b i j ) , where b i j is the number of adjacent vertices shared by vertex i and j . In the above graph, it is clearly visible that
With simple observation, we see that K − A will give something similar to A 2 . What's missing is that all the diagonal elements are 1 instead of 3 as desired. So final step, add 2 I 1 0 into that. Hence finally A 2 = K − A + 2 I or
2 A 2 + A − K = I
Ans : det ( I ) = 1
Problem Loading...
Note Loading...
Set Loading...
Computer science answer:
A = ⎝ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛ 0 1 0 0 1 1 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 0 0 0 1 0 1 1 0 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎞
A 2 = ⎝ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛ 3 0 1 1 0 0 1 1 1 1 0 3 0 1 1 1 0 1 1 1 1 0 3 0 1 1 1 0 1 1 1 1 0 3 0 1 1 1 0 1 0 1 1 0 3 1 1 1 1 0 0 1 1 1 1 3 1 0 0 1 1 0 1 1 1 1 3 1 0 0 1 1 0 1 1 0 1 3 1 0 1 1 1 0 1 0 0 1 3 1 1 1 1 1 0 1 0 0 1 3 ⎠ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎞
2 A 2 + A − K = I 1 0 which has det=1.
Output:
Mathematics answer:
A 2 = ( b i j ) gives the number of path of length 2 from vertex i to vertex j , which is 3 if i = j , 0 if vertices are neighbours and 1 if they're not. Then, A + A 2 gives the number of path of length 1 or 2 between vertices, which is 3 if the end vertex is the same as the starting one, and 1 in the other cases.