Algo Knapsack

Solve 0/1, unbounded, subset-sum, and bitmask set-cover knapsack DP in Python with traceback and O(capacity)-space optimization. Use when picking an optimal subset under a budget/capacity constraint — gene panel or assay selection under a sequencing budget, primer/reagent allocation, experiment portfolio selection, or any "maximize value subject to a cost limit" or "does a subset sum to X" problem.

pavel-kravchenko Updated

File contents

pavel-kravchenko/bioinformatics/tree/main/Skills/algo-knapsack commit 9684632687

Frequently asked questions

npx skillmds@latest add pavel-kravchenko/algo-knapsack