THE NOTEBOOK

Keep exploring.

Ideas accumulate. The threads continue here.

02 / THE NOTEBOOK21

Latest notes.

View archive
Keep learning. Keep a record.Newest first
Algorithms & data structures
Algorithms & data structures

0-1背包问题

首先我们需要知道什么是0-1背包问题。 即N件物品和最多能承受重量W的背包,第i件物品的重量为Weight[i],价值为Value[i]。每件物品只能使用一次,求解将那些物品放入背包能使价值最大。这就是标准的0-1背包问题。 ## 1.暴力解法 暴力

3 min readRead note

Nothing happens by accident. Some paths just take a few more turns.

This is doovvv’s personal notebook: questions from studying, discoveries from practice, and a little room for ideas still taking shape.

Computer ScienceAlgorithmsAI & Systems
Get to know me

Search the notebook

Find an idea in 21 notes.