Dynamic Programming21 sections · 916 units
Open in CourseQuiz: LIS Optimization
Knowledge check
Check Your Understanding
The O(n log n) LIS algorithm maintains an array tails. What does tails[i] store?
- A.The smallest ending element of all increasing subsequences of length i+1
- B.The number of subsequences of length i
- C.The index of the i-th LIS element
- D.The i-th element of the original array