is a “non-decreasing” sequence “increasing”?

后端 未结 8 660
梦如初夏
梦如初夏 2020-12-23 16:27

While studying the book \"Introduction to Algorithms by Cormen\", I found a strange thing. Everywhere if it refers to an increasing order, the book refers it as \"non-decrea

相关标签:
8条回答
  • 2020-12-23 16:54

    Yes,

    Monotonically Increasing == Increasing == Non-Decreasing

    if f(a) >= f(b) for all a > b

    Strictly Increasing Function :

    if f(a) > f(b) for all a > b

    0 讨论(0)
  • 2020-12-23 17:04

    Increasing means that every element is greater than the one before it. Non-decreasing means that no element is less than the element before it, or in other words: that every element is greater than or equal to the one before it.

    0 讨论(0)
提交回复
热议问题