LOOP until stop over SET = NULL SET = INFINITY over clients IF client has server CONTINUE SET dist = distance from client to server IF dist < SET = client SET = dist ENDLOOP over clients IF = NULL over client to server ENDLOOP over ENDLOOP until stop```
Minimum Cost Maximum Flow Algorithm with restrictions
```html