..

Banker_s algorithm

Complexity

$O(nnm)$