২৬৪২
Consider 3 processes (P1, P2, P3) and 2 resources (R1, R2). If P1 holds R1 & requests R2, P2 holds R2 & requests R1, what is the minimum number of additional resource units of R1 or R2 needed to the deadlock assuming no preemption?
উত্তর
1 unit of R1 or 1 unit of R2
২৬৪৪
Which of the following is not a characteristic of problems suited for Dynamic programming (SP means subproblems)?
উত্তর
Independent SP
২৬৪৫
Contrapositive of “If it rains, the home team wins”:
উত্তর
If it does not rain then the home team does not win
২৬৪৬
Greedy methods guarantee an optimal solution when:
উত্তর
Problems have optimal substructure and greedy choice property
২৬৪৮
Find the output of the following code snippet: #include #define MULTIPLY(a,b) a/b int main(){ int x=5, y=2, result; result = MULTIPLY(y+x,y+x); printf("%d",result); return 0; }
উত্তর
9