Math Fundamentals18 sections · 814 units
Open in Course

Intro

The Goal

Logarithms show up everywhere in computer science. Every time you see O(logn)O(\log n), that's logarithms. Binary search? Logarithms. Trees? Logarithms. Even database indexes use logarithms.

In this section, I'll show you what logarithms are and why they appear in so many algorithms. You'll learn the notation, the properties, and how to recognize logarithmic patterns in code.

By the end, you'll understand why O(logn)O(\log n) is fast and how to use logarithms to analyze algorithm performance.