GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set1

GATE 2021 set1 · CS · MSQ · 2 marks · Algorithms › Dynamic Programming

GATE 2021 set1 Computer Science and Information Technology question: Define R n to be the maximum amount earned by cutting a rod of length n meters into one…

Define to be the maximum amount earned by cutting a rod of length meters into one or more pieces of integer length and selling them. For i > 0, let p[i] denote the selling price of a rod whose length is i meters. Consider the array of prices:

Which of the following statements is/are correct about ?

  1. (A)

  2. (B)

  3. (C)

    is achieved by three different solutions.

  4. (D)

    cannot be achieved by a solution consisting of three pieces.

Show answer

Official answer: A,C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion