Floyd's Algorithm (Edexcel A-Level Further Mathematics): Flashcards

📚Flashcards
Floyd's Algorithm
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

What does Floyd's algorithm find?

Shortest paths between all pairs of nodes

Best graph type for Floyd's algorithm

Dense graphs

Floyd's algorithm limitation

Cannot handle negative weight cycles

Two matrices in Floyd's algorithm

Distance matrix and route matrix

Initial diagonal entries in Floyd's algorithm

00

Initial value for non-edges in Floyd's algorithm

inftyinfty (infinity)

Floyd's algorithm distance update formula

d[i][j]=min(d[i][j],d[i][k]+d[k][j])d[i][j] = min(d[i][j], d[i][k] + d[k][j])

Role of kk in Floyd's algorithm

Intermediate node

Number of iterations in Floyd's algorithm (nn nodes)

nn iterations

What R[i][j]R[i][j] stores in route matrix

Node used to travel directly from ii to jj

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.