Karn's Algorithm
 
x
OK