摘要:
01背包剖析 问题引入 题目来源: "ACwing:01背包问题" 有 N 件物品和一个容量是 V 的背包。每件物品只能使用一次。第 i 件物品的体积是 vi,价值是 wi。求解将哪些物品装入背包,可使这些物品的总体积不超过背包容量,且总价值最大。输出最大价值。 输入格式 第一行两个整数,N,V,用 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
单源最短路常用模板 SPFA 朴素版 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
摘要:
引入 引用某OI大佬的一段话 动态规划自古以来是DALAO凌虐萌新的分水岭,但有些OIer认为并没有这么重要——会打暴力,大不了记忆化。但是其实,动态规划学得好不好,可以彰显出一个OIer的基本素养——能否富有逻辑地思考一些问题,以及更重要的——能否将数学、算筹学(决策学)、数据结构合并成一个整体并 阅读全文