So far in my learning of algorithms, I have assumed that asymptotic boundings are directly related to patterns in control structures. So if we have n^2 time complexity, I was thinking that this automatically means that I have to use nested loops. But I see that this is not always correct (and for other time complexities, not just quadratic). How to approach this relationship between time complexity and control structure?
Thank you