article

big O notation

[WHAT]

  1. ] by __ @ __ - 

[WHY]

[WHERE]

  1. ] READ THE FULL ARTICLE
    1. A Beginner’s Guide to Big O Notation « Rob Bell - representation of the complexity of an alogithm

[WHEN]

  1. ] 2017-01-27 EDIT move from contents article

[EXAMPLE]

Big-O notation is a relative representation of the complexity of an algorithm.

There are some important and deliberately chosen words in that sentence:

  • relative: you can only compare apples to apples. You can't compare an algorithm to do arithmetic multiplication to an algorithm that sorts a list of integers. But two algorithms that do arithmetic operations (one multiplication, one addition) will tell you something meaningful;
  • representation: Big-O (in its simplest form) reduces the comparison between algorithms to a single variable. That variable is chosen based on observations or assumptions. For example, sorting algorithms are typically compared based on comparison operations (comparing two nodes to determine their relative ordering). This assumes that comparison is expensive. But what if comparison is cheap but swapping is expensive? It changes the comparison; and
  • complexity: if it takes me one second to sort 10,000 elements how long will it take me to sort one million? Complexity in this instance is a relative measure to something else.

[HOW-TO]

  1. ]

[REFERENCE]

  1. http://stackoverflow.com/questions/487258/plain-english-explanation-of-big-o 

 

Details Photos Edit more

Details

ID: 5559

NAME: big-O-notation

DESCRIPTION: ] big O notation - primer on understanding how to express the relative representation of the complexity of an algorithm

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and