For those who are confused when sir wrote the equation n - k = 1, so, k = n -1 if we input the value in the eq then it is become 1 + log2 + log3 + log4+ log5 + ...... as we all know log1=0 if we write, 1+0+ log2 + log3 + log4+ log5 + ......, there is no problem adding a zero in the eq. then we can replace the 0 with log1 simple, now the eq becomes 1+log1+ log2 + log3 + log4+ log5 + ......, which sir wrote in white board so there is actually no problem. Sir did it right....
@sejalyadav68527 ай бұрын
log 0 will come if we take k=n-1, which is impossible to solve...
@A2_26_Tushar_kalaskar7 ай бұрын
final ans bata, kya hai to
@himanshushah67467 ай бұрын
He did make the mistake you mentioned but the mistake lead him to add log1(an extra term which should not be added) to the equation. However, it made no difference since log1 is equal to 0 so its like adding an extra 0 to the answer. Please let me know if i am wrong
@sudhansusekhardaspritam77736 ай бұрын
@@himanshushah6746 wrong question * { 1 if n=0 }
@FITSOUL016 ай бұрын
Thanks bhai Mera sir phat gaya
@RiteshKumar-ud7bf3 жыл бұрын
Sir, at 6:25 when you equate n-k with 1 then k will be n-1 not just 1. And then the whole equation will get changed after 6:57.
@apexmousham85113 жыл бұрын
Answer will be same with same mistake 😳
@ayushsharma48423 жыл бұрын
Yess you are right
@subhayukumarbala16803 жыл бұрын
I too got stuck there thinking it'll be 2 😂
@gautamgupta71482 жыл бұрын
yes you are right but even if we write it that way we can still add 1 in multiplication within logn and answer will be same but yes it should be equal to n-1
@rahulyo.gaming2 жыл бұрын
Yaa You Got It Bro 👍😉
@LearnwithRohit-od1hw Жыл бұрын
dear sir here n-k=1 then k will be n-1 and whole equation and question will change at 6:30.
@lifeandme73603 жыл бұрын
At 7:20 of your video....sir n-k=1 n-1=k aayega...not n=k
@kuldeeptiwari18202 жыл бұрын
yeah same i was wondering i am the only on who thought that but still i am getting log 0 in equation which is not possible to solve **edit it will be start from log 2 to log n and time complexity will be same O(n log (n))
@sarbajitacharjee1195 Жыл бұрын
T(0)=1 may be the Equation
@princemaurya3165 Жыл бұрын
you are right
@ramijhasanshaik-41777 ай бұрын
TIPS: Take the two conditions as n = 0; n >0; Rest will be fine. Hope it helps you, guys. Love you sir ❤
@Forthero_J6 ай бұрын
Bro, you are saviour 🫡
@devamshah9649Ай бұрын
no need to do k = n -1 it will be like T(n-k)=T(1) which is 1 so our equation will be as follow 1+log2+log3+log4+......+log(n-1)+log(n) =1+log(2*3*4*5*...(n-1)*n) =1+log(n!) So time complexity will be O(log(n!))
@pratapsingh-mv3gg3 жыл бұрын
Happy Teachers' Day Sir. Your explanation style is really eye catching which help us to beat any level of question from any level of concepts. Thank You So much for all of your guidance and support. 🙏
@pankajpriyadarshy23653 жыл бұрын
LOTS OF THANK SIR, I WATCHED YOUR ALL(60) VIDEO OF DAA. I AM VERY GLAD TO SEE THIS. I AM VERY INSPIRED WITH YOUR VIDEO LECTURE AND DECIDE TO DO MCA COURSE. I WISH THAT YOU GUIDE ME. I ALSO WISH THAT YOU UPLOAD ALL VIDEO OF SYLLABUS OF MCA. YOUR EVERY VIDEO GIVE DEEP KNOWLEDGE AND BETTER THAN VIDEO PROVIDED BY UNIVERSITY.
@atharvanimkar65778 ай бұрын
There is one mistake in given condition everyone should be corrct it.... if n=0 if n>0 This are the correct condition given...👍🏼👍🏼
@adityasharma24423 жыл бұрын
Completed whole playlist today, thank you sir for your efforts, will donate a big amount soon.
@anugrahmasih63473 жыл бұрын
@Anna English I can share but I have done till lecture 17
@anugrahmasih63473 жыл бұрын
@Anna English But I was wondering how are you getting these lectures, these are a mix of both hindi and english ?
@observantmagic41562 жыл бұрын
I will donate after I get placement 😂
@superblitz22742 жыл бұрын
@@anugrahmasih6347 whats there to wonder lol, if you understand both hindi and english, its simple
@learncseasily33852 жыл бұрын
If u have completed the playlist then why are u here ? You should comment this on the last lecture
@904_arghya83 жыл бұрын
I don't know whether you are reading my comment or not, but wishing you Happy Teacher's Day Bhaiya. You are our Bhaiya as well as a teacher. Lots of love and respect for you, for your effort in providing us such a best courses.
@hafeezaslecturesofcomputer44273 жыл бұрын
Pls tell how n-k=1 statment is becomes n=k
@raunakgupta14752 жыл бұрын
No,it is n - k = 0
@MusicOnTopXHindi2 жыл бұрын
Approx value is taken as 1000 is approximately equals to 1001 . we cannot find the exact time taken by an algorithm to complete. And also in last we are neglecting constant for finding time complexity. So approx value is taken.
@ananya88agrawal2 жыл бұрын
Yes it's k=n+1
@ganeshkumargupta86142 жыл бұрын
@@ananya88agrawal answer mil Jai toh batana 🙂
@NavendrakumarBanjare2 жыл бұрын
@@ananya88agrawal k= n-1 😊
@priyanshisharma82973 жыл бұрын
Happy Teacher's day sir may god increase your subscriber day by day. Your way of teaching helps me to clear my concepts also when i solve the question I remember your videos it just makes easy for me to do that. Thanku sir for all your dedication and hardwork.
@rahulkiteck6922 ай бұрын
Where are you from?
@ryzenae Жыл бұрын
Confusion clear, n-k = 1, n = 1 + k k = n - 1 Agar hm n-k = 1 put krke ans. Nikale to ans. Same hi ata hai. 1 + log(n-k+1) + log(n-k+2)........ log(n-3) + log(n-2) + log(n-1) + logn aisa eq.ayega Aur isme *n-k* ko 1 se replace kr do.. To ans. Log(n!) Aa jayega
@SAKSHISHARMA-ps3sz3 жыл бұрын
Computer science ka kuch pta hi nhi tha... Itna interest se pdhaya ki hr topic ka pta h ab apse pdhkr
@utkarshtiwari85903 жыл бұрын
I haven't started studying yet, so can you please tell me does this channel has the complete course for GATE?
@musicandmelody51563 жыл бұрын
Happy teacher's day sir. Thank you so much to help us for gaining knowledge.
@codeattraction20703 жыл бұрын
Happy teacher's day 👏👏👏👏 love from Gujarat
@AnjaliGupta-op1hr3 жыл бұрын
Happy teacher's day sir✨♥️
@techkid35810 ай бұрын
Sir, at 6:25 when you equate n-k with 1 then k will be n-1 not just 1. And then the whole equation will get changed after 6:57. solution - equate n-k with 0 n-k=0 k=n
@AshmitKumar-ip9tr9 ай бұрын
If agr last tak ka part smjh nhi aaye then what to do please tell
@rupaleeranjan27833 жыл бұрын
Happy teacher's day sir You are the best teacher for CSE students...you work so hard for us Thank you so much ☺️
@yogeshmishra5658 Жыл бұрын
don't worry answer is right see explanation n-k=1 k=n-1 T(n)= 1+log(n-(k-1)) +log(n-(k-2)) +log(n-(k-3)) +log(n-(k-4))....................logn T(n)= 1 +log(n-(n-1-1)) +log(n-(n-1-2)) +log(n-(n-1-3))..................logn T(n) = 1 +log2 + log3+ log4+.........logn T(n)= 1+log(2*34*5*6*7*.......................*n) T(n)= 1+log(1*2*34*5*6*7*.......................*n) T(n)= 1+log(n!) T(n)= 1+log(n^n) (how it come see video 8.50) T(n)= 1+nlog(n) 0(nlogn)
@harshakannake1930 Жыл бұрын
if we taking log as a common then in bracket it should be 2+3+4+5+6.. isn't it
@TheMotohead10 ай бұрын
I do think the complexity will be log n as the series goes like t(1), log (2), log(3), ……….. log(n)
@abhishekjain33448 ай бұрын
the number of log terms is not fixed, it will depend on n, that's why the complexity is not logn
@ReelVibesGram2 жыл бұрын
Sir you taking the value of n=k which is wrong you take it n=k+1 so we become n-k=1. How it is possible to obtain n=k from n-k=1.
@ManpreetKaur-in6gz3 жыл бұрын
Happy teacher's day Sir... 🙏
@mohammadshahriar54267 ай бұрын
lots of love from Bangladesh.....keep up the good stuff
@gopalmaheshwari75552 жыл бұрын
Sir there is a one minstake at 6.36 min of lac.. Here u had taken a.. n-k= 1:::::: and in the next step u had taken (n=k) Which is wrong... n=k+1 aata h
@AbhiRaj_378 ай бұрын
Thanks sir
@puja4113 жыл бұрын
Happy Teacher's Day Sir 🙏❤😊
@itzmranonymous2 жыл бұрын
i have taken n-k =1 and got the same answer .😊
@adityaanand5927 Жыл бұрын
Haa in last 1 + n log n - log n and then n log n dominating so order will O(nlogn)
@SAKSHISHARMA-ps3sz3 жыл бұрын
Sir apki kya tarif kre plzz ap hi btao...??? Happy teacher day.. Or bhgwan apko hmesha age se age success de.. Or apki family khush rhe
@alt-f4gaming2222 жыл бұрын
bhai ek hi dil h kitne bar jitoge......
@abubakarakhlaq7515 Жыл бұрын
Happy teacher day Sir! and at 6:25 n=k is wrong as you said n-k=1
@kanikachouhan65579 ай бұрын
I have a doubt, I think the method you are following is iteration method & subtitution uses mathematical induction. But I too find this method easy & I understood the methodology clearly. Thanks
@AshmitKumar-ip9tr9 ай бұрын
If agr last tak ka part smjh nhi aaye then what to do please tell
@wisdomdoor771211 ай бұрын
Those who are asking about how k=n , just take n-k=1 then k=n-1 then use it in previous equation so T(n)=T(n-(n-1))+log(n-(n-1-1))+++++log n ; then T(n)=T(1)+log 2+log 3+++++log n ; T(n)=1+ log(2 3 4 5 n) T(n)=1+ log(1 2 3 n) T(n)=log(n!)
@Abir_Dutta3 жыл бұрын
Happy Teacher's Day Sir.
@allahthemostmerciful27062 жыл бұрын
Sir u are super duper awesome. I really appreciate your effort and your style of teaching .Really JazakAllah🤍
@mohitkaushik21 Жыл бұрын
Thanks sir 😊
@saptarshibose97183 жыл бұрын
sir, it can be done directly with a formula. ! anyway I love your teaching style. I learnt a lot from you. thanks for providing such contents
@S.A.983 жыл бұрын
Which formula ?
@saptarshibose97183 жыл бұрын
@@S.A.98 if problem statement like T(n-1) fx then multiply n with fx. if 2(t-1) fx then 2 power n * fx or 3(t-1) fx then 3 power n multiply fx. or 2(t-1) then 2 power n. and so on...
@hafeezaslecturesofcomputer44273 жыл бұрын
Pls isko sahe tara se explain kre not understanding
@neerukasaniaparjapati78963 жыл бұрын
Happy teacher's Day sir
@ape17603 жыл бұрын
Happy teacher's day sir 🙏
@VK_BRANDING2 ай бұрын
Adv congo for 2 millllllionn !!!!😮❤❤
@Ap__542 жыл бұрын
Sir apne n=k q lia usse to T(0) ho jara , Apko to n-1 =k lena chahiye tha na , tb T(n-(n-1))=T(1)=1 hota . Please 🙏 clarify.
@pincetoons Жыл бұрын
great job
@sundeepkumar7603 жыл бұрын
sir, i guess n-k = 1 will give k=n-1....
@debaratighatak22113 жыл бұрын
Happy Teachers' Day sir😊❤
@farahnisa54752 жыл бұрын
After equating n and k, the term T(n-k) should yield zero, won't you agree? If so, then how come it becomes one? To make the term T(n-k) equal to T(1), shouldn't we put the value of k=n-1 so that when its substituted, it becomes: T(n-(n-1))=>T(n-n+1)=>T(1)
@shubhamsukum2 жыл бұрын
yeah
@shubhamsukum2 жыл бұрын
we put n-k=1 *** -k=-n+1 *** k=n-1. we have to substitute k=n-1 not n.
@Megh_Jagtap11 ай бұрын
It is easy to understand that sir made a mistake. This mistake can be ignored and the answer can be found by taking k=n-1 by our own. Simple.
@cheena303 жыл бұрын
🌸Happy Teacher's Day to u Sir 🌸...Thnk u for your all efforts for us...Ur video lectures help us a lot🙂 Thnk u so much sir for always being there to help in live sessions also 🙃 We will always here to support u✌🏻
@dharitrisardar38233 жыл бұрын
Happy teacher's day 💐💐💐💐💐💐💐💐💐💐💐💐💐💐💐💐
@calisthenics-3 жыл бұрын
Happy teachers day to varun sir 🙏
@abhishek21072 жыл бұрын
Smasher bhaiya zindabad gate fod denge .......is baar lgta hai .
@anukriti56483 жыл бұрын
Happy Teacher's day sir ✨☺️
@dhananjaykansule31523 жыл бұрын
Happy Teacher's day Sir😍
@Deep_Nature_033 жыл бұрын
Happy teacher's day sir ji
@khabylamefan483 жыл бұрын
Happy Teachers day sir❤️
@nibeditadas48002 жыл бұрын
thank you you made day .
@nithishasaravanan17383 жыл бұрын
Happy Teacher's Day Sir :))
@pankajpriyadarshy23653 жыл бұрын
I wish that you upload video of programming language, C++, PYTHON, JAVASCRIPT, HTML. ETC.
@sahilingale89063 жыл бұрын
Thank You SO Much Sir
@Mridulmishra065 ай бұрын
Sir agar kisi question t(1) =1 wale conditions nhi mention h to kya hum apne man se maan ke solve kr skte hain?
@vanshgawra64992 жыл бұрын
I did it by using n-1 steps instead of k steps and i also got the same answer
@janakpanchal43762 жыл бұрын
n-k=1 So that K=n-1 How can possible sir n=k
@RohitRayakwar3 жыл бұрын
Sir please make video on class p and Np completeness .. please sir i am watching your video from my college starting period of time.
@snehapandey37162 жыл бұрын
Sir in this at 7:50 if n-k=1 then k=n-1 ? Right or wrong
@snehapandey37162 жыл бұрын
Sorry At 2:25
@sumitraina46152 жыл бұрын
@@snehapandey3716 yess!! I was wondering the same! And in the end log 1 also won't come but answer will be same in the last....but vo k=n-1 hoga
@gangadharamdantu96143 жыл бұрын
Happy teacher's day to our best teacher.may god bless u with all the happiness and peace in life 💐💐
@albatablays242 жыл бұрын
yhn jo aapny n-k=1 lya hy so eq me wo bhi tw put krskty hy
@sarthakjain1824 Жыл бұрын
Nice
@deepakgautam69042 жыл бұрын
6:25 n-k= 1
@bite091_jamee72 жыл бұрын
sir u r great
@shahinparween34963 жыл бұрын
Happy teacher day 🙏🙏
@ashishkumarsarma53592 жыл бұрын
Sir how n-k= 1 became K=n ? It must be n= 1+ k right?
@kunalmishra48112 жыл бұрын
can we take this steps n-1 instead of k?
@sahilsaraogi5189 Жыл бұрын
Did you got the answer?
@husanpreetsingh5093 жыл бұрын
n-k=1 ,then k=n-1 but you write k= n
@hafeezaslecturesofcomputer44273 жыл бұрын
Me b yehe pooch rahe how it becomes ?
@learn2know793 жыл бұрын
the same confusion is also here.
@gursewakdhillon82883 жыл бұрын
@@hafeezaslecturesofcomputer4427 that was just typo....use your common sense....
@jaswanthnaik50335 ай бұрын
By mistake n-k=0 it is
@summaiyalateef59132 жыл бұрын
Plz anybody tell me the Answer...As sir took the value wrong at 6:23 as n-k=1 but acc to me...it's K=n-1..💁🏻♀️
@A2_26_Tushar_kalaskar7 ай бұрын
tiem complexcity = 0(n^2 logn) , hai kya is it correct
@atifhassan80983 жыл бұрын
sir how to solve recurrence relation by tree method? plz upload video on that
@RelaxTube_Official2 жыл бұрын
Sir 6:25 ke baad ghanta nhi kuch samajh aaya... T(n-n) = T(1) kaise hua??? n-k=1 => n=k kaise hua???
@rahultiwary4257 Жыл бұрын
Happy Teacher ''s day
@Priankadey2011 Жыл бұрын
If the value of n-k = 1 then how it is possible that the value of k = n?? It has to be k = n-1
@vanditasharma3682 жыл бұрын
if possible teach us DIP AND CLOUD
@sayandatta3898 ай бұрын
Question is wrong..... if n=0 & n>0 then n-k=0 => k=n
@anurag31502 ай бұрын
I agree
@adddddi7819 ай бұрын
n-k=1 then k=n-1?
@kaymylon97112 жыл бұрын
6:32............if n-k=1 then how come n=k................it's blowing my mind
@mohammadanassheikh14462 жыл бұрын
KING
@AshmitKumar-ip9tr9 ай бұрын
If agr last tak ka part smjh nhi aaye then what to do please tell
@IAMLEO-hb4zbАй бұрын
n-n=0 why it was assume that 1 ,example 5-5=0 not 1
@devenpatel46842 жыл бұрын
If n-k =1 So n =k-1 nai?
@sambhavgupta1203 Жыл бұрын
happy teachers day
@sratnamanjari2443 жыл бұрын
Happy Teacher's day to Our Varun Sir and Naina Mam ..... 🙏.... Thanku Mam and Sir for all your efforts,hardwork,knowledge, dedication and guidance....You are my inspiration Sir 🙏 ...Need your blessings Mam and Sir 🙏
@RASmi-s_CREATION7 ай бұрын
at 6:25 k=n-1
@ravanad42452 жыл бұрын
k should be n-1 sir .... and we will still get the same ans... because multiple 1 to anything doesn't gonna change our ans .....here its a mistake
@Obnoxious_253 жыл бұрын
This is easy 😎
@harshgupta316710 ай бұрын
value of k will be n-1
@akatachadar28463 жыл бұрын
Sir plz add videos for k map also in digital
@mrkpbhati9 ай бұрын
sir n-k = 1 k=n kese aayega ? n-k = 1 n = 1+k hoga i think sir can you explain me k =n
@AshmitKumar-ip9tr9 ай бұрын
If agr last tak ka part smjh nhi aaye then what to do please tell
@adityatiwari95355 ай бұрын
how it is possible if n-k =1 then k=n how it is possible sir??
@Banditxam4 Жыл бұрын
n-k =1 hua to k = n-1 hoga na or am I dumb
@ManishRaghavLeet Жыл бұрын
Is video mei mistakes h n=k? value pr Please correct it sir.
@S_Bhagat-h3q3 жыл бұрын
happy teachers day
@anjaliarya653411 ай бұрын
Actually n = 0 & n> 0. question is slightly wrong
@swayamawasthi40302 жыл бұрын
N-K =1 will be N = K-1 AS N != K. THE EQUATION WILL BE MODIFIED AFTER 6:56
@SidsAnalysis Жыл бұрын
You also written Wrong Right 👉 n = k + 1 and k = n -1