oh....
所在版块:求学狮城 发贴时间:2006-03-03 19:10

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
first fit is 2-approximate...to show that,
We first show that all bins (最多1个例外) at the end will be at least half full
Say each bin has capacity P
The intuition is that, at each instance in the packing process, if there's already a less-than-half full bin, the next item will either
1. settle in a new empty bin, if it's weight > P/2, or
2. settle in that less-than-half full bin
Either case, # of less-than-half full bins remains at most one....you can continue the proof...


For the second part, I dunno how to attack it...will try if i get more time
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

这风却是年年都有
 相关帖子 我要回复↙ ↗回到正文
请教一个算法的问题 noah   (614 bytes , 752reads )
你是请教新生,还是混充新生请教? Bird   (0 bytes , 210reads )
本来想打电话问你的,不过明天我有考试,你说你看见了就简单得作答一下子呗 noah   (0 bytes , 226reads )
oh.... Bird   (557 bytes , 263reads )
呵呵,替新生谢过 noah   (0 bytes , 190reads )
我是那位2006届SM3新生 Buniverse   (58 bytes , 274reads )
我帮新生请教 noah   (0 bytes , 174reads )
approximation algorithm 马甲甲甲   (630 bytes , 410reads )
谢谢“这么多马甲”同学,呵呵 noah   (0 bytes , 287reads )
装箱问题 ? 奕丫   (351 bytes , 346reads )
传说中用动态规划...晕了,两年没看过了 奕丫   (0 bytes , 359reads )
不一样。。。 Bird   (0 bytes , 202reads )
先问一个问题: 奕丫   (216 bytes , 250reads )