摘要: 背包问题 N 件物品放入容量为 V 的背包,求最大的价值。 常见的背包问题分为:01背包问题,完全背包问题。 其中核心的问题还是 01背包问题,其余的背包问题都是基于01背包的变形。 AcWing 2. 01背包问题 有 N件物品和一个容量是 V 的背包。每件物品只能使用一次。 第 i 件物品的体积 阅读全文
posted @ 2021-12-25 19:39 pxlsdz 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 源码地址:https://gitee.com/pxlsdz/hyld 演示地址:http://121.199.59.80/hyld/ 在Django中集成Redis 安装 1. 安装django_redis pip install django_redis 2. 配置settings.py CACH 阅读全文
posted @ 2021-12-25 01:47 pxlsdz 阅读(246) 评论(0) 推荐(0) 编辑