Suppose that you have coded the deadlock-avoidance safety algorithm and now have been asked to implement the deadlock-detection algorithm. Can you do so by simply using the safety algorithm code and redefining $Max_i$ = $Waiting_i$ + $Allocation_i$ , where $Waiting_i$ is a vector specifying the resources for which process $i$ is waiting and $Allocation_i$ specifies the resources currently allocated to process $P_i$ ? Explain your answer.