1.

For every rod cutting problem there will be a unique set of pieces that give the maximum price.(a) True(b) FalseI have been asked this question during an online exam.The doubt is from Rod Cutting in chapter Dynamic Programming of Data Structures & Algorithms II

Answer»

Right CHOICE is (B) False

For explanation: Consider a rod of length 3. The PRICES are {2,3,6} for lengths {1,2,3} respectively. The pieces {1,1,1} and {3} both give the maximum value of 6.



Discussion

No Comment Found

Related InterviewSolutions