You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URL: https://usaco.guide/adv/dp-sos Module: Advanced - Sum over Subsets DP Topic: Mistake Message:
The following explanation:
Notice how in both of these examples we don't seem to be saving much information between different subsets which is the essence of DP.
Define $\texttt{SOS}(\texttt{mask}, x)$
to be the sum of subsets of mask such that the first $x$
bits of the subset are identical to the first $x$
bits of mask.
For example, $\texttt{SOS}(1001001, 3)$
includes the subsets $1001001$
, $1000001$
, $1001000$
, $1000000$
which all have the same common prefix of $100$
.
I'm pretty sure It should be the last x bits, since if it were the first x bits, then when you transition to x+1 the answer is non-increasing which makes no sense
The text was updated successfully, but these errors were encountered:
Someone submitted the contact form!
URL: https://usaco.guide/adv/dp-sos
$\texttt{SOS}(\texttt{mask}, x)$
$x$
$x$
$\texttt{SOS}(1001001, 3)$
$1001001$
$1000001$
$1001000$
$1000000$
$100$
Module: Advanced - Sum over Subsets DP
Topic: Mistake
Message:
The following explanation:
Notice how in both of these examples we don't seem to be saving much information between different subsets which is the essence of DP.
Define
to be the sum of subsets of mask such that the first
bits of the subset are identical to the first
bits of mask.
For example,
includes the subsets
,
,
,
which all have the same common prefix of
.
I'm pretty sure It should be the last x bits, since if it were the first x bits, then when you transition to x+1 the answer is non-increasing which makes no sense
The text was updated successfully, but these errors were encountered: