Algorithm

An algorithm is a finite sequence of precise step-by-step instructions.

Link to original

Warshall’s algorithm computes the matrix of the transitive closure of . ?

  • Given a relation on a set with elements, we begin with its matrix.
  • There are rounds. For each, we mutate the matrix. is the matrix of the transitive closure of .
    • 1st rule: never change to
    • 2nd rule: for the round, we select the th row and the th column, we look at all of the values not in this row or column. From the position of the value we are looking at, we check to see if the corresponding cells in the th row and column are , if they are, we change to otherwise we don’t do anything.