complete the code

profilecorrected
state-03.sim

# This is state from homework problem set 03, problem 2. The initial # state given is safe # number of processes / number of resources 6 4 # total Resources vector R 15 6 9 10 # Claim matrix C 9 5 5 5 2 2 3 3 7 5 4 4 3 3 3 2 5 2 2 1 4 4 4 4 # Allocation matrix A 2 0 2 1 0 1 1 1 4 1 0 2 1 1 0 0 1 0 1 1