⚠️
Video playback error
0.25x
0.5x
0.75x
1x ✓
1.25x
1.5x
1.75x
2x
0:00:00 / 0:00:00

Amortized Analysis Deep Dive #2: Accounting Method Explained with Examples

Description

The speaker is delivering a lecture or presentation on computer science concepts to an unseen audience.

Enjoy videos in any language, instantly!

Script

Original:

Some operations feel like they are stealing time from the algorithm, while others feel like they're barely doing anything. What if we could charge each operation a fair price, even some of them are secretly expensive? That's the idea behind the accounting method in amortized analysis. It's like giving each operation a budget. If you are just joining, this is a part of our deep dive into the amortized analysis. But don't worry, we will start fresh. In this video, we'll walk through the accounting method with a clear example and see how assigning fake costs can review the real performance.

Translated:

Деякі операції ніби забирають час в алгоритму, тоді як інші, здається, майже нічого не роблять, не впливаючи на продуктивність. А що, якби ми могли встановити справедливу ціну для кожної операції, навіть якщо деякі з них насправді дорогі? Саме в цьому суть бухгалтерського методу амортизованого аналізу. Це як виділити кожній операції бюджет. Якщо ви щойно приєдналися, це частина нашого занурення в амортизований аналіз. Але не хвилюйтесь, ми почнемо спочатку. У цьому відео ми докладно розглянемо бухгалтерський метод, наведемо чіткий приклад та покажемо, як умовні витрати розкривають реальну продуктивність.