GATE CSE 2021 Set 1 Q50: Rod cutting: maximum revenue for a rod of length 7
- Algorithms
- 2 marks
- MSQ
- No negative marking
Question
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 , let denote the selling price of a rod whose length is meters. Consider the array of prices:
Which of the following statements is/are correct about ?
Try it: multiple select: one or more correct options
Show answer and explanation
Answer: A, C (official GATE 2021 final answer key)
Concept used: Rod cutting by dynamic programming: .
First step: Build in order: , , , , and continue to , noting every split that attains the maximum.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2021 Set 1 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key
More Algorithms PYQs
- 2026 Session 1 · Q17Solve nested recurrences T1 = 4T1(n/2) + T2, T2 = 5T2(n/4) + log n
- 2026 Session 1 · Q41Shortest paths with at most k edges: two statements
- 2026 Session 1 · Q47Condition forcing a vertex into every minimum vertex cover
- 2026 Session 1 · Q49Cycle and cut properties of MSTs with distinct weights
- 2026 Session 1 · Q50Impossible DFS discovery/finish orderings for a DAG edge
- 2026 Session 1 · Q55Properties of 2-colorable (bipartite) graphs