- 博客(2)
- 收藏
- 关注
转载 HDOJ1800-------字符串Hash大杂烩
#include iostream>using namespace std;int MAX;#define MM 7003int h[MM],c[MM];int cas;//RSHashinline unsigned int RSHash(char* str)...{ unsigned int b = 50021; unsigned int a = 7003; unsi
2008-05-19 23:58:00
524
转载 经典算法(2)——0/1背包问题(动态规划法)(ZZ)
1. 问题描述 给定一个载重量为m,n个物品,其重量为wi,价值为vi,12. 问题分析 在0/1背包问题中,物体或者被装入背包,或者不被装入背包,只有两种选择。
2008-05-19 15:19:00
973
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅