Calculating Time Complexity | Data Structures and Algorithms| GeeksforGeeks

  Рет қаралды 863,137

GeeksforGeeks

GeeksforGeeks

Күн бұрын

Пікірлер
@michaelzumpano7318
@michaelzumpano7318 4 жыл бұрын
Bravo, that was the clearest yet most complete 8 min intro to complexity on KZbin. Hey, you found a good teaching algorithm - balance time and headspace efficiencies. Props.
@thembalamimsimango8993
@thembalamimsimango8993 3 жыл бұрын
You explained ten times better than my lecturer did in just 8-minutes, thank you
@kevindsa57
@kevindsa57 2 жыл бұрын
After 4 years of Engineering in Computer Science this was the best explanation of Time Complexity thank you !!
@I_am_FRANCO
@I_am_FRANCO Жыл бұрын
engineering in cs 🤔
@emrahcansahinoglu2342
@emrahcansahinoglu2342 2 ай бұрын
@@I_am_FRANCO In some countries like mine (Türkiye formerly Turkey) the major called Computer Engineering is identical to Computer Science in both curriculum and concept. However, we just took a couple of more courses (in my opinion) from Electrical and Electronics Engineering regarding to the Hardware. Even my degree is given as B.S. in Comp. Eng. I guess he may have a similar situation.
@meBZcookie
@meBZcookie 4 жыл бұрын
6:04 Time Complexity for Sorts
@stephenmusau2394
@stephenmusau2394 28 күн бұрын
The simplest yet most comprehensive explanation that I have come across. Well done sir!
@W3Fi
@W3Fi Жыл бұрын
Incredible, I find myself at a loss for words to adequately express the precision and clarity of the elucidation.
@AV-mb8lv
@AV-mb8lv 4 жыл бұрын
Explains O(1), O(n), O(n^2). Then says, "now let's look at the scale of diff. complexities O(1), O(log n), O(n), O(nlog n), O(n^2)" Wait, where are the missing bits? "Now you'll be able to calculate all time complexities of the algorithms"
@himanshukandwal8710
@himanshukandwal8710 3 жыл бұрын
for(int i=0; i
@jqn8361
@jqn8361 3 жыл бұрын
@@himanshukandwal8710 O(n), You're going through all the i elements of the list (this is repeated n times + 1 time, just before the for loop breaks), which is a function of n, and assigning them to an integer value, which takes constant time. Searching through the linked list also takes constant time. You're also printing each element, which also takes constant time. So you have T(n) = c1*(n+1) + c2 + c3 + c4 = O(n)
@biikaaa.6540
@biikaaa.6540 3 жыл бұрын
@@himanshukandwal8710 O(n)
@harshitraj953
@harshitraj953 3 жыл бұрын
@@himanshukandwal8710 hllo,, sir,, Don't act 😎Smart sir
@outsiderthevoid8780
@outsiderthevoid8780 Ай бұрын
this guy taught me more in 8 minutes than my professor did in 3 weeks love u bro❤
@bhaskarnarayan2109
@bhaskarnarayan2109 3 жыл бұрын
You could also mention the complexities like O(logn), O(nlogn) etc. and the concepts of Master Theorem. It would be better.
@stith_pragya
@stith_pragya 7 ай бұрын
Thank You So Much for this wonderful video......................🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@alekhyarao5431
@alekhyarao5431 9 ай бұрын
Excellent explanation and easy to understand. Thank you!
@ohmegatech666
@ohmegatech666 Ай бұрын
Good video. Quick correction at 5:48, O(n^c) is not exponential, it's polynomial since the exponent is a constant, like O(n^2) or O(n^3). Exponential is when the variable itself is in the exponent like O(2^n)
@WitchelsArtSchool
@WitchelsArtSchool 9 ай бұрын
best video explaining complexity. the complexity of complexity have been resolved here :D
@jerrybear5866
@jerrybear5866 Ай бұрын
Thank you , you saved me for exam today.
@aleksandrakja6792
@aleksandrakja6792 9 ай бұрын
You explained this misery better than my teacher ever could
@LucusJanny
@LucusJanny Жыл бұрын
It was the best video on KZbin about Time complexity. Best wishes for you bro
@mohammedghabyen721
@mohammedghabyen721 4 жыл бұрын
Best explanation, thank u
@laawuni
@laawuni 3 жыл бұрын
Best so far. you saved me
@twinkleshaw693
@twinkleshaw693 Жыл бұрын
Best video ever watched ❤️
@ankishgupta1517
@ankishgupta1517 4 жыл бұрын
Perfect explanation...plzz upload more videos on complexities... 👌
@ObsessedMee
@ObsessedMee 3 жыл бұрын
This is called clear concept 🙌✨
@meghaadikarinayake7067
@meghaadikarinayake7067 9 ай бұрын
Thank you very much!!!!❤
@meowrice
@meowrice 3 жыл бұрын
thanks! i finally understand bigO notations! the last part also is a big bonus for me. thank you!
@Tauhid214
@Tauhid214 Жыл бұрын
I appreciate your work. How about the for loops: for(i=1, i
@Millii2703
@Millii2703 Жыл бұрын
O(n^2)
@floki6939
@floki6939 3 жыл бұрын
Precise illustration. Thank you
@debsankarpal763
@debsankarpal763 Жыл бұрын
Wonderful! Best explanation in 8 minutes
@LilJollyJoker
@LilJollyJoker 11 ай бұрын
Thank You!
@srichandana5122
@srichandana5122 3 жыл бұрын
very clear and understandable .... thank u for ur vedio
@mahendrasahani9148
@mahendrasahani9148 10 ай бұрын
thank you, very good teaching algorithms
@kmishy
@kmishy 3 жыл бұрын
Simple and great content. I wonder how my prof taught
@kmishy
@kmishy 3 жыл бұрын
As time moves 💕
@farzamafifi2257
@farzamafifi2257 3 жыл бұрын
Evaluate single-core performance for integer computation. Perform two experiments: with task bound to the APP core and separately to the PRO core. Observe if there is a difference in measurements. Propose an algorithm that is able to generate a complexity of integer computation observable and measurable. Perform at least 10 measurements for each experiment. Consider using parts of code for Dhrystone benchmark its is my task is any has source code for in c ++ cause have to run in vrel
@harshitraj953
@harshitraj953 3 жыл бұрын
??? Ffff
@swapnildadamode662
@swapnildadamode662 3 жыл бұрын
Man! You're the best! This is what i need
@ece547teamsioux5
@ece547teamsioux5 4 жыл бұрын
Great efforts. Thank you:) Regards from USA
@subbusharma3990
@subbusharma3990 4 жыл бұрын
Thank you for this Regards from Russia
@msnraju97
@msnraju97 2 жыл бұрын
Very good explanation, Learned in 10mins Indian Engineer's lives depend on GFG. without it IT industry will fall
@hashantha_lk
@hashantha_lk Жыл бұрын
Thanks, that was the most enlightening explanation it to complexity after lot of confusing video explanations on YT. You are the best !
@AdeniranAbisolaAbiwax
@AdeniranAbisolaAbiwax 2 жыл бұрын
This is the best explanation i have come across so far
@aladdinalswaifi9655
@aladdinalswaifi9655 2 жыл бұрын
Well done Very clever and clear explanation Many Thanks
@josephbermudez9533
@josephbermudez9533 4 жыл бұрын
for 4:10, it is O(2n). Not O(n) Great video, thanks!
@BigYous
@BigYous 4 жыл бұрын
you drop the constants for big O
@resep1234
@resep1234 4 жыл бұрын
@@BigYous but if you drop the constants it should still be n+n which is 2n
@arjunjain7773
@arjunjain7773 4 жыл бұрын
You don't use constants for bigO I don't know why... It's stupid but that's just how it is
@ognimoddd
@ognimoddd 4 жыл бұрын
@@arjunjain7773 No, it's not stupid. The constants don't affect it as input gets bigger so it is useless to keep
@shawmcinroy472
@shawmcinroy472 4 жыл бұрын
lepke 2 is a constant...
@DaBaSoftware
@DaBaSoftware 2 жыл бұрын
Thank you for the resource!
@jamesstark4136
@jamesstark4136 4 жыл бұрын
Thanks! this helped a lot for my CS 211 class.
@anonymoustravelvidz
@anonymoustravelvidz 2 жыл бұрын
thank you, very helpful video.
@studentbengal4043
@studentbengal4043 3 жыл бұрын
Best tutorial ever on this topic... Thanks
@neerajmahapatra5239
@neerajmahapatra5239 3 жыл бұрын
You are very clear and easy to understand. Thanks...😍😍😍😍
@danialsiddiqi635
@danialsiddiqi635 3 жыл бұрын
Thank you for this video.
@pradeepsinghrajput9676
@pradeepsinghrajput9676 3 жыл бұрын
Really to the point and efficient explanation. Kudos
@matteooccello491
@matteooccello491 3 жыл бұрын
Thanks for the video! It was clear and really practical :)
@manishjoshi4989
@manishjoshi4989 4 жыл бұрын
one doubt in sequence time complexity you described c1 + c2 n + c3 n = BigO n time complexity ( doubt is after removing constant from equation why n + n is not 2n)
@firdousanjum7893
@firdousanjum7893 3 жыл бұрын
2 is constant so remove it. It will now b o(n)
@lakshmibonala2813
@lakshmibonala2813 2 жыл бұрын
How c1+c2n+c3n = O(n)?? Is it O(2n) by removing constants.
@Sanatani_kanya_
@Sanatani_kanya_ Жыл бұрын
C1+n(C2+C3)
@notnemeziz
@notnemeziz 2 ай бұрын
O(2n) and O(n) are the same thing....O here stands for order of...so 2n, 3n or any cn is an order of n ie O(n)
@shreyankraia9762
@shreyankraia9762 4 жыл бұрын
This video explains only O(1),O(n) and O(n^2) Don't waste your time if your looking for other time complexity
@AhmedAli-kf2wg
@AhmedAli-kf2wg 3 жыл бұрын
I really appreciate the way you teach us. Thanks a lot sir : >)
@mathwithmathu1755
@mathwithmathu1755 2 жыл бұрын
Really superb and very useful. Very good explanation...
@neyso_dl9810
@neyso_dl9810 9 күн бұрын
I knew that Indians where the best explainer
@GGanzolo
@GGanzolo Жыл бұрын
Really good introduction of time complexity. Thank you!
@infi-tech3808
@infi-tech3808 10 ай бұрын
I believe there was a mistake on 4:23: The time complexity for this sequence of loops would be O(n) + O(n), which simplifies to O(2n) not 0(n)
@heycalvinnn
@heycalvinnn 10 ай бұрын
You remove the constant in this case the 2 in 2n so you would be left with O(n)
@pomegranate8593
@pomegranate8593 4 жыл бұрын
when u said welcome to video i felt rly welcomed thank u my friend! also very helpful video!
@YeabselamKassaye
@YeabselamKassaye 9 ай бұрын
😂😊😊😊😊😊😊
@jhonbhai8943
@jhonbhai8943 3 жыл бұрын
I was too much Dived into his Teaching .That I heard someone sparking gas Stove lighter at 1:34😂
@shreyapandey1423
@shreyapandey1423 Жыл бұрын
Best lecture 😊
@LeelaseshuKumar
@LeelaseshuKumar 3 жыл бұрын
Thanks for the explanation of time complexity. But you missed log n and n log n
@saphalvecham5539
@saphalvecham5539 Жыл бұрын
Wonderfully put
@AbdurRahman-op8zn
@AbdurRahman-op8zn Жыл бұрын
Excellent ! Thanks a lot.
@rahulmajumdar5525
@rahulmajumdar5525 2 жыл бұрын
Thank you for the great explanation straight to the point.....
@sumantabanerjee9728
@sumantabanerjee9728 Жыл бұрын
for(i=0; i
@ryanmckenna2047
@ryanmckenna2047 3 жыл бұрын
Thanks that video was incredible...your incredible!
@956zombie956
@956zombie956 4 жыл бұрын
The best !
@seemarani2403
@seemarani2403 2 жыл бұрын
Awesome explanation👌👌
@hinaafzal4348
@hinaafzal4348 2 жыл бұрын
Such a good way of teaching Very well done 👍👍👍
@atharva..deshmukh
@atharva..deshmukh 4 жыл бұрын
Finally, I got something that I wanted!!
@johndavies729
@johndavies729 2 жыл бұрын
Really well explained. Thank you!
@marjoriejetajobe512
@marjoriejetajobe512 3 жыл бұрын
Thanks, I learned a lot!
@sagarchawla4926
@sagarchawla4926 3 жыл бұрын
Smooth ✨
@amrutapatil1417
@amrutapatil1417 4 жыл бұрын
simple and sweet!
@bhagirathsinhmakwana6085
@bhagirathsinhmakwana6085 3 жыл бұрын
Hey priti !!
@bhagirathsinhmakwana6085
@bhagirathsinhmakwana6085 3 жыл бұрын
😘😘😘
@JPN-bx3yd
@JPN-bx3yd 4 жыл бұрын
This is a great explanation.
@ilyas1569
@ilyas1569 Жыл бұрын
I understand the topic, thanks :)
@padigapatinarmada9729
@padigapatinarmada9729 3 жыл бұрын
Simply superb
@JamesBrodski
@JamesBrodski 3 жыл бұрын
Great video. Thank you so much! Very helpful
@yaro_05
@yaro_05 Жыл бұрын
Very nice. Thanks
@martinnieva8484
@martinnieva8484 2 жыл бұрын
This was a wonderful introduction! Thank you
@sheikhjabed3967
@sheikhjabed3967 4 жыл бұрын
Very Helpful.Thanks a lot
@gangadharaswamy8856
@gangadharaswamy8856 3 жыл бұрын
I think for 3 sequential statements time complexity is 2n+1
@ishika6945
@ishika6945 Жыл бұрын
hey can you tell me why in 4:13 its O(n) and not O(2n) since we are adding na...i do have doubt here. i will be highly obliged if u do reply. thankyou
@gaminghub23
@gaminghub23 Жыл бұрын
@@ishika6945 constants aren't important and are ignored in time complexity. It would not impact much or any
@gangadharaswamy8856
@gangadharaswamy8856 Жыл бұрын
​@@ishika6945 c1+c2n+c3n take common factor here n is common so we get =c1+n(c2+c3) Ignore constants c1, c2, c3 Then we have "n" remains There fore time complexity will be 0(n)
@gangadharaswamy8856
@gangadharaswamy8856 Жыл бұрын
​@@ishika6945 c1+c2n+c3n =c1+n(c2+c3) Ignore constants c1, c2, c3 Then we have "n" remains There fore time complexity will be 0(n)
@Edit-your-self
@Edit-your-self Ай бұрын
2x speed better to understand
@Reacher1998
@Reacher1998 3 жыл бұрын
Helped a lot, great video 🔥
@kanishkaralasi7408
@kanishkaralasi7408 2 жыл бұрын
Wonderful explanation! You're the best 💯
@Umerele1
@Umerele1 Жыл бұрын
man no matter how much i focus i can't understand time complexity 😥
@cschiud5571
@cschiud5571 2 жыл бұрын
dog, the prof explained that in like one every week for 3-4 weeks and i just understood it better here after 8 minutes :D
@dusmannalinwad
@dusmannalinwad 2 жыл бұрын
short and great..!!
@gauria6688
@gauria6688 Жыл бұрын
Please make a video on space complexity
@shouryaverma6313
@shouryaverma6313 4 жыл бұрын
ohh finally I found what I wanted thanks a lot sir
@haidermunir9341
@haidermunir9341 3 жыл бұрын
So I am here! Thank you FAST-NUCES.
@AYESHAZAMURD-s4p
@AYESHAZAMURD-s4p Ай бұрын
Sir what if in sequential statement the time take by each statement was n+n^2 + n^ 3 then what would be the total Time complexity...?
@amalkrishnas1696
@amalkrishnas1696 Жыл бұрын
Thanks for the video
@akashp4863
@akashp4863 2 жыл бұрын
Thanks man
@faizanyounas4799
@faizanyounas4799 8 ай бұрын
kamal boss
@hi-tk4hu
@hi-tk4hu 3 жыл бұрын
very good explanation and easy for beginners to understand thank you❤️
@divinegeorgeninan5822
@divinegeorgeninan5822 2 жыл бұрын
Thank you❤
@swanandjoshi9993
@swanandjoshi9993 Жыл бұрын
Thank you
@MsAdeel66
@MsAdeel66 3 жыл бұрын
i love u dude.
@code2compass
@code2compass 6 ай бұрын
How is the sequential O(n)? Does it add up all together? I thought it should be O(2n)
@no_one4video
@no_one4video 4 ай бұрын
good video
@krishnavar7219
@krishnavar7219 Жыл бұрын
great work
WHAT IS ARRAY? | Array Data Structures | DSA Course | GeeksforGeeks
9:48
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 518 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 35 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 117 МЛН
1.5.1 Time Complexity #1
10:08
Abdul Bari
Рет қаралды 2,4 МЛН
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Big O Notation, Time Complexity | DSA
21:17
Telusko
Рет қаралды 80 М.
Hash Tables and Hash Functions
13:56
Computer Science Lessons
Рет қаралды 1,6 МЛН
Understanding the Time Complexity of an Algorithm
24:59
Neso Academy
Рет қаралды 52 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН