Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Dijkstra's Algorithm

Hi guys: Can any one please tell me how to make a graph base on these values ? Thanks

X 2  3  X  2  4  X
   X  2  9  X  1  3
       X  X  2  2  2
           X  7  X  9
               X  2  X
                   X  1
                       X
ASKER CERTIFIED SOLUTION
Avatar of TommySzalapski
TommySzalapski
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mustish1
mustish1

ASKER

     0  1  2  3  4  5  6
     ---------------------
0    X 2  3  X  2  4  X
1       X  2  9  X  1  3
2           X  X  2  2  2
3               X  7  X  9
4                   X  2  X
5                       X  1
6                           X


Do i need to assign a serial number?

For example the first number is X ? I am sorry i dont get it.
Also node and vertex are same or not?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
    0  1  2  3  4  5  6
     ---------------------
0    X 2  3  X  2  4  X
1       X  2  9  X  1  3
2           X  X  2  2  2
3               X  7  X  9
4                   X  2  X
5                       X  1
6                           X

I am not understanding if the shape of the graph can be a hexagone shape? or is it suppose to be a natural? some thing else
gr3.jpg
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My basic graph is a hexagone but i am just confused the weights between the nodes compare to the answers given in the graph. I just cant seem to match them up correctly in order for to make sense. May be I am just not thinking in the way i need to think in order to comprehend the graph?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
    0  1  2  3  4  5  6
     ---------------------
0    X 2  3  X  2  4  X
1    x  X  2  9  X  1  3
2    x  x  X  X  2  2  2
3    x  x  x  X  7  X  9
4    x  x  x  x   X  2  X
5    x  x  x  x   x   X  1
6    x  x  x  x   x   x  X

Can experts please tell me if there any mistake in it? Thanks.

new.jpg
I miss 1,2
Missing:
1,2=2
1,3=9


And your graph has 2 node 3s?
2 nodes=2 vertices
what is 3s?
3s means your graph has 2 vertices labelled 3. The one in the top left and one near the bottom right.