🐻
berkeley
  • #Despair
  • 16A/B
    • Thevenin and Norton Equivalence
    • Resistive Touchscreen
    • Trilateration and Correlation
    • RC Circuits & Transient Analysis
  • 61B
    • Testing
    • References in Java
    • Linked Lists in Java
    • Implementation Inheritance
    • Comparables and Iterators
    • Casting
    • Lists and Sets
    • Asymptotics
    • Trees
    • Hashing
    • PriorityQueue and Heap
    • Graphs, Tree Traversals
    • Tries
    • Sorting
  • Discrete Mathematics
    • Sets + Mathematical Notation
    • Logic and Proofs
    • Induction
    • Cryptography/RSA
    • Modular Arithmetic
    • Discrete Probability
  • Linear Algebra
    • Linear Equations
    • Matrix Algebra
    • Determinants
    • Vector Spaces
    • Eigenvectors and Eigenvalues
    • Projections and Orthogonality
    • SVD/PCA
  • Math 275 — Ordinary Differential Equations
    • Math 275 — Overview
    • Modeling via Differential Equations
    • Linear Systems
  • INTEGBI 35AC
    • Humans Came From Fish
    • Evolution's History
    • Typology
    • The Human Diaspora
  • 170
    • Basics
    • Divide and Conquer
    • Fast Fourier Transform
    • Graphs
    • Greedy
  • 61C
    • Pointers and Memory
    • Floating Point
    • Compliation, Assembly, Linking, Loading
    • RISC-V, Assembly
Powered by GitBook
On this page
  • Asymptotic Notation
  • Master Theorem

Was this helpful?

  1. 170

Basics

Asymptotic Notation

Suppose we have two functions fff and gggwhich map positive integers to positive integers.

Name

Notation

Definition

"Big-O"

Less than or equal to

"Little-O"

Less than

"Big-Omega"

"Little-Omega"

Theta

Master Theorem

A general formula to solve recurrence relation.`Suppose we have a recurrence relation that resembles the following.

T(n)=aT(nb)+cndT(n) = aT\left(\frac{n}{b}\right) + cn^dT(n)=aT(bn​)+cnd

Then, we have Θ(nd)\Theta(n^d)Θ(nd) if a<bda < b^da<bd, θ(ndlog⁡(n))\theta(n^d\log(n))θ(ndlog(n)) if a=bda = b^da=bd, and Θ(nlog⁡ba)\Theta(n^{\log_ba})Θ(nlogb​a) for the final case.

PreviousThe Human DiasporaNextDivide and Conquer

Last updated 3 years ago

Was this helpful?