Algorithm_exam
Definition of polynomial reduction
A<B, B<C, then A<C
Prove Longest Path is NPC (Hint: Hamilton Path or Hamilton Circle)
Longest Path on a tree
- Find a longest path on a tree
- Design a polynomial algorithm
- Design a linear time algorithm
Two binary n-bit number multiplication
- Time complexity
- Design a faster algorithm
Memory Consumption