───✱*.。:。✱*.:。✧*.。✰*.:。✧*.。:。*.。✱ ───

Order of complexity (or Big-O notation) describes how the runtime of an algorithm or function grows relative to the input size 𝑛, especially as 𝑛→∞. It provides an upper bound on complexity and typically focuses on the worst-case scenario.

Big-O in Equations

  • In an equation, the most significant term is the most important term, since it effects the of the function the most as 𝑛→∞.
  • For instance for 𝑓(𝑛)=4𝑛2+100𝑛+2000, it would be 𝑛2

Cheat Sheet

───✱*.。:。✱*.:。✧*.。✰*.:。✧*.。:。*.。✱ ───