For a selection problem, for example select $k$ smallest items from a list of unsorted array of real numbers, to assess the performance of a algorithm how is the time complexity calculated? Is it evaluated based on a specific value of $k$ or is it averaged across all possible values of $k$? That is $k \in \mathbb{N}, 0\lt k \lt n$.
My currently understanding is that the complexity is calculated based on single value of $k$ but it may be unfortunate.
I've asked a related question here but the accepted answer doesn't explicitly point out this.