1.5.1 Time Complexity #1

preview_player
Показать описание
Finding Time Complexity of Different kind of snippets

Courses on Udemy
================
Java Programming

Data Structures using C and C++

C++ Programming
Рекомендации по теме
Комментарии
Автор

I used all your videos when I was in the university studying for my Computer Sc degree. I'm working now and I just come back here to smile at how amazing of a teacher you are. Stay blessed!

achajackson
Автор

I just love how he stops for a while after explaining something and looks at the camera like saying: "Did you understand, you fool?" :D

pointerish
Автор

When you pause after a statement, it feels like I am actually physically sitting in the class and you are giving me a few seconds to grasp the information and proceeding after I have said Yes Sir! This feels so real! THANK YOU for doing this :) God bless you.

ansuman
Автор

Sir didn't used music, any intro didn't waste any time, straight to the point. And his way of explaining I find it simply the best. I'm currently doing his udemy DSA and I find his way of teaching and explaining so easy. Huge respect for him.

masfiqmahmud
Автор

So beautiful explained. I am preparing fir exams & interview watching your videos.
A little mistake at 5:30
f(n)= (n^2 + n) /2

SunilSamantaSinghar
Автор

Honestly everybody commented so accurately my feelings are exactly the same as every body in the comment section. I wish I could have got a teacher like you sir, when I was still in my college which ended the last month. Completed my graduation but this 'Time complexity' was not something which I understood for all my graduation years. But then discovering your channel and this lecture series ... make me feel blessed . Thanks a lot

ankitabasu
Автор

I love it when you stare into my soul after finishing an answer

esketirito
Автор

For those who are New here, I would like to say that this Teacher here, have helped millions of students to learn DS and grab product based companies... A Moment of Respect...

Bikashics
Автор

I’m from Nigeria and I watch all the ads just to As a way of saying thank you 😂❤️

xteerfnie
Автор

This teacher is far better than the IIT teachers, He has a great ability to teach complex things In very simple way.

indiancuriousvoice
Автор

The way he stops and look is a teacher look. Sir you nailed it...

shubhamsaini
Автор

"Let us Analyze" every time whenever sir says this, there is a curiosity in my mind. Awesome Explanation

AnkitKumar-gest
Автор

Best teacher I had ever seen...its like u born for teaching..
keep going sir..👍👍

acj
Автор

corona epidemic came when I just begun my major😢 your tutorials are really helping me thanks sir. You are great man👌

simbamulenga
Автор

I got a job sir. It was only possible because of your easy-to-understand explanation. I can remember from my 2nd year I actually was able to understand the concept of t.c. from these videos. Your Udemy's course on Data Structures was also crucial in building the base. Thanks for your teaching.

ilovemisachan
Автор

I love the way Mr.Abdul bari teaches. He makes things understandable. His courses on C++ (Udemy) prove these traits.

codingwithelhacen
Автор

7:45 for those who were lost like I was when he immediately goes into setting P = k(k+1)/2... Look up the "Gauss Addition Trick". Essentially this is a recognized addition sequence (1+2+3... etc) that is represented by that equation. He's assuming we know how he got there, or forgot to explain it.

VirulentVendetta
Автор

What a Teacher! What a Teaching! In order to help my son understand O(n) fully well, I was searching for some videos. I was not satisfied with any of them until I found this video [and the series of videos on O(n) to follow this]. Mighty helpful - all of the videos in this series. My son (CSE first year) very quickly understood O(n) to the hilt. Once again, I reiterate: "What a Teacher! What a Teaching!" Pranams ever.

Azhagi-Transliteration-Apps
Автор

Your channel is a hidden gem! I came from a different background and now studying computer science. I was having really hard time understanding these concepts in algorithm. Your videos just saved me. Big thumbs up! Keep bringing more videos like these. All the best to your channel. :)

Noushin
Автор

*Key Takeaways:*
- time complexity analysis is basically trying to find out *how the number of instructions/steps required changes as a function of the input size*
- you do this by basically seeing how many times each instruction/step of the algorithm/code executes for each input
- if there is an instruction inside a for loop, and the for loop goes from 0 to n (n being the size of your input), then the instruction gets executed n times...this is pretty straightforward
- if there is a for loop nested within a for loop, and both loops go from 0 to n, then the instruction in the *nested* loop will be executed n x n times. This is because the inner loop is executed n times, and each time the inner loop is executed, the instruction in it is executed n times, so in total, that instruction is executed n by n times
- if you have an outter for loop that goes from 0 to n, but the inner for loop goes from 0 to i of the outter loop, let's take a look at how many times the inner loop code gets executed for each iteration of the outer loop. During the first iteration of the outter loop, the code in the inner loop gets executed 1 time (from 0 to i, which is 1). During the second iteration of the outter loop, the code in the inner loop gets executed 2 times (from 0 to i, which is now 2). During the third iteration, the code in the inner loop gets executed 3 times (from 0 to i, which is now 3), and so on. You basically have a little triangle here, with height n, and base n. To find the area, you do (n x n / 2)

I may be off by 1, but I wanted to keep the explanation simple.

Thanks again for the amazing videos

Abdullah-mgzl