Groups
Category
An ordinary generating function (OGF) encodes a sequence (a_n) as a formal power series A(x) = \sum_{n \ge 0} a_n x^n.
Knapsack problems ask how to pick items under a weight (or cost) limit to maximize value or to check if a target sum is reachable.