Consider a system which has ‘n’ number of processes and’ number of resources types. The time complexity of the safety algorithms which creeks, whether a system is in a safe state or not, is of the order of

- O(mn)
- O(m^n^2)
- O(m^2n)
- O(mn^2)

Consider a system which has ‘n’ number of processes and’ number of resources types. The time complexity of the safety algorithms which creeks, whether a system is in a safe state or not, is of the order of

- O(mn)
- O(m^n^2)
- O(m^2n)
- O(mn^2)

The answer will 2) O(m^n^2) where m represents number of resources and n represents number of processes.