0

I have a sequence of length 1. That is,

1

Now can I say that the longest increasing subsequence of length 1 in the above sequence is 1. And the longest decreasing subsequence of length 1 in the above sequence is 1 ?

user3243499
  • 2,953
  • 6
  • 33
  • 75
  • Yes indeed, if you remove "of length 1", because that does not make sense in combination with "longest". – trincot Jun 12 '16 at 20:49

1 Answers1

3

Degenerate sequence (i.e. a sequence of a single element) can be assigned whatever properties that you need: it is the longest increasing sequence, the longest decreasing sequence, and the longest sequence of equal elements.

This is important in situations when you define properties of sequences in terms of their sub-sequences: one-element sub-sequence gives you a base case; expanding it with another element gives you a two-element sequence.

Sergey Kalinichenko
  • 714,442
  • 84
  • 1,110
  • 1,523