I am reading a paper (the link to it is below). An there the computational complexity of the following algorithm is stated as $\mathcal{O}(k+h^{-d}) $, but I think the complexity should be $\mathcal{O}(k+kh^{-d}) $. I just don't know where my mistake could be, I would be very grateful for any help.
The Algorithm bassically solves a PDE on a grid $G_h$ with stepsize $0 Given a set $S_n$ of $n$ i.i.d d-dimensional randomvectors Choose $k Solve the pde numerically on the grid (this only involves the computation of a backward difference on each grid point $x$ and the computation of $\hat{f}_h(x)$ at the same point). Where $\hat{f}_h(x)$ is given as $\hat{f}_h(x)=\frac{1}{kh^d} \sum_{i=1}^k { \chi_{[x,x+h]} (Y_i) } $ So choosing the k samples in step 1. is $\mathcal{O}(k) $ and the complexity in step 2 is dominated by the compution of $\hat{f}_h(x)$ on each point on the grid. Assume the grid has $h^{-d}$ points, the the total complexity in my opinion is $\mathcal{O}(k+kh^{-d}) $