Ovido
Language
  • English
  • Spanish
  • French
  • Portuguese
  • German
  • Italian
  • Dutch
  • Swedish
Text
  • Uppercase

User

  • Log in
  • Create account
  • Upgrade to Premium
Ovido
  • Home
  • Log in
  • Create account

Big O notation

Give two rules for using big O notation

- Remove all terms apart from the one with the largest exponent
- Remove any constants

Define O(1)

An algorithm that executes data in the same amount of time regardless of the size of the data set

Define O(n)

Describes an algorithm whose run time grows linearly with the size of the input.

Define O(log n)

Describes an algorithm where time increases very slowly as dataset grows. Halves the dataset in each pass

Define O(n^2)

performance is proportional to the square of the size of the dataset

Define O(2^n)

An algorithm whose run time increases quadratically as the dataset grows. Doubles the dataset in each pass

Define 'Best case complexity'

The algorithm that performs most efficiently e.g. a linear or binary search finding the correct item in the first search

Define 'Average case complexity'

An algorithm that performs neither at its best or worst on any given data. e.g. a linear search looking for an item thats in the middle of a list

Define 'Worst case complexity'

An algorithm that is the least efficient e.g. a linear search finding the item in the last position

Why is Big O Notation measured by the worst case performance

It allows programmers to accurately select algorithms for a problem. (Algorithms with the most reliable performance)

Quiz
musicale
l
plant transport
bio plant repro
Separação de misturas
C9
rimbaud
on ne badine pas avec l'amour
les caractères
Nach folgenden Verben nur Gerund
Verb + Präposition
Gerund: Substantiv + Präposition
biology
Gerund: Adjectiv + Präposition
B. 2, Topic 4 Vokabeln
технология
les propositions subordonnees
engels
Biology F5 C2
Phrasal verbs
Revisão V ou F
3.-PLAN AND CONDUCT A PASSAGE - TERRESTRIAL AND COASTAL NAVIGATION
Physics
Dates
examen especial junio
General question.
Psykologi för tolkar
Přímačky FZS - copy
Vocabulary of reading Test 6
test 2 (first) - copy
test 3 - copy
spanisch
spanisch
spanisch
book
g 6go
PSICO pt 1
bio
Vocabulary_week_24
Translate_week_24
Contemporary / History
Galenisk ll
Filipino
philo
ENGINEERING
2.- RESPOND TO EMERGENCIES
orgg
TECHNOLOGY
729 Exam - important concepts
chapter 3