Тёмный

1.1 Amortized Analysis | Introduction with Examples | Advanced Data Structures | Algorithms 

Uzair Javed Akhtar
Подписаться 4,1 тыс.
Просмотров 78 тыс.
50% 1

In this video, I have explained amortized analysis with an example of augmented stack.
Next Video (Aggregate Method) : • 1.2 Aggregate Method |...
Tags:
#amortized #ammortized #advanceddsa #datastructures #dsa #introduction #augmentedstack #advanceddatastructures #cse #amortizedanalysis #timecomplexity #computerscience #it #algorithm #algorithms #software

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@IamNGD
@IamNGD 2 года назад
After watching 20+ videos on this topic i found the one i really needed😢 thankyou so much sirji🙏
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
I hope you are not refering to My 20+ videos only😝 On a serious note, Thanks a lot for your appreciation. Means a lot🖤 If possible, please share the channel with your friends 🙂
@IamNGD
@IamNGD 2 года назад
@@uzairjavedakhtar3718 Sure sir🙏👍
@josedamiansanchez9874
@josedamiansanchez9874 Год назад
Great example explained to differentiate the Asymptotic and Amortized analysis.
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
Haha! Had to think a lot before coming up with this😁 Thanks for taking out time to acknowledge it🖤
@ayushsuryawanshi9020
@ayushsuryawanshi9020 Год назад
Ofcourse Aman do better analysis than Asim
@siddheshshrirame6909
@siddheshshrirame6909 6 месяцев назад
tackling such important topics , which are not covered on whole youtube with such grace and lucid explanation is really praisable. Hats off to you sirji.
@uzairjavedakhtar3718
@uzairjavedakhtar3718 6 месяцев назад
Thanks a lot for your acknowledgement. Really means a lot🙂
@technohelper4855
@technohelper4855 2 месяца назад
I never comment .. but man this time I must say .. best explanation till now .. universities needs teachers like you
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 месяца назад
Thanks a lot for your kind words...Really means a lot :) If you really feel so, share it with your university students out there😉
@om7g.103
@om7g.103 4 месяца назад
Amortized Analysis Aysmptotic Notation - Big O Notation , Big Theta Notation Why amortized analysis is more important than asymptotic notation in some cases An example Augmented Stack
@mr.curious1329
@mr.curious1329 2 года назад
Wonderfully explained.Compact and precise😃👍👍👍👍
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Thanks for your kind words..Keep learning! And don't forget to share my channel😉
@vishvajithbalajee
@vishvajithbalajee Месяц назад
hatsoff to your efforts sir, keep doing more videos on ADS.👍👍
@uzairjavedakhtar3718
@uzairjavedakhtar3718 14 дней назад
Sure. Thanks😊
@niharikasingh769
@niharikasingh769 2 года назад
Didn't get one thing, in the second example: the asymptotic time complexity is for performing multipop n times which gives O(n^2) complexity but amortised complexity is for performing multipop(n) once and then pushing the elements back. This gives you O(n) complexity. But here also shouldn't we perform multipop n times. If we do that the time complexity will again be the same o(n^2). Basically my question is why we are not considering to perform multipop n times when finding amortised time complexity. I understand we don't have the elements left after 1st multipop but after pushing the elements back can't we perform multipop again and do it n times. Cause if it had to be done only once then even the asymptotic notation will give you O(n) complexity.
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Great Question! You are raising this question because you are thinking that what I calculated in the video was the time complexity of the multipop(n) operation....Had that been the case, you are right But, that was instead the time complexity of the data structure. Now, what is the time complexity of any data structure? Suppose I give you a chance to perform n operations on a data structure and I tell you that what is the worst case time complexity you can prove in these n operations? So, if you are a Asymptotic fan, you would say that you will do multipop(n) n times( as it is the most expensive operation), which is not possible continuosly as your stack gets empty after each operation. But if you are doing Amortized analysis, you will still try to do worst case operations, i.e. multipop(n) ..but remember that u can just perform n operations...in that case, once u perform one multipop(n) operation, u cannot perform the other one until the n+2 th operation. So in total, how many multipop(n) u can do in n operations? Just 1 Hence , Time complexity for n operations comes out as O(n) If still any query, please ask 🙂 Kindly share the video
@rho992
@rho992 Год назад
Thank you that makes it clear..
@OODevelopers
@OODevelopers 7 месяцев назад
What are all the n+2 operations here?
@ur_fun
@ur_fun Год назад
i hope, i will see u become one of the best teachers in utube. tanx a lot. keep it up
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
Thanks A Lot for this beautiful comment😊 This really made my day🖤🖤🖤
@rho992
@rho992 Год назад
Loved it... after watching so many video.. I can finally understand what we are actually even doing
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
Really happy to know this 😊
@himankgaming7555
@himankgaming7555 Год назад
6:20 i really though my earphone is gone before realising that the audio is like that BTW great explanation sir
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
😂 Thanks😉
@ajinkyaawari575
@ajinkyaawari575 Год назад
Best explanation through out whole internet 🔥🔥
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
Now that's what I call the best comment through out whole internet😉
@evi5827
@evi5827 2 месяца назад
Why are the costs of TC1 O(n^2), when you multipop all n 1? wouldn't it be just one opertation of O(n), where the costs are O(1) for the whole stack? why multiply O(n) x n? Great video btw!
@PerfectHilton
@PerfectHilton Год назад
Best video out here! Thanks
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
You are most welcome☺️
@deepakgoyal3250
@deepakgoyal3250 10 месяцев назад
And he saved me
@uzairjavedakhtar3718
@uzairjavedakhtar3718 10 месяцев назад
🤩
@lol59767
@lol59767 2 года назад
Great explanation, thanks for sharing!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Thanks, Please share the channel with others :)
@mysterioustwist1894
@mysterioustwist1894 Год назад
Loved the explanation sir❤😊
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
😍
@yomamasofat413
@yomamasofat413 6 месяцев назад
so to put it simply just look at the average? which is just O(1) because it happens most of the time
@BeingAplomb
@BeingAplomb 6 месяцев назад
Yes that's the actual meaning of Amortized analysis ... Average time complexity of each operation
@trijalsharma4471
@trijalsharma4471 11 дней назад
😒
@b_01_aditidonode43
@b_01_aditidonode43 11 месяцев назад
amazing explaination
@uzairjavedakhtar3718
@uzairjavedakhtar3718 11 месяцев назад
Thanks 😊
@minhazfuad7493
@minhazfuad7493 11 месяцев назад
Thank you so much, it was really helpful...
@uzairjavedakhtar3718
@uzairjavedakhtar3718 11 месяцев назад
If it was helpful, it's worth it for me😊 Thanks for the appreciation🖤
@mikedelta658
@mikedelta658 Год назад
Thank you!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
Most Welcome😊
@enzoarguello512
@enzoarguello512 Год назад
Thank you so much!!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Год назад
You're welcome!☺️
@Abhijeetgaming274
@Abhijeetgaming274 2 года назад
next videos?
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Entire playlist link : ru-vid.com/group/PLv9sD0fPjvSHqIOLTIvHJWjkdH0IdzmXT
@sargamgupta7134
@sargamgupta7134 2 года назад
Great explanation!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Glad to know that you liked it☺️
@AshutoshKumar-lp5xl
@AshutoshKumar-lp5xl 2 года назад
clear and understandable
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Thanks😀😀😀 please share the channel if you liked it🙂
@unnatigoel809
@unnatigoel809 2 года назад
Masth
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
Thanks A Lot Unnati :)
@unnatigoel809
@unnatigoel809 2 года назад
@@uzairjavedakhtar3718 please upload potential method as well
@timz2917
@timz2917 8 месяцев назад
why was it not 2n / n +1
@trijalsharma4471
@trijalsharma4471 12 дней назад
Genuine doubt
@manishvishnu2654
@manishvishnu2654 2 года назад
💖
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 года назад
😊
Далее
Iran launches wave of missiles at Israel
00:43
Просмотров 820 тыс.
1.11 Best Worst and Average Case Analysis
18:56
Просмотров 819 тыс.
5. Amortization: Amortized Analysis
1:15:53
Просмотров 126 тыс.
Amortized Analysis
21:32
Просмотров 85 тыс.
What REALLY is Data Science? Told by a Data Scientist
11:09