正在加载图片...
Rod Cutting Problem Therod-inrob is the following.Given a rod of lengthn inches and a table of prices pifori=1,2...determine the maximum revenueobtain- able byutin up the rod and selling the pieces. 一个样本输 入及其解: length i12345678910 price pi 158910171720 2430 =1 from solution 1 =1 (no cuts), r6 =17 from solution 6=6 (no cuts), r2=5 from solution 2 =2 (no cuts), 7=18 from solution 7 =1+6 or 7=2+2+3, r3 =8 from solution 3 =3 (no cuts), rs 22 from solution 8=2+6, r4 10 from solution 4=2+2, r9 25 from solution 9=3+6, rs 13 from solution 5=2+3, rio =30 from solution 10=10 (no cuts).Rod Cutting Problem 一个样本输 入及其解: r7 :
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有