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

  Рет қаралды 89,033

Uzair Javed Akhtar

Uzair Javed Akhtar

Күн бұрын

Пікірлер: 66
@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🙏👍
@siddheshshrirame6909
@siddheshshrirame6909 8 ай бұрын
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 8 ай бұрын
Thanks a lot for your acknowledgement. Really means a lot🙂
@technohelper4855
@technohelper4855 4 ай бұрын
I never comment .. but man this time I must say .. best explanation till now .. universities needs teachers like you
@uzairjavedakhtar3718
@uzairjavedakhtar3718 4 ай бұрын
Thanks a lot for your kind words...Really means a lot :) If you really feel so, share it with your university students out there😉
@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🖤
@ur_fun
@ur_fun 2 жыл бұрын
i hope, i will see u become one of the best teachers in utube. tanx a lot. keep it up
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
Thanks A Lot for this beautiful comment😊 This really made my day🖤🖤🖤
@ajinkyaawari575
@ajinkyaawari575 Жыл бұрын
Best explanation through out whole internet 🔥🔥
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
Now that's what I call the best comment through out whole internet😉
@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 😊
@Miss_YouTube_01
@Miss_YouTube_01 26 күн бұрын
Sir i watched a lot of video for this topic but didn't understand anything thank you so much sir finally understood it
@uzairjavedakhtar3718
@uzairjavedakhtar3718 22 күн бұрын
Most welcome!😊
@om7g.103
@om7g.103 7 ай бұрын
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
@PerfectHilton
@PerfectHilton Жыл бұрын
Best video out here! Thanks
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
You are most welcome☺️
@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 9 ай бұрын
What are all the n+2 operations here?
@vishvajithbalajee
@vishvajithbalajee 3 ай бұрын
hatsoff to your efforts sir, keep doing more videos on ADS.👍👍
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 ай бұрын
Sure. Thanks😊
@ayushsuryawanshi9020
@ayushsuryawanshi9020 2 жыл бұрын
Ofcourse Aman do better analysis than Asim
@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😉
@lol59767
@lol59767 2 жыл бұрын
Great explanation, thanks for sharing!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
Thanks, Please share the channel with others :)
@evi5827
@evi5827 4 ай бұрын
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!
@bandladeepika8452
@bandladeepika8452 Ай бұрын
Where i found notes sir for this topic
@bandladeepika8452
@bandladeepika8452 Ай бұрын
Sir please give link for this topic notes
@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😉
@mysterioustwist1894
@mysterioustwist1894 Жыл бұрын
Loved the explanation sir❤😊
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
😍
@sargamgupta7134
@sargamgupta7134 2 жыл бұрын
Great explanation!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
Glad to know that you liked it☺️
@b_01_aditidonode43
@b_01_aditidonode43 Жыл бұрын
amazing explaination
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
Thanks 😊
@yomamasofat413
@yomamasofat413 8 ай бұрын
so to put it simply just look at the average? which is just O(1) because it happens most of the time
@BeingAplomb
@BeingAplomb 8 ай бұрын
Yes that's the actual meaning of Amortized analysis ... Average time complexity of each operation
@minhazfuad7493
@minhazfuad7493 Жыл бұрын
Thank you so much, it was really helpful...
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
If it was helpful, it's worth it for me😊 Thanks for the appreciation🖤
@AshutoshKumar-lp5xl
@AshutoshKumar-lp5xl 2 жыл бұрын
clear and understandable
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
Thanks😀😀😀 please share the channel if you liked it🙂
@Abhijeetgaming274
@Abhijeetgaming274 2 жыл бұрын
next videos?
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
Entire playlist link : kzbin.info/aero/PLv9sD0fPjvSHqIOLTIvHJWjkdH0IdzmXT
@enzoarguello512
@enzoarguello512 Жыл бұрын
Thank you so much!!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
You're welcome!☺️
@mikedelta658
@mikedelta658 Жыл бұрын
Thank you!
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
Most Welcome😊
@deepakgoyal3250
@deepakgoyal3250 Жыл бұрын
And he saved me
@uzairjavedakhtar3718
@uzairjavedakhtar3718 Жыл бұрын
🤩
@timz2917
@timz2917 10 ай бұрын
why was it not 2n / n +1
@trijalsharma4471
@trijalsharma4471 2 ай бұрын
Genuine doubt
@unnatigoel809
@unnatigoel809 2 жыл бұрын
Masth
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
Thanks A Lot Unnati :)
@unnatigoel809
@unnatigoel809 2 жыл бұрын
@@uzairjavedakhtar3718 please upload potential method as well
@ketan9287
@ketan9287 24 күн бұрын
I found the video very helpful, but is it just me who is feeling dizzy watching it?😵‍💫
@srinivaspeethala8400
@srinivaspeethala8400 13 күн бұрын
yeah, i feel dizzy due to the f'd up audio
@manishvishnu2654
@manishvishnu2654 2 жыл бұрын
💖
@uzairjavedakhtar3718
@uzairjavedakhtar3718 2 жыл бұрын
😊
@trijalsharma4471
@trijalsharma4471 2 ай бұрын
😒
7.1 Fibonacci Heap | Properties | Introduction | Advanced Data Structures
14:20
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 8 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 63 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 14 МЛН
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Codebagel
Рет қаралды 447 М.
AMORTIZED ANALYSIS WITH EXAMPLE || AMORTIZED TIME COMPLEXITY || DAA
19:10
Sundeep Saradhi Kanthety
Рет қаралды 14 М.
Amortized Analysis
21:32
0612 TV w/ NERDfirst
Рет қаралды 86 М.
Hash Tables and Hash Functions
13:56
Computer Science Lessons
Рет қаралды 1,6 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 8 МЛН