Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu 0/1 knapsack, pseudo-polynomial algorithm?

Dikenal juga sebagai: 0/1 knapsack problem · pseudo-polynomial algorithm

Definition 23.8 University Computer Science — Year 1 · Bab 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.

Baca dalam konteks →