KonkurStudy
همه کارت‌ها

Solving Recurrences by Change of Variable (n = 2^m)

When a recurrence shrinks nn by a constant factor (e.g. n→n/2n\to n/2 or n→nn\to\sqrt{n}), the substitution n=2mn=2^{m} converts division into subtraction, turning a hard recurrence in nn into an easy one in mm that you can unroll or hit with the Master Theorem.

کارت الگوریتم کنکور ارشد علوم کامپیوتر