Anki Deck Changes

Commit: f21b07a4 - Add cards on sum via integral + geo series trick

Author: Jonas B <65017752+Scr1pting@users.noreply.github.com>

Date: 2026-01-23T20:50:38+01:00

Changes: 2 note(s) changed (2 added, 0 modified, 0 deleted)

Note 1: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Classic
GUID: lg2TVeS_j]
added

Previous

Note did not exist

New Note

Front

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
How can I find the asymptotic behavior of a sum like \(\sum_{i = 1}^{\lfloor \log_2 (n) \rfloor} \sqrt{i}\)?

Back

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
How can I find the asymptotic behavior of a sum like \(\sum_{i = 1}^{\lfloor \log_2 (n) \rfloor} \sqrt{i}\)?

Sum and integral have the same asymptotic behavior (not covered in lecture)!

\[\begin{align} \sum_{i=1}^{\lceil \sqrt{n} \rceil} \sqrt{i} &\sim \int_1^{\lceil \sqrt{n} \rceil} \sqrt{x}\,dx \\ &= \left[\frac{2}{3}x^{3/2}\right]_1^{\lceil \sqrt{n} \rceil} \\ &= \frac{2}{3}\bigl(\lceil \sqrt{n} \rceil^{3/2} - 1\bigr) \\ &\sim \frac{2}{3}\bigl(n^{1/2}\bigr)^{3/2} \\ &= \Theta(n^{3/4}). \end{align}\]
(We use \(\sim\) to denote asympotic equivalence. Correct but verbose would be to wrap everything in \(\Theta\))
Field-by-field Comparison
Field Before After
Front How can I find the asymptotic behavior of a sum like \(\sum_{i = 1}^{\lfloor \log_2 (n) \rfloor} \sqrt{i}\)?
Back Sum and integral have the same asymptotic behavior (not covered in lecture)!<br><br>\[\begin{align} \sum_{i=1}^{\lceil \sqrt{n} \rceil} \sqrt{i} &amp;\sim \int_1^{\lceil \sqrt{n} \rceil} \sqrt{x}\,dx \\ &amp;= \left[\frac{2}{3}x^{3/2}\right]_1^{\lceil \sqrt{n} \rceil} \\ &amp;= \frac{2}{3}\bigl(\lceil \sqrt{n} \rceil^{3/2} - 1\bigr) \\ &amp;\sim \frac{2}{3}\bigl(n^{1/2}\bigr)^{3/2} \\ &amp;= \Theta(n^{3/4}). \end{align}\]<br> (We use&nbsp;\(\sim\)&nbsp;to denote asympotic equivalence. Correct but verbose would be to wrap everything in&nbsp;\(\Theta\))
Tags: ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums

Note 2: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Classic
GUID: m{e.+pS,Zn
added

Previous

Note did not exist

New Note

Front

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
How can you find the upper bound of a geometric series like \(T = 7^1, 7^2, \ldots, 7^n\)?

Back

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
How can you find the upper bound of a geometric series like \(T = 7^1, 7^2, \ldots, 7^n\)?

Use the multiply-subract trick.
  1. Mutliply the series by its base: \(7T\)
  2. Subtract: \(7T - T = 7^{n+1} - 7^1\) (middle terms cancel)
  3. Factor: \(T(7-1) = 7^{n+1} - 7^1\)
  4. Divide: \(T = \frac{7^{n+1} - 7^1}{6}\)
Field-by-field Comparison
Field Before After
Front How can you find the upper bound of a geometric series like&nbsp;\(T = 7^1, 7^2, \ldots, 7^n\)?
Back Use the multiply-subract trick.<br><ol><li>Mutliply the series by its base:&nbsp;\(7T\)</li><li>Subtract:&nbsp;\(7T - T = 7^{n+1} - 7^1\)&nbsp;(middle terms cancel)</li><li>Factor:&nbsp;\(T(7-1) = 7^{n+1} - 7^1\)</li><li>Divide:&nbsp;\(T = \frac{7^{n+1} - 7^1}{6}\)</li></ol>
Tags: ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
↑ Top