๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Programming Concepts Intermediate

What is Big O Notation?

A mathematical notation that describes the worst-case performance of an algorithm as input size grows.

Big O describes how an algorithm scales. O(1) is constant time (hash lookup). O(log n) is logarithmic (binary search). O(n) is linear (simple loop). O(n log n) is linearithmic (efficient sorting). O(nยฒ) is quadratic (nested loops). O(2^n) is exponential.

Understanding Big O helps choose the right algorithm and data structure. For example, searching a sorted array with binary search O(log n) is vastly faster than linear search O(n) for large datasets.

Related Terms

Thread
The smallest unit of execution within a process, allowing concurrent operations to run within a single program.
Composition over Inheritance
A design principle favoring object composition (has-a relationships) over class inheritance (is-a relationships) for code reuse.
Functional Programming
A programming paradigm that treats computation as the evaluation of mathematical functions, avoiding state changes and mutable data.
Twelve-Factor App
A methodology of twelve best practices for building modern, scalable, maintainable software-as-a-service applications.
Stack vs Heap
Two memory regions: the stack stores function call data with automatic cleanup, while the heap stores dynamically allocated objects.
Agile
A software development methodology that emphasizes iterative development, collaboration, and rapid response to change.
View All Programming Concepts Terms โ†’