Rod-Cutting Problem

Given a rod of length nn, and prices pip_i for which one can sell a segment of the rod of length ii (1in1 \leq i \leq n), find the splitting of the rod for which one can earn the most money once they sell the rod segments produced.

Parameters

  • nn: length of rod

Related Problems


Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 2 of 2 algorithms

See more
Dynamic Programming1953O(n2)O(n^2)O(n)O(n)
Brute Force1940O(n2n)O(n 2^n)O(n)O(n)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table