Recursive Least Squares (RLS) method is one of the fundamental methods for parameter estimation and control. It is used as the basis of Kalman filtering, adaptive control, recursive subspace ...
# longest_increasing_subsequence[prev] + array[i] if the length is longer.