Those whoever commented as good, amazing must be this mam's students...she is just creating hell of confusion about this subject...first try to learn yourself properly
time complexity is wrong in the example Sum = Sum + A[i] ; will only take 1 cost and the total of this will be only (n) . and the total complexity of algorithm will be (3n+4)
It's asymptotic analysis, meaning we care about the trend as n approaches infinity. In your case, if n was infinity, the +2 wouldn't really impact the overall trend, so for simplicity we just leave it out.
each of the numbers under cost multiplied the entities under repetition corresponding to same postion then add. example 1*1 + 1(n+1) + 1*n = 1 + (n+1) + n = 1 + n + 1 + n = 2n + 2
Those whoever commented as good, amazing must be this mam's students...she is just creating hell of confusion about this subject...first try to learn yourself properly
time complexity is wrong in the example
Sum = Sum + A[i] ; will only take 1 cost and the total of this will be only (n) .
and the total complexity of algorithm will be (3n+4)
if loop has assignment and condition in it why is time complexity not n+2?
Amazing. Best video i watched so far on algorithms
calculating the time complexity makes no sense at all.......
thanks a lot mam
Time complexity wrong find kiya h
The total amount time requred by an alg to cmplt itd execution
previous video does not contain space complexity
if loop has assignment and condition in it why is time complexity not n+2?
It's asymptotic analysis, meaning we care about the trend as n approaches infinity. In your case, if n was infinity, the +2 wouldn't really impact the overall trend, so for simplicity we just leave it out.
@@piercepowell9695 thanks
what is calculating the cost in algorithm,i didnt understand
I think it's wrong how did you get (2n+2)
Instead of (6n+6). If correct so Tell me please .. ? 9:24
each of the numbers under cost multiplied the entities under repetition corresponding to same postion then add. example 1*1 + 1(n+1) + 1*n = 1 + (n+1) + n = 1 + n + 1 + n = 2n + 2
Brilliant teaching ..make more videos
I think aeroplane passes from her home 🏡
Nice 👍
Love From Pakistan
i didnt understand repetation 1+(n+1)+n
very impotren tutorial
Mam we need notes please provide notes
Bohot galat padhaya hai mam band karo ye sab
mood uparse kharab hua
Tq
Need to improve
Olgorithm nahi madumji Algorithm 😂😂😂😂😂
Putting dumb and sensless videos on the youtube....first remove DAA playlist from your channel.
🙄🙄🙄🙄🙄🙄🙄🙄🙄🙄
stop putting videos plz
If it doesnt benefits you ..it benefits others .
stop teaching and start cooking
Olgorithm nahi madumji Algorithm 😂😂😂😂😂