Professional Documents
Culture Documents
Unnamed
Unnamed
eo
te
faulty, and we still want to minimise the number of times we use the weighing
balance
You havea steel rod of length n. In the market, steel rods of different lengths can
be sold for different prices. Itis not necessary that the longer the rod, the more
it sells for because some industry specific lengths can have more demand in
‘eels machine that can cut your rod in two pieces of any length that you
eee Hedda et can determine what lengths your rod should be
oF your profit upon selling the pieces, (orifit should be cut at
Ifinstead,
Honea Phen into as many pieces as we want, what modifica~
cut our rod into? Pseudocode to determine the pieces we should