This commit is contained in:
@@ -47,7 +47,7 @@ A ride sharing company wants to send riders promotional coupons in the hope of m
|
||||
\begin{frame}{Multiple-choice knapsack}
|
||||
\textbf{Input}: $n$ sets of coupons $K_1,\dots,K_n$. Each coupon $e\in K_i$ has a non-negative cost $c_e\in \Z_+$ and value $v_e\in \Z_+$. A positive budget $b\in \Z_+$.
|
||||
|
||||
\textbf{Output}: A (multi)set of coupons $K$ that maximizes the total value $\sum_{e\in K} c_e$ while satisfying \textcolor{Red}{$|K\cap K_i|\leq 1$} and $\sum_{e\in K} c_e\leq b$.
|
||||
\textbf{Output}: A subset of coupons $K$ that maximizes the total value $\sum_{e\in K} c_e$ while satisfying \textcolor{Red}{$|K\cap K_i|\leq 1$} and $\sum_{e\in K} c_e\leq b$.
|
||||
|
||||
\vspace{1em}
|
||||
\pause
|
||||
|
Reference in New Issue
Block a user