摘要:
C++ 版(回溯 + 贪心):Sdl.h#define Typep int#define Typew intclass Sdl { friend Typep get_best_sdl(Typep *, Typew *, Typew, int); private: Typep Bound(int i); void Backtrack(int i); Typew c; // the capability of the bag int n; // the number of item Typew *w; // the array of weight Typep *p; // the ar... 阅读全文
posted @ 2012-08-27 21:07
lizhang的博客
阅读(402)
评论(0)
推荐(0)

浙公网安备 33010602011771号