A written short study into Big O Notation. How the algorithm determines how long an algorithm takes to execute- As well as enabling software engineers to determine how efficient different approaches to solving computational problems are.
Goldsmiths, University of London (GUL)
Goldsmiths, University of London
Introduction to Programming 1
All documents for this subject (1)
Seller
Follow
noahpayne
Content preview
Algorithms 1 - BSc Computer Science (Semester 1) - Goldsmith, University of London
Big O Notations is a way to represent how long an algorithm will take to execute. It is used to
enable a Software Engineer to determine how efficient different approaches to solving
problems are. There are 4 main common types of time complexities in Big O Notation: -
● O(1) - Constant time complexity
● O (n) - Linear time complexity
● O(log n) - Logarithmic time complexity
● O(n ^ 2) - Quadratic time complexity
O(1) CONSTANT TIME COMPLEXITY:
Constant time algorithms will always take the same amount of time to be executed. The
execution time of these algorithms is independent of the size of the input. A effective
example of O(1) time is accessing a value with an array index.
E.g Push() or pop() operations on an array.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller noahpayne. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $3.90. You're not tied to anything after your purchase.