Greedy
From workshop
From bruce force, to a perfect solution.
From local optimum to a whole optinum. According to experience.
Steps
- Determine wether can use Greedy
- Choose the strategy of Greddy
- Calculate
Some samples
- Arrange the activitices
- Minuim end time of meeting
- Minunm sum of weight of tree from graph
- Prim
- Krusal
- Huffman coding
prefix-tree binary code; choose the two min weighted elements to be the leaves of tree(from down to up)