--> Safety Algorithm requires O(m x n^2) time complexity where m is work vector and n is the finish vector . So, option (D) is correct .
--> Lines from Galvin ( page - 288 pdf ).
@Khush work is just available that we use in finding whether a given system is in safe state or not for more refer Safety Algorithm .
64.3k questions
77.9k answers
244k comments
80.0k users