Блог пользователя Harshlyn94

Автор Harshlyn94, история, 6 лет назад, По-английски

Hi everyone ! Can anyone knows the expected number of elements p[i] with the following property in a permutation of size N ? Property: p[i-1] < p[i] > p[i+1] i.e., it is the local maxima in the permutation ? Note : Please do mention the mathematical proof if possible !

  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You can use the "Contribution to the sum" technique (Have a look into this post)