diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2025-01-18 03:05:17 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2025-01-18 03:08:45 +0100 |
| commit | 52ba871e0de9399f77da4b5b0d2c33a2dd6eb6a1 (patch) | |
| tree | 493152c57313f651cae92f88b6f24af2ede1b6d6 /content/other/sos.cpp | |
| parent | 69c98b39106cc2776f6a4983e548338ac24b5e84 (diff) | |
changes to bitwise convolutions
- modify or/and transform to remove unnecessary reversal
- or transform is now sum over subsets, add note about this
- remove old sum over subsets DP
Diffstat (limited to 'content/other/sos.cpp')
| -rw-r--r-- | content/other/sos.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/content/other/sos.cpp b/content/other/sos.cpp deleted file mode 100644 index 892a47c..0000000 --- a/content/other/sos.cpp +++ /dev/null @@ -1,6 +0,0 @@ -vector<ll> res(in); -for (int i = 1; i < ssize(res); i *= 2) { - for (int mask = 0; mask < ssize(res); mask++){ - if (mask & i) { - res[mask] += res[mask ^ i]; -}}} |
