Potential method for amortized analysis

  Рет қаралды 8,546

Algorithms Lab

Algorithms Lab

Күн бұрын

Пікірлер: 11
@kennysus6174
@kennysus6174 Ай бұрын
You are an amazing teacher. I hope you are happy in your life.... Sending you all the positive energy i can. You are a nice person
@algorithmslab
@algorithmslab Ай бұрын
Thanks!
@vsvg3
@vsvg3 Жыл бұрын
Heyy, thanks for this! Great work!
@telan3467
@telan3467 Жыл бұрын
This is fantastic
@gawadahmed3722
@gawadahmed3722 Жыл бұрын
you are a legend!
@ShakrinJahanMozumder
@ShakrinJahanMozumder 11 ай бұрын
Could you please give me an idea, how the base-3 counter amortized cost will be calculated here? I am getting, Ci = 2, Potential change = 2. So, amortized cost = 4. Is it okay?
@algorithmslab
@algorithmslab 11 ай бұрын
This doesn't quite work, because Ci might not be constant. The first question you need to do is to define an appropriate potential function. For the binary counter it was the number of 1s, but here it has to look different (Hint: It has to involve the number of 2s. It can also involve the number of 1s.) c_i is the actual cost. Just like for the binary counter, this may vary, i.e., it is not necessarily constant. The trick then is (again like for the binary counter) to make sure to have defined the potential function in such a way, that whenever the counter has to change many digits, that then the potential drops by a similar number. This is a nice exercise.
@ShakrinJahanMozumder
@ShakrinJahanMozumder 11 ай бұрын
Thanks!
@kimjaeyoon366
@kimjaeyoon366 Жыл бұрын
thank u so much
@SupanthaPandit-xs6lf
@SupanthaPandit-xs6lf 7 ай бұрын
Can you please provide the slides?
@algorithmslab
@algorithmslab 7 ай бұрын
the slides are the second half of the following: github.com/kbuchin/slide-archive/blob/main/advanced-algorithms-2024/02-Amortized-Analysis.pdf
Binomial heaps (part 1/3): Introduction and worst-case analysis
29:50
Algorithms Lab
Рет қаралды 1,3 М.
Amortized Analysis: Aggregate Analysis and Accounting Method
38:41
Algorithms Lab
Рет қаралды 41 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Amortized Analysis
21:32
0612 TV w/ NERDfirst
Рет қаралды 87 М.
Red-Black Trees
22:05
Algorithms Lab
Рет қаралды 25 М.
Steiner Forest via Primal-Dual
42:21
Algorithms Lab
Рет қаралды 1,1 М.
The hidden beauty of the A* algorithm
19:22
Polylog
Рет қаралды 917 М.
Skip Lists
15:36
Algorithms Lab
Рет қаралды 45 М.
5. Amortization: Amortized Analysis
1:15:53
MIT OpenCourseWare
Рет қаралды 130 М.
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 253 М.
Amortized Analysis Potential Method
27:16
Richard Joseph
Рет қаралды 9 М.
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 2,5 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН