Recurrence Relation for Decreasing Function Example : T(n)= T(n-1) +n Courses on Udemy ================ Java Programming www.udemy.com/... Data Structures using C and C++ www.udemy.com/... C++ Programming www.udemy.com/...
Пікірлер: 352
@emelyloria74675 жыл бұрын
Teaching is a talent!! You're one of the best teachers I've known. I should have found your channel before.
@wirito5 жыл бұрын
I wish I had found this channel before I took algorithms. I would have aced everything :)
@user-wc1sm8cj8s3 жыл бұрын
mw too
@m7mdarwani9643 жыл бұрын
For Calculus, we have Prof. Leonard & for Algorithms, we have teacher Abdul Bari. Thank God
@fritz66002 жыл бұрын
Indeed. Haha.
@SwatejTech Жыл бұрын
For linear algebra we have Gilbert Strang.
@shreya-tf5go Жыл бұрын
🙂🙂
@cocaine4youu Жыл бұрын
Prof. Leonard saved my undergrad calculus!!!
@cancali10 ай бұрын
Do you have recommendations for Physics (1&2) and Circuit classes? I CANNOT deal with these..
@michaelekoka32635 жыл бұрын
Excellent teacher. As he said, adding the n gives 2n-1, 3n-2, etc, making the pattern a bit less obvious and the expression a bit more difficult to solve. But sometimes we have to live dangerously, so here we go: T(n) = T(n-1) + n T(n) = T(n-2) + 2n - 1 T(n) = T(n-3) + 3n - 3 T(n) = T(n-4) + 4n - 6 ... T(n) = T(n-k) + kn - [(k-1) + (k-2) + ... + 3 + 2 + 1] Assuming n-k = 0; k = n T(n) = T(0) + n² - [(n-1) + (n-2) + ... + 3 + 2 + 1] Isolating the expression in brackets [(n-1) + (n-2) + ... + 2 + 1] We know that n + (n-1) + (n-2) + ... + 2 + 1 = n(n+1)/2 Taking off n from both sides we get (n-1) + (n-2) + ... + 2 + 1 = (n(n+1)/2) - n which resolves to (n(n+1)/2) - 2n/2 => (n(n+1) - 2n)/2 => (n(n+1-2))/2 => n(n-1)/2 Plugging it back in the equation in its new form T(n) = T(0) + n² - [n(n-1)/2] Removing the brackets and swapping the sign T(n) = T(0) + n² + n(1-n)/2 T(n) = 1 + (2n² + n(1-n))/2 T(n) = 1 + n(2n+1-n)/2 T(n) = 1 + n(n+1)/2
@ajaypanthagani59595 жыл бұрын
its T(n) = T(n-3)+3n-3 I think
@michaelekoka32635 жыл бұрын
@@ajaypanthagani5959 Sequence is indeed 1 3 6 10... Good catch, thanks!
@neru1091 Жыл бұрын
I would like to ask, where did 2n^2 came from after removing and swapping the sign? did you just plugged in a constant c to get n(n+1)/2?
@Usertyspr3 жыл бұрын
Greatest teacher of Algorithms . Even my college teacher(dsa) first watchs your videos the he teaches us .....He completely try to copy but couldn't .
@Mlakshman-w9k8 ай бұрын
unique art of abdul bari sir..
@HeerModi-vv1jm9 күн бұрын
So relatable 😂😅
@ravigupta42524 жыл бұрын
Before finding your videos, I was very scared of CSE subjects but now I m becoming hero in algorithms 👍
@AkibHussain2 жыл бұрын
Did you got placed bro?
@amberpradhan24844 жыл бұрын
Hello Sir, You are the best teacher so far. God bless you and your family. Thank you for sharing your knowledge which is helping us a lot.
@sarfarazkhanbiradar5444 жыл бұрын
I have started admiring you Abdul !!! Wish every teacher/instructor be like you. Thank you
@SadiaAmin-u4qАй бұрын
Sir i took DAA course two times and failed both times and just couldn't understand this subject at all, i came across your playlist and it made my life so much easier. i thought i just couldn't understand this subject and felt really hopeless. thankyou so much for this amazing playlist, you are truly a gem.
@knarice3 жыл бұрын
I have passed my data structures course by these lectures and now finally understanding algorithms. Thank you very much
@mohammedal-khulaifi76553 жыл бұрын
best algorithm teacher in the world
@ishaqbhat8003 жыл бұрын
The way u have delivered it..... really made it very easy to understand.that is the beauty lies in this lecture.
@coderopes29835 жыл бұрын
Study is beautiful with u sir✌️👍🏻✌️
@elitesquad82313 жыл бұрын
Teaching is an ART and you are the ARTIST 🔥🔥🔥🔥
@erikadistefano75824 жыл бұрын
There should exist more people like you in the world! Thank you
@mahimsd76456 жыл бұрын
one of the best lecture on Algo... I HV ever listened........
@priyankamanna45504 жыл бұрын
Your teaching skill is super. I really understand each and every thing you taught and my concepts are really cleared out after watching this.. I hope you make more such video on programming concepts .😀
@africanhope14404 жыл бұрын
This is the best tutorial I have ever watch on youtube.
@rathnaprabuayyappan31172 жыл бұрын
Teaching is an art and abdul sir ,you are an artist of it. Cool, calm and composed teaching!!!!
@_VIREN Жыл бұрын
kuch samjh nahi aaraha bro \
@alexpena99274 жыл бұрын
WOW three lectures I couldnt understand, then this guy comes along and I understand it in 3 minutes.
@noahsim99762 жыл бұрын
When you said "Hello friends" at the beginning, I couldn't help but smile.
@ryzurrin3 жыл бұрын
You good sir have just expanded my brain and my wisdom, thanks for the great lessons!
@thesigma377910 ай бұрын
sir you are best, with best explanation i got till now. i was never understanding these algorithms because nobody actually knew it completely and never explained them fully. so i always cramed them , which i never like😂. Thank you a lot for keeping and incresing my interest in programming😊.
@pedronieto15849 ай бұрын
Yessss this is just what I needed. Thank you Prof Bari!
@dmike4real4963 жыл бұрын
This man's breathtaking!
@souravbhattacharyya82284 жыл бұрын
You have a natural way to explain these things. Exceptional videos. Would like to learn OS or python, java from you. Thank you.
@anishkumargiri94902 жыл бұрын
Sir the way you teach every concept get's clear.....thanks a lot sir you are making future of many students bright...keep going sir
@shreemaan-abhishek3 жыл бұрын
Here he is! The man, the myth, the legend!
@pratapujjwal46423 жыл бұрын
What a coincidence bhaiya!! I was also watching algorithm and you too
@shreemaan-abhishek3 жыл бұрын
@@pratapujjwal4642 :D
@kartech113 жыл бұрын
All colleges that teach data structures should fire their hopeless lecturers and just play this video. Immense respect for Abdul Bari
@RKNancy6 жыл бұрын
Thank you sir. Your videos will help me pass this examination. Thank you hundred-fold.
@wirito5 жыл бұрын
8:50 when you go to office hours and the professor has already explained it twice and you say: I still don’t get it professor.
@deepanshuchoudhary45985 жыл бұрын
I thought you would slap me :p :p @ 8:54
@joynaew11 ай бұрын
You deserve nothing but happiness and great things in your life! I cant thank you enough!
@abhishek79696 жыл бұрын
learning a lot from ur videos
@unleash_vlogs5 жыл бұрын
Sir you are very accurate and to the point, and also I love to watch your videos as you are accurate with your way of teaching....
I really initially thought that the answer should be O(n) as there is one for loop. I was clearly wrong. Thank you sir for explaining this soo elegantly and making us better students
@codetogether24x73 жыл бұрын
yes sir you teaching method is very good
@tictacricrac8 ай бұрын
In fields where legends freely roam, A GOAT emerges, to claim its throne. With prowess unmatched, it scales the height, In realms of glory, it takes its flight. In games of skill, it reigns supreme, The GOAT, a champion in every scheme. With grace and power, it dominates, In history's annals, it seals its fate. Through trials faced and challenges met, The GOAT's legacy, we won't forget. In every triumph, it leaves its mark, A symbol of greatness, shining stark. Oh, GOAT, in realms of fame you dwell, Your spirit shines, a timeless spell. In every field, your legend's told, Greatest Of All Time, forever bold.
@dg35772 жыл бұрын
really awesome explanation sir all software engineers
@sadeghhosseini63813 жыл бұрын
Please continue publishing new tutorials on other CS courses like OS and etc. You are one of the best teachers i've ever seen.
@AnujKumar-tt5md4 жыл бұрын
Sir... You are a gem 💎 among teachers. Thanks🙏
@abdul_bari4 жыл бұрын
It's my pleasure
@vmidhun89734 жыл бұрын
Best lectures on Algorithms.
@edwintan47845 жыл бұрын
Sir, loves your videos! Finally i can understand Algorithms in a simple way. Please continue to create more videos! Hope u can cover every Advanced Algorithms as in Cormen’s textbook.Thanks!
@Hoppensagen2 жыл бұрын
Should mention that 1 + 2 + 3 + .... n-1 + n is a summation that can be shorthanded to equal n(n+1)/2
@hunainalikhan92539 ай бұрын
Glad I saw that comment thanks buddy
@BIOHAZARD_V24 ай бұрын
You sir are a lifesaver
@b088mohdzaid5Ай бұрын
It’s a basic concept in math probably a 9th class kid knows it.
@BIOHAZARD_V2Ай бұрын
@@b088mohdzaid5 for people who haven’t been in math class for a long time, they can forget
@ankursahu77046 жыл бұрын
Thank you sir You helped me a lot.
@iAmShortyFry3 жыл бұрын
Thanks for helping me obtain my degree :)
@ChauDang-bm1nf9 ай бұрын
Please make videos of computer architecture. You’re teaching skills is brilliant.
@jagjotsingh20395 жыл бұрын
Oakland University Sent Me Here
@oskarf88687 ай бұрын
I appreciated the video a lot, thanks from Poland
@all-roundersanyal44724 жыл бұрын
Sir ,,,you are great ,I love the way you teach. It is so clear.Thanks a lot sir.NPTEL teachers are so boring ,,,,,,but you are interesting with your subject.
@poojabhale8164 жыл бұрын
Thank you sir...tomorrow is our exam and your lectures are ssly a saviour for us.....it easily made us understand the concept one night before the exam....👍
@preetsutariya16644 жыл бұрын
ENLIGHTENING 🙏💯🔥
@justinpower44755 жыл бұрын
Abdul Bari for President
@siddharth_singhvlogs5 жыл бұрын
Kash mere class teacher bhi daa in sir ke jaise padha pate🤔🤗
@ParvezAlam-gt6cc5 жыл бұрын
Sir you are awesome and teaching style is very good. Thanks for this video Sir. Now I can easily understand everything things about algorithm. Again thank you sir. May you live long and healthy.
@devanshkhare35324 жыл бұрын
Sir, ar 5:51 you took T(0) will take 0 time. But you also said that 0 time means constant time so we take 1 instead of 0. So, for summing up, if taken 1 instead of 0 sum should be = n(n+1)/2 +1 . I know it wont make a difference in the final answer but just wanted to confirm if I am theoritically correct or not ? Please do reply and Thank you in advance !
@lensam52882 жыл бұрын
God bless you! you made my life easy!!!!!
@kengthe59494 жыл бұрын
the best explanation ever. Thank you!
@muhammadnaeem98555 жыл бұрын
Good to the the point lectures with such simplicity and examples... Amazing. may ALLAH bless you.
@BryceChudomelka4 жыл бұрын
Hello Friends!
@arnoc.21075 жыл бұрын
love the random stares into the camera like at 8:48 :P
@arindamroy76716 жыл бұрын
A probable rectification - Since T(0) is never written as 0 as instructed by you in the previous video , T(0) in the execution depiction should be equal to 1not 0. So it should be 1+2+3+......+ n-1+n = n(n-1)/2 .
@lifethrownoutofthewindow5 жыл бұрын
n(n+1)/2*
@sydneyballard67983 жыл бұрын
Ok king I see you with the Tommy Hilfiger on 😍
@Piyushchaurasia-j9c6 ай бұрын
best teacher ever
@shemsusultan79872 жыл бұрын
you are teaching in nice way
@DavidLopez-eb5km2 жыл бұрын
Nicely Explained Professor!
@AbdallahSayed-hp4hw Жыл бұрын
thank you very much you help me to understand this, you are a legend
@Dear422 Жыл бұрын
सर जब भी आपकी विडियो देखता हू| ऐसा लगता है जैसे ऑपरेटिंग सिस्टम की स्टैण्डर्ड बुक के राइटर गल्विन खुद सामने पढ़ा रहे हो| इतनी ऑथेंटिक लगती है आपकी विडियो बता नहीं सकते| किसी और की विडियो देखते है तो लगता है स्टैण्डर्ड बुक का रिफरेन्स लेके लोकल राइटर पढ़ा रहा है| वो भी अच्छे है जब आसानी से कोई चीज सीखनी हो पर आपकी विडियो का कंटेंट ऑथेंटिक लगता है|
@bhaskargg60184 жыл бұрын
Your explanation is crystal clear, thanks a lot Sir for sharing your knowledge
@SRNR_PODCAST.3 жыл бұрын
a gold mine in youtube
@wasay81053 жыл бұрын
you're really good at teaching
@DenisGitonga2 жыл бұрын
Excellent Teacher...
@subramaniyanvg63674 жыл бұрын
Sir I watched this video today. I like the way you teach you cover math in algorithms that's the specialty. Now I understood why I learnt geometric series at school. Thank you sir.
@rahulsathyan57726 жыл бұрын
Life Saver..... Thank you Sir.
@kayalvizhikalaichelvan52834 жыл бұрын
Very Useful Series Sir. Thank you
@cmpala68386 жыл бұрын
Nice video continue you are the best
@tshd4B2ZNWS4 жыл бұрын
Finally found a video shows how to solve this stupid recurrence problem.
@shanealam32464 жыл бұрын
very useful lectures Thanks sir
@vakhariyajay22242 жыл бұрын
Thank you very much. You are a genius.
@mariarex2799 Жыл бұрын
Nice explanation sir !
@ramjitiwari89104 жыл бұрын
Nice 🌸🌻
@dg35772 жыл бұрын
fantastic explanation sir
@mohammedadel89482 жыл бұрын
Thank you for your efforts
@liamzhang56964 жыл бұрын
This guy is unbeliviable
@JP-programming2 жыл бұрын
great job sir
@advikasingh7392 жыл бұрын
thanks sir ur videos are so good really understood the concept
@edwintan47845 жыл бұрын
Excellent teaching
@y0319624 жыл бұрын
thank you so much for posting this and all you clips. I found them very useful.
@superwendel5 жыл бұрын
Blessed Explanation !
@061moh.zaidkhan53 жыл бұрын
Nicely explained
@Stoic_Cat_5 жыл бұрын
Thank you so much sir you have helped me alot
@roshnisharma2816 жыл бұрын
Sir your lectures are very helpful for us. Thank you sir