2.6.1 Binary Search Iterative Method

  Рет қаралды 871,826

Abdul Bari

Abdul Bari

Күн бұрын

Divide and Conquer Method
Binary Search Method
Iterative Algorithm
Analysis of Binary Search Algorithm
PATREON : www.patreon.co...
Courses on Udemy
================
Java Programming
www.udemy.com/...
Data Structures using C and C++
www.udemy.com/...
C++ Programming
www.udemy.com/...

Пікірлер: 372
@ivybrandyn
@ivybrandyn 5 жыл бұрын
Holy shit. I am a senior student of Computer Science and I never REALLY understood these concepts until I watched these videos. I am literally watching the entire playlist to understand Analysis of Algorithms better. You are amazing for taking the time to make these videos. Sending thanks all the way from Texas!
@lifeexplorer2965
@lifeexplorer2965 5 жыл бұрын
Same here
@raadal-husban654
@raadal-husban654 4 жыл бұрын
@@lifeexplorer2965 Same here! (Master's student!)
@harish-wi3ts
@harish-wi3ts 4 жыл бұрын
I am a ECE student i learned all the concepts by my own...i am just here for refresh the concepts...only.
@exe.m1dn1ght
@exe.m1dn1ght Жыл бұрын
you are a senior cs student and you can't understand binary search ? wow, what do they teach you in that school ?
@hakancemgercek
@hakancemgercek Жыл бұрын
@@exe.m1dn1ght developing calculator I guess.
@IoannisAnifantakis
@IoannisAnifantakis 5 жыл бұрын
Abdul Bari is of the most gifted instructors I have ever seen on online videos. Thank you very much for the level of detail and the clarity of your explanations. I can say that your videos are the solid foundation for literally anyone studying these subjects before watching anything else. Congratulations!
@muhammadshahnawaz9953
@muhammadshahnawaz9953 4 жыл бұрын
Indeed
@joelperezurcelay
@joelperezurcelay 6 жыл бұрын
the audio gets better after 5 minutes or so. Thank you for your videos!!
@adithyagowda4642
@adithyagowda4642 4 жыл бұрын
I was searching for new earphones lol
@wirito
@wirito 4 жыл бұрын
And it gets worse again at around minute 18 Lol
@atharvashitole8375
@atharvashitole8375 3 жыл бұрын
@@adithyagowda4642 same
@allenthakur5757
@allenthakur5757 3 жыл бұрын
@@wirito gradieng
@abhishekbharti4857
@abhishekbharti4857 3 жыл бұрын
Thanks for the info
@arjunchauhan6108
@arjunchauhan6108 5 жыл бұрын
GOD DAMN. I have been through Udacity, Khan Academy, Coursera, MIT etc courses and THIS is by far the best explanation I have encountered. Holy sheeeeeet. Unbelievable.
@sandeepmandrawadkar9133
@sandeepmandrawadkar9133 5 жыл бұрын
Algorithms has become "Bachchon ka Khel" after watching your videos! Kudos, you're ultimate!!!
@blackpearl8034
@blackpearl8034 5 жыл бұрын
Really
@CoderIRQ
@CoderIRQ 2 жыл бұрын
Most gifted instructor I have ever seen on online videos like this. Thank you very much your explanations.
@prachinainawa3055
@prachinainawa3055 5 жыл бұрын
So amazing. India needs more teachers like you. You explain everything about the topic that's what I love the most.
@aaryasrigurudattadarsi1705
@aaryasrigurudattadarsi1705 Жыл бұрын
more students like us too bro
@subramaniyanvg6367
@subramaniyanvg6367 4 жыл бұрын
If someone asks me to write binary search in future I will understand and I will write it instead of byhearting. You explained in such a way people will understand to the core. Thank you sir.
@vishallondhe7298
@vishallondhe7298 5 жыл бұрын
lol .. removed headphone and changed settings 4 times thinking the problem was on my end.. btw thanks for your lectures, you are a great teacher.
@yuvarajtankala3819
@yuvarajtankala3819 3 жыл бұрын
thanks bro I thought the same
@deepikatanmayi801
@deepikatanmayi801 3 жыл бұрын
I regret paying thousands of rupees to my college faculty. Abdul sir's explanation is always on point!
@kellycorchil7595
@kellycorchil7595 5 ай бұрын
If only our lecturers could be this patient teaching and with such clarity, CS students will rule the world. Anyway, awesome videos throughout
@nipunsinha1454
@nipunsinha1454 3 жыл бұрын
I completed my engineering but never got this precise and enlightening knowledge and details. Thankyou very much.Going to watch the whole playlist
@dhruvseth
@dhruvseth 4 жыл бұрын
Great video Mr. Bari sir continue to educate CS students as myself, you have done a great job with this series and everyday I wake up knowing that I will learn something new from the master of teaching himself.
@jaiBisht0001
@jaiBisht0001 2 жыл бұрын
Where are u now
@lateralot2179
@lateralot2179 3 жыл бұрын
the simplicity and thoroughness of your explanations are beautiful. thank you sir.
@CodePinaka
@CodePinaka 3 жыл бұрын
ignoring my university lecture (bcz they just read ) bcz i know Abdul Sir would make me understand in a better way !!!!!!!. Thanks a lot sir. You are just awesome.
@ashwnicoer
@ashwnicoer 2 жыл бұрын
A gem , I was tired of watching multiple videos but understood from Bari sir . Thanks a lot sir
@arbajmomin
@arbajmomin 5 жыл бұрын
Sir, Sachmuch maine aap jaisa explain krne wale sir nahi dekhe, You will a good motivation towards understanding programming in a good manner .. And plz upload concepts regarding c++ and data structures.. Again thank you for such great explanation....🤗👍🏻
@isaacdanso7323
@isaacdanso7323 3 жыл бұрын
So far the best video on this topic I have ever watched he makes it looks simple and easy to comprehend. Thumbs up Sir
@sadiaabbas2515
@sadiaabbas2515 2 жыл бұрын
Sir you’re best teacher ever Ma Shaa Allah
@Risefromtheashes689
@Risefromtheashes689 5 жыл бұрын
Proudly he is from india❤💕🇮🇳
@hennaartbyreeka2675
@hennaartbyreeka2675 4 жыл бұрын
Proudly he is a MUSLIM.
@Risefromtheashes689
@Risefromtheashes689 4 жыл бұрын
@@hennaartbyreeka2675 wtf
@hennaartbyreeka2675
@hennaartbyreeka2675 4 жыл бұрын
@@Risefromtheashes689 yeah
@piushpaul4880
@piushpaul4880 4 жыл бұрын
@@hennaartbyreeka2675 allah didn't help him to gain knowledge you fool...it was his efforts 😂😂
@piushpaul4880
@piushpaul4880 4 жыл бұрын
@@hennaartbyreeka2675 if that is so ...he would have done namaz 😂😂😂😂 and not learn algorithms
@fanalgo
@fanalgo 5 жыл бұрын
Note that in practice doing mid = (L+H)/2 is not a good idea because it can cause an overflow since (L+H) can be greater than the list size. Instead, we should do mid = L+(H-L)/2 to avoid any possible overflow.
@thean1585
@thean1585 3 жыл бұрын
Damn I was stuck on this in python for a while, took your advice and it works, you sir are a legend!
@rishav179
@rishav179 2 жыл бұрын
we can do the floor division to avoid overflow.
@davidomar742
@davidomar742 2 жыл бұрын
if you start l at 0 and h at length of list -1 you won't overflow
@junkeekim2853
@junkeekim2853 3 жыл бұрын
So good! Much more understandable than the video of self-claimed "competitive programmers" out there!
@abbahali2627
@abbahali2627 3 жыл бұрын
we are following you as an excellent instructor thank you, sir, we are so much grateful
@yashikabajaj6573
@yashikabajaj6573 4 жыл бұрын
Sir, U explained this algorithm with so ease........ Thanku so much for ur guidance.....Looking forward for more such tutorials.
@arjumandvillagelife
@arjumandvillagelife 4 жыл бұрын
you help me alot , thanks for sharing this concept, now i got how binary search works, really nice work, wonderful presentation
@mohammadjamiluddin3880
@mohammadjamiluddin3880 5 жыл бұрын
Superb!!! Sir, you are great.... Fantastic... You made this course a piece of cake.
@Farahat1234
@Farahat1234 5 жыл бұрын
are you studying analysis and design of algorithm?
@sultangaddafi8698
@sultangaddafi8698 9 ай бұрын
Best Binary Search Algorithm Video Ever!!!!!
@sathyamanikanta2784
@sathyamanikanta2784 Жыл бұрын
Best 19 minutes ever❤❤❤❤
@Dharwad_boy
@Dharwad_boy 3 жыл бұрын
You are absolutely gem ❤️. Perfect teaching any student can understand i was struggling with this ,and in just 20 min i got it. Thankyou and God bless you
@JiaxunLi-no4hd
@JiaxunLi-no4hd 5 ай бұрын
Thank you so much!! You make everything so clear. I will continue to learn with you!!
@444S_
@444S_ 2 ай бұрын
Proud of this Muslim Indian instructor 🇸🇦🇮🇳
@Algo-gr7xz
@Algo-gr7xz 5 жыл бұрын
Thank you for your videos!! I was not REALLY understood these concepts.But when i see your lecture's about this concept then I can understand the Analysis of Algorithms better.
@nightking3013
@nightking3013 5 жыл бұрын
Sir thanks a lot for making such awesome videos .Your videos are too good! You teach far better than an average teacher.
@endlesslearning26
@endlesslearning26 4 жыл бұрын
sir thanks a lot, i have been trying to learn it myself from so much time but after watching half of your video I coded it myself and it damnnn worked thanks sir
@chetanupadhyay8409
@chetanupadhyay8409 11 ай бұрын
Best explanation forever
@smrutisahoo7137
@smrutisahoo7137 2 жыл бұрын
the audio gets badly distorted so don't worry just wait till 5:30 and the it comes clearer ! thank you abdul sir, you have been a great help to the pandemic kids like us !
@super_sao8339
@super_sao8339 3 жыл бұрын
I always thought that I'd been kicked in the head by a donkey until I saw this video. You save my life, thank you very much
@mohamedagagna2120
@mohamedagagna2120 2 жыл бұрын
May Allah reward you for this explanation May God bless you and make it in the balance of your good deeds
@eva42sh
@eva42sh 2 жыл бұрын
Thank you Mr Abdul - all of your videos are priceless! you're a legend. Thank you for helping to improve
@Saweuond
@Saweuond Жыл бұрын
this guy knows everything about trading! I really recommend you to check all of his videos
@negativenagesh
@negativenagesh Жыл бұрын
Bari ji Keerthan holla aapka bahut bada fan hai, aur aapka ghanta bajata hai hamara hostel mei.. thank u
@ahmedmohammedshahid1007
@ahmedmohammedshahid1007 2 жыл бұрын
Amazing, i am beginner and i have completely understood all the concept easily
@siamaralte1864
@siamaralte1864 3 жыл бұрын
Thanks alot Sir, your explanations always meet my expectation. I'm amazed on how you make things look so easy. 👏👏
@МаксимБазанов-и9э
@МаксимБазанов-и9э 3 жыл бұрын
Your explanations are brilliant! Greetings from Russia
@djukicar7791
@djukicar7791 Жыл бұрын
thank you so much for helping me out with this,so understandable when you explane it compared to my professor
@augnikmondal4151
@augnikmondal4151 2 жыл бұрын
thank you so much sir. i had not understand this concept .your explanation has made this concept easy. now it is easy for me
@geetakhatri1967
@geetakhatri1967 4 жыл бұрын
The Explanation were so clear cut ! :) Thank you !
@Indian1947-o1z
@Indian1947-o1z Ай бұрын
Best Teacher for Algo
@mehrajahmadbhattt
@mehrajahmadbhattt 5 жыл бұрын
Now Algorithm is My Favourite Subject
@technologytricks1502
@technologytricks1502 4 жыл бұрын
Bundle of thanks sir for such comprehensive detail on Algorithm.
@DheerajYadav-sf6tu
@DheerajYadav-sf6tu 3 жыл бұрын
after 5:30 min video sound will be clear go ahed 👍 and thank you so much sir for this video you are great .
@pritomdasradheshyam2154
@pritomdasradheshyam2154 5 жыл бұрын
The explanations were so precise and clear cut. Thankyou so much Sir :)
@shoaibzihad3073
@shoaibzihad3073 5 жыл бұрын
Oh shit ,finally got this stupid algorithm. I just want to thank u ,u saved my time.U are a very very good teacher.
@DineshKumar-lq2ck
@DineshKumar-lq2ck 4 жыл бұрын
You are a blessing for humanity.
@aaronaaronaaron5922
@aaronaaronaaron5922 4 жыл бұрын
I am exponentially thanking you each video 😋
@EdwardMaingehama
@EdwardMaingehama 4 ай бұрын
I love this God raised such an Amazing Teacher! Glory To God
@ivishalsr2021
@ivishalsr2021 Жыл бұрын
sir i have only watched this video of yours and i am already your fan! this was very very very much helpful! sir charan kahan hai aapke ashirvaad de do plz
@abdul_bari
@abdul_bari Жыл бұрын
God Bless You.
@kalinivanov1807
@kalinivanov1807 2 жыл бұрын
The best teacher in the world!
@TTAGGGTTAGGG
@TTAGGGTTAGGG 10 ай бұрын
play the video at a faster speed to mitigate the audio issues
@abdallaelmedani8933
@abdallaelmedani8933 4 жыл бұрын
Thank you, Abdul. Quality materials!
@fivecube
@fivecube 5 жыл бұрын
Sir at 16:14 you are calculating wrong height. The height of that tree is 3 not 4.(No of edges are counted and not the nodes). The number of comparison depends upon height of a Complete binary tree as follows:- floor(logn) + 1 Anyways, Your content is awesome.
@piyushtayal8567
@piyushtayal8567 5 жыл бұрын
Ya sir right! By the way your channel is great too!!
@anirvangoswami
@anirvangoswami 2 жыл бұрын
This guy right here is a fooking legend.
@shubhamkurup771
@shubhamkurup771 Жыл бұрын
One of the best explanations ever
@saha-rider01
@saha-rider01 4 ай бұрын
Your concept is amazing sir ❤❤
@SOBHITSHARMA
@SOBHITSHARMA Жыл бұрын
He explained in the most simplest form. Today I understood correctly what is binary search. Thanks Sir. I have question though- Array index starts from 0, then why are we calling it 1 in this case. Thanks
@priyasingh0113
@priyasingh0113 5 жыл бұрын
echo is been produced the entire vedio sir, n gud luck for the productive lectures u gave, kindly upload some more fruitful vedios on computer architecture or other subjects
@muhammadshahnawaz9953
@muhammadshahnawaz9953 4 жыл бұрын
Hats off to you Baari 👏
@chinmaydas4053
@chinmaydas4053 7 жыл бұрын
Sir you are great..helpful materials but it will be more useful if you explain topics from more basic concepts and would be best if you discuss these concepts in java or c# simultaneously..huge respect and love for you sir ❤️🙏🙏...
@souravdas7263
@souravdas7263 6 жыл бұрын
Sir u r great..plz makes videos on data structures with code and give some problems to practice.
@nehajaiswal4748
@nehajaiswal4748 4 жыл бұрын
This is really great video thanks a lot
@priyadarsha1
@priyadarsha1 4 жыл бұрын
You are really genius, diamond of India
@Akbarvlogss
@Akbarvlogss 7 ай бұрын
I really appreciate your explanation sir ❤
@cricdubb4u963
@cricdubb4u963 3 жыл бұрын
The audio gets better after 5:25
@120183PAV
@120183PAV 4 жыл бұрын
Thank you. These videos are great tutorials.
@shamshtabrez6492
@shamshtabrez6492 7 жыл бұрын
Nice tutorials.While making videos, plz give basic details of the topic as well as its implementation in java.I apprerciate your effort to share knowledge which will have global reach.
@DinShpati
@DinShpati 3 жыл бұрын
This guy is a genius. THE GOAT
@sumirandahal76
@sumirandahal76 Жыл бұрын
Thank you sir, so simple and i get it. Thank you very much ❤
@EjazAhmed-pf5tz
@EjazAhmed-pf5tz 2 жыл бұрын
thank you so much they way you understand algo it was outstanding
@xximo
@xximo 5 жыл бұрын
very good explanation for a very confusing topics. well done prof!
@uttkarshrastogi27
@uttkarshrastogi27 4 жыл бұрын
great work !! can't thank you enough it really boosted my confidence
@warnercooler4488
@warnercooler4488 3 жыл бұрын
Thank you so much for this clear explanation!
@hardikkamboj3528
@hardikkamboj3528 12 күн бұрын
In the algorithm, we should be recursively calling the function, which is not written.
@ambreenkawish2145
@ambreenkawish2145 4 жыл бұрын
Well done sir from Pakistan 🇵🇰👍
@ammuanmu9580
@ammuanmu9580 6 жыл бұрын
Thank you so much sir please provide the videos for all computer science based topic sir it's very useful for my exam.
@kirtiagg5277
@kirtiagg5277 6 жыл бұрын
Way of teaching is fantastic
@monterey-pc
@monterey-pc 6 жыл бұрын
CC is so much helpful for this lecture.
@ganjiraviteja3184
@ganjiraviteja3184 2 жыл бұрын
Good example you took sir
@abhishekthakur7578
@abhishekthakur7578 2 жыл бұрын
He is the gem 💎
@vsnshankar4932
@vsnshankar4932 3 жыл бұрын
sir, you're doing an amazing job....
@thanujaburavilli6250
@thanujaburavilli6250 5 жыл бұрын
Thank you soo much.. Ur channel deserves million subscriners..
@ChandBasha5016
@ChandBasha5016 2 жыл бұрын
Sir Your explanation is very clearly, I have one doubt in list index starts with 0 but you take it as 1
@vkmrishad
@vkmrishad 3 жыл бұрын
Nice, Good Explanation
@jasminesheik3497
@jasminesheik3497 4 жыл бұрын
jazakallahu khaiyran sir best explanation ever
@princeshah8355
@princeshah8355 6 жыл бұрын
u r great sir...thanks for ur video tutorials it helped a lot....
@krishsandy8140
@krishsandy8140 6 жыл бұрын
sir,please make videos on data structures also.
@geekyprogrammer4831
@geekyprogrammer4831 5 жыл бұрын
you can buy it from Udemy!
@vaibhav.polska
@vaibhav.polska 4 жыл бұрын
Yeah Purchase the course on Udemy. It is great!!
@gavravdhongadi9824
@gavravdhongadi9824 4 жыл бұрын
@@geekyprogrammer4831 is the course instructor himself?
@harshmk1052
@harshmk1052 4 жыл бұрын
@@gavravdhongadi9824 yep . I had also bought that course . It is worth every penny .
@aashrithakari5345
@aashrithakari5345 6 жыл бұрын
thanks for all the videos sir, the videos helped a lot :)
@sirwr7790
@sirwr7790 Жыл бұрын
Assalamualaikum thanks a lot I understand it
@vibhor0202
@vibhor0202 6 жыл бұрын
In your code, you return 0 if index is not found, but instead you should return False; returning 0 index will mean that element is found as the first item on array Here is python code for the same that you explained : def binarySearch(A,key): n = len(A) low = 0 high = n while (low
@mrjava18
@mrjava18 2 жыл бұрын
If we also check low and high index for key along with mid [(just like we check if arr[mid]==key)], we will do less iteration and time complexity will be improved too..... if(arr[low]==key || arr[high]==key || arr[mid]==key) --> return/low/mid/high;
@sandippalcserollno-0368
@sandippalcserollno-0368 5 жыл бұрын
sir your videos are really helpful
2.6.2 Binary Search Recursive Method
7:11
Abdul Bari
Рет қаралды 587 М.
2.8.1  QuickSort Algorithm
13:43
Abdul Bari
Рет қаралды 3,4 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Binary Search Algorithm - Computerphile
18:34
Computerphile
Рет қаралды 167 М.
1.11 Best Worst and Average Case Analysis
18:56
Abdul Bari
Рет қаралды 865 М.
2.9 Strassens Matrix Multiplication
23:40
Abdul Bari
Рет қаралды 1,2 МЛН
2.6.3 Heap - Heap Sort - Heapify - Priority Queues
51:08
Abdul Bari
Рет қаралды 2,3 МЛН
2.7.1  Two Way MergeSort - Iterative method
20:19
Abdul Bari
Рет қаралды 778 М.
AES Explained (Advanced Encryption Standard) - Computerphile
14:14
Computerphile
Рет қаралды 1,3 МЛН
3. Greedy Method -  Introduction
12:02
Abdul Bari
Рет қаралды 1,5 МЛН
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН