全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 0/1 knapsack, pseudo-polynomial algorithm?

又称: 0/1 knapsack problem · pseudo-polynomial algorithm

Definition 23.8 University Computer Science — Year 1 · 第 23 章 — Dynamic Programming

The 0/1 knapsack problem asks, for items of integer weights wiw_i and values viv_i and a capacity WW, for a set of items of total weight at most WW and largest total value. An algorithm is pseudo-polynomial if its cost is polynomial in the numbers of the input, but not in the number of digits needed to write them.

在原文中阅读 →