The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
175 views
50. Consider a system which have ‘n’ number of processes and ‘m’ number of resource types. The time complexity of the safety algorithm, which checks whether a system is in safe state or not, is of the order of :

(1) O(mn)

(2) O(m2 n 2 )

(3) O(m2 n)

(4) O(mn2 )
asked in Others by (485 points) | 175 views

2 Answers

0 votes
For n processes and m resources, time complexity of Banker's Algorithm is O(n*n*m).

D is correct.
answered by Boss (12.1k points)
0 votes

it is question of  bankers algorithm .

its complexity is O(n2m)

u can c calculation here:

https://stackoverflow.com/questions/1298308/bankers-algorithm-calculated-time-complexity

answered by Active (3.2k points)

Related questions

0 votes
0 answers
2
asked May 15, 2017 in Databases by Thenmozhi (9 points) | 54 views
+1 vote
1 answer
3
asked Oct 23, 2016 in CO & Architecture by Sanjay Sharma Boss (49.7k points) | 82 views
0 votes
0 answers
5


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

42,687 questions
48,653 answers
156,495 comments
63,963 users