Ask your own question, for FREE!
Discrete Math 6 Online
OpenStudy (anonymous):

using warshall's algorithm to find shortest path

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

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

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

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

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|

OpenStudy (anonymous):

xD couldnt understand it hehe http://cs.winona.edu/lin/cs440/ch08-2.pdf

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

OpenStudy (anonymous):

ill try to learn this https://www.youtube.com/watch?v=IcDS7EjXxpU

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]\)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!