Discrete Math
6 Online
OpenStudy (anonymous):
using warshall's algorithm to find shortest path
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
\[\left[\begin{matrix}0 & 0 & 0 & 1 \\ 1 & 0 & 1 & 1 \\ 1 & 0 & 0 & 1 \\ 0 & 0& 1 & 0\end{matrix}\right]\]
OpenStudy (anonymous):
thats the adjacency matrix
OpenStudy (anonymous):
@hartnn @BSwan @dan815 @shrutipande9
OpenStudy (anonymous):
@Miracrown
OpenStudy (anonymous):
@ganeshie8
Join the QuestionCove community and study together with friends!
Sign Up
ganeshie8 (ganeshie8):
A : D
B : A, C, D
C : A, D
D : C
ganeshie8 (ganeshie8):
what does the algorithm say ?
OpenStudy (anonymous):
how did you get that
ganeshie8 (ganeshie8):
thats just the adjacency list corresponding to ur matrix
OpenStudy (anonymous):
okay input is weight matrix
output should be bath matrix
process is
if W[i,j]=0 then Q[i.j]=0
else Q[i,j]= 1
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
w is weight matrix, Q is path matrix
OpenStudy (anonymous):
ganeshie8 (ganeshie8):
whats the start vertex and end vertex ?
ganeshie8 (ganeshie8):
Oh this algorithm finds all pairs shortest path is it
OpenStudy (anonymous):
yeah
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
and its big big,2-3 page long
ganeshie8 (ganeshie8):
i wont be of much use i guess @BSwan @dan815
OpenStudy (anonymous):
thats alright
OpenStudy (anonymous):
step 1 ? O.O
OpenStudy (anonymous):
process is
if W[i,j]=0 then Q[i.j]=0
else Q[i,j]= 1
thats step 1
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
ok then set Q
\(\left[\begin{matrix}0 & 0 & 0 & 1 \\ 1 & 0 & 1 & 1 \\ 1 & 0 & 0 & 1 \\ 0 & 0& 1 & 0\end{matrix}\right]\)
oh so W= Q :D
OpenStudy (anonymous):
o_o
OpenStudy (anonymous):
haha just messing with u :P
OpenStudy (anonymous):
-.-
OpenStudy (anonymous):
|dw:1402322033534:dw|
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
loool :P
OpenStudy (anonymous):
And O there are days in this life, worth life and worth death.
Charles wingspanens c:
OpenStudy (anonymous):
haha
ups and downs
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
why :O
its okay if u dont know
OpenStudy (anonymous):
through A
|dw:1402324431322:dw|
|dw:1402324605824:dw|
|dw:1402324741464:dw|
\(\left[\begin{matrix}0 & 0 & 0 & 1 \\ 1 & 0 & 1 & 1 \\ 1 & 0 & {\color{red
}{1}} & 1 \\ {\color{red}{1}} & 0& 1 & {\color{red}{1}} \end{matrix}\right]\)