Math Fundamentals18 sections · 814 units
Open in Course

Lessons from Perfect Squares (Summary)

What you learned

1.1. Square roots and logarithms are connected: log(n)=12log(n)\log(\sqrt{n}) = \frac{1}{2} \log(n).

2.2. Dynamic programming builds solutions from smaller subproblems, and logarithms help analyze how many subproblems you have.

3.3. Time complexity depends on both the number of states (nn) and the transitions per state (n\sqrt{n}), giving O(nn)O(n \sqrt{n}) total.