Go to content messages.homepage.accessibility

Dijkstra's algorithm

1. Original procedure of the algorithm

2. Proposals of adaptation

1. Work with a graph on a sheet of a spreadsheet:

We add labels of all the nodes to the first column starting with the initial node. All the other cells on the row for a node X are reserved for edges coming out from X and are written as nY where n is a weight of the edge and Y is the end node of the edge, see Table 1.

Example 3: Table representation of the graph G from Image 1
A/0 1B 3E 6D
B/\infty 1A 1E 3C
C/\infty 1E 2F 3B
D/\infty 4E 6A
E/\infty 1B 1C 3A 4D 4F
F/\infty 2C 4E
Table 1: The graph G (Image 1) represented by a table

We modify labels of the nodes in the first column, values of the other columns are to be read only. We mark visited nodes by asterisk to avoid proceeding them in the following steps of the algorithm. We finish the algorithm when all the nodes are marked by asterisk (they are all visited).

2. Work with a graph on two sheets of a spreadsheet:

There is only one change in comparison with the first method of adaptation. We use the first sheet to explore edges whereas the second sheet includes only one column with the nodes' labels to be consecutively modified.

3. Work with a tactile version of a graph, use of any editor to modify tentative distances of nodes:

The method is similar to the previous one and differs only in representation of the graph which is offered as a tactile image. A student combines tactile reading of the graph with editing labels of nodes written in any text editor or spreadsheet.

3. Discussion of pros and cons