Big O Notation Explained

Home » Blog » Software » Big O Notation Explained

Leider ist der Eintrag nur auf English verfügbar.

Conrad Reeves recently published an article on Big O notation on That Computer Scientist, in which he tries to explain this – seemingly daunting – subject as easily as possible.

Big O notation is a method for ranking an algorithm’s efficiency in terms of time (e.g. CPU cycles) or space (i.e. storage or memory) requirements. In a nutshell, Big O notation allows you to make rough approximations like for example: “In a best case scenario the algorithm in question at most will consume as many CPU cycles as a hypothetical algorithm described by this function multiplied by a constant factor.”

For example, an algorithm with an efficiency of O(n²) will at most require the same time or space as f(x) = n * x² with x meaning the number of elements to be processed and n signifying an arbitrary factor.

As a maths professor once put it to me: “Big O is a way of describing something imprecise in exact terms.”

About the author: Bjoern
Independent IT consultant, entrepreneur

Leave a Comment

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)