I have the following, and need to write it in terms of x, and n or provide a bound on its complexity (Big O), any ideas? (n is a constant, $1≤x<n$)
$ E(x)=1+E(x-1+\frac{x}{n}-\frac{x^2}{2n})\\ E(x\leq2)=1 $
I have the following, and need to write it in terms of x, and n or provide a bound on its complexity (Big O), any ideas? (n is a constant, $1≤x<n$)
$ E(x)=1+E(x-1+\frac{x}{n}-\frac{x^2}{2n})\\ E(x\leq2)=1 $
Copyright © 2021 JogjaFile Inc.
This is not strictly speaking an answer to your question but a step forward in the understanding of the goal.
I have programmed the recursive functional relationship : the recursive calls all end up in a finite number of steps (a major step that you will have to establish, common to all recursive definitions) and one obtains the following figure :
which looks to be very close to a function with equation :
$$y=\lceil a(1-e^{-bx}) \rceil$$
for some constants $a$ and $b$ where $\lceil A \rceil$ is the smallest integer at least equal to $A$.
Here is the Matlab program that has generated this figure :