2020-06-09 16:36:07 +00:00
|
|
|
---
|
2020-06-15 23:19:07 +00:00
|
|
|
id: dp-bitmasks
|
2020-06-09 16:36:07 +00:00
|
|
|
title: "Dynamic Programming on Bitmasks"
|
|
|
|
author: Michael Cao
|
|
|
|
prerequisites:
|
2020-06-22 20:51:12 +00:00
|
|
|
- Bit Operations
|
|
|
|
- Gold - Introduction to Dynamic Programming
|
2020-06-22 19:59:16 +00:00
|
|
|
description: DP problems that require iterating over subsets.
|
2020-06-09 16:36:07 +00:00
|
|
|
---
|
|
|
|
|
2020-06-24 23:08:16 +00:00
|
|
|
import { Problem } from "../models";
|
|
|
|
|
|
|
|
export const metadata = {
|
|
|
|
problems: {
|
|
|
|
general: [
|
|
|
|
new Problem("CSES", "Hamiltonian Flights", "1690", "Easy", false, ["Bitmasks"], ""),
|
2020-06-25 15:52:19 +00:00
|
|
|
new Problem("CSES", "Elevator Rides", "1653", "Normal", false, ["Bitmasks"], ""),
|
|
|
|
new Problem("YS", "Max Indep Set", "maximum_independent_set", "Hard", false, ["Bitmasks", "Meet in Middle"], ""),
|
2020-06-24 23:08:16 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-06-22 14:26:06 +00:00
|
|
|
Has not been the solution to any platinum problem, but appeared in old gold and can be used for subtasks.
|
2020-06-09 16:36:07 +00:00
|
|
|
|
|
|
|
## Tutorial
|
|
|
|
|
2020-06-23 01:00:35 +00:00
|
|
|
- [PAPS 9.4](https://www.csc.kth.se/~jsannemo/slask/main.pdf)
|
|
|
|
- CPH 10 (Bit manipulation), 19.2 (Hamiltonian Paths)
|
2020-06-22 14:26:06 +00:00
|
|
|
- [Dynamic Programming Over Subsets (Codeforces)](https://codeforces.com/blog/entry/337)
|
|
|
|
- [Dynamic Programming and Bit Masking (HackerEarth)](https://www.hackerearth.com/practice/algorithms/dynamic-programming/bit-masking/tutorial/)
|
2020-06-09 16:36:07 +00:00
|
|
|
|
|
|
|
## Problems
|
|
|
|
|
2020-06-24 23:08:16 +00:00
|
|
|
<problems-list problems={metadata.problems.general} />
|
2020-06-24 20:50:30 +00:00
|
|
|
|
2020-06-22 14:26:06 +00:00
|
|
|
- [Old Gold - Moovie Moving](http://www.usaco.org/index.php?page=viewproblem2&cpid=515)
|
|
|
|
- [AC Matching](https://atcoder.jp/contests/dp/tasks/dp_o)
|
|
|
|
- [CF Square Subsets](https://codeforces.com/contest/895/problem/C)
|
|
|
|
- [CF Guards in the Storehouse](https://codeforces.com/problemset/problem/845/F)
|
|
|
|
- [Kattis Cat & Mice](https://open.kattis.com/problems/catandmice) [](66)
|
|
|
|
- plus a bit of geometry
|