//动态规划---------------------------------------------------------------------------
- Permutations and combinations of the separator method , additional dynamic programming may be used .
- One-dimensional recursive dynamic programming requires optimization of time complexity .
- The definition of stock status array, the relationship between holding and not holding income, and the definition of state transition equation .
- Binary-related dynamic programming (of course, this problem can also be solved violently) .
- The best-understood example of state transition, in dynamic programming according to which state to write the state transition equation is very critical .
- Bellman-Ford algorithm application (compare Dijkstra algorithm) .
- Class 0/1 knapsack problem, learn to identify and transform (the principle of solving the dp array backwards: fill it up step by step) .
- For knapsack-like problems, the key to recognition is to first use mathematical relations to convert to the corresponding knapsack filling pattern .
- Both sides consider the dynamic programming problem of optimal solution at the same time, and understand the essence of space optimization .
- Completely knapsack problem . -------- There are two cases about the complete knapsack problem: the method of finding the number of combinations and the number of permutations . ( Number of combinations ) ( Number of permutations )
- Interval sum and dynamic programming .
- The use of monotonic stacks ; ( the sum of consecutive 1s and the use of monotonic stacks ).
- The sum of consecutive 1s (counting the number of rectangles) .
- Combination knapsack problem .
- Solve the length of the longest Fibonacci sequence and learn to hash a two-dimensional array to one dimension .
//图论---------------------------------------------------------------------------
- Determine that the B-tree is a substructure of the A-tree .
- Delete the specified tree node and return to the forest. .
Note that this method uses .count(para) of unordered_set to check whether the element is in the set.