Dynamic Programming — Longest Increasing Subsequence

Deepika
2 min readDec 9, 2021

We are going to solve yet another DP problem using the strategies we discussed in the previous post. If you haven’t, I strongly recommend you read my introduction post here, so it is easy to follow the slang.

Problem Definition: LIS (DPV, chapter 6.2)

We are given an array of numbers. A subsequence is a subset of these numbers taken in order, they can be consecutive or non-consecutive. An increasing subsequence is where the numbers are getting strictly larger. Our goal here is to find…

--

--

Deepika

Deepika loves reading, writing just about anything that intrigues her. On a normal day, you will find her pondering over something that arose her curiosity.