What counts as a step?

https://news.ycombinator.com/item?id=3206377
by orthebox • 15 years ago
1 5 15 years ago

Hello all! Learning Big O Notation now, and was wondering –– what counts as a step?

For example, in pseudocode:

function a(x): return x + x

How many steps are there? 2? Or 1? Basically, what counts as a 'step' in a programming language –– is it just any statement or are there certain exceptions.

Or maybe I'm just complicating the issue?

Thanks!

Related Stories

Loading related stories...

Source preview

news.ycombinator.com