I know that, for grid search algorithm, the computational cost of the grid search algorithm would be $O(v^p)$ optimizing $p$ parameters each of which can take on $v$ values, then the computational cost of the grid search algorithm would be $O(v^p)$. But I am not sure what is the computational cost for conducting random walk algorithm. Would it be simply $O(p)$?
Thank you,