Binary Search Implementation

  Рет қаралды 25,236

IIT Madras - B.S. Degree Programme

IIT Madras - B.S. Degree Programme

Күн бұрын

Пікірлер: 30
@rishabhnarula1999
@rishabhnarula1999 Жыл бұрын
Sir, you are a great teacher, one in a million kind, I have learned a lot from you. thank you.
@SS-zm7co
@SS-zm7co 9 ай бұрын
RST Forum instructors are also very good! Especially the one for javascript and dev-ops!
@avenumadhav3568
@avenumadhav3568 3 жыл бұрын
problem statement: 3:37 idea: 7:23 8:16 9:00 solution: 21:58 22:33 24:33 conclusion: 35:15 41:13 fact: 44:10
@avenumadhav3568
@avenumadhav3568 3 жыл бұрын
'some geek who looks up geekforgeeks' 🤣 🤣 🤣
@anishmctavish8709
@anishmctavish8709 2 жыл бұрын
Nobody- *Prof Iyengar before first o/p of a new fn- BOOOM. Hahahah
@sayanghosh6996
@sayanghosh6996 3 жыл бұрын
13:20 a good practice I would recommend for the new programmers watching this is to use: mid = begin + (end-begin)//2 As the naive approach would cause overflow errors (as begin + end might be bigger than the range of values your datatype can store) in other programming languages (not in python though :P)
@hello_world3616
@hello_world3616 2 жыл бұрын
nice!
@ROHANKUMAR-du1zf
@ROHANKUMAR-du1zf Жыл бұрын
my system just hung on 1 billion even in python for the exact same code while sir got ans in less than a sec, how, why?
@sayanghosh6996
@sayanghosh6996 Жыл бұрын
@@ROHANKUMAR-du1zf sir is using powerful system and your system is slow
@ROHANKUMAR-du1zf
@ROHANKUMAR-du1zf Жыл бұрын
@@sayanghosh6996 nah i did linear search before and it did it in half a minute for billion without any problem its a recent issue i dont know what happened, now its even hanging on linear search too
@sayanghosh6996
@sayanghosh6996 Жыл бұрын
@@ROHANKUMAR-du1zfmaybe there is some bug in your code, or something wrong with your system
@avenumadhav3568
@avenumadhav3568 3 жыл бұрын
Felt like we somehow found a treasure map, studied it, then followed the ups and downs it showed, left and rights it showed and finally reached our destination and found our treasure which is 'Technique is the Technology' 😝
@sudarshaniyengar8549
@sudarshaniyengar8549 3 жыл бұрын
I was quoting the introduction of algorithms by Cormen et al. You should take a look at the comparison between merge sort and bubble sort.
@arjunmahajan5760
@arjunmahajan5760 3 жыл бұрын
Sir please upload the video solution of ppa and grpa also .it will be very helpful for us
@robinjustin3839
@robinjustin3839 3 жыл бұрын
If you listen closely, you can literally hear the computer fans whining in the background for a fair bit of duration in this video. Now THAT is how strenuous creating a list of "1 billion numbers" can be on your computer ;)
@MUTHU_KRISHNAN_K
@MUTHU_KRISHNAN_K 5 ай бұрын
32:38 matrix movie in black and white 💀
@princesarraf1174
@princesarraf1174 3 жыл бұрын
def binary_search(l,k): begin=0 end=len(l)-1 flag=0 while(begin
@waitForIt548
@waitForIt548 Жыл бұрын
i like your style
@airenmehnaz
@airenmehnaz Ай бұрын
Loved the video. Your classes are fun. PS: Sir you sound drunk OMG. Maybe you were drunk on binary search lol
@kautuknd619
@kautuknd619 3 жыл бұрын
Sir can you show how binary search would work for Strings? You gave the idea of a huge telephone directory or a dictionary, can you please expand on it? I know I am a little late here, keeping my fingers crossed hoping to find it in the upcoming lectures.
@RajJaiswal538
@RajJaiswal538 Жыл бұрын
You can easily compare two strings simply by checking if (a>b) So it'll work out the same way, pretty much the same code actually
@udaykumaruday4159
@udaykumaruday4159 Жыл бұрын
Is it show same time in replit?
@waitForIt548
@waitForIt548 Жыл бұрын
while(len(l)>1) will this work instead of end-begin>1
@29phybharathi56
@29phybharathi56 7 ай бұрын
Sir the videos are really useful, now I'm learning python well along with you...but sir import search is not working... even i tired in many online compiler and also in python software...
@neonthapa
@neonthapa 3 жыл бұрын
It's most probably Common cold, get well soon sir.
@jasontodd8595
@jasontodd8595 3 жыл бұрын
He is so proud of his program.
@sudarshaniyengar8549
@sudarshaniyengar8549 3 жыл бұрын
Sorry if I made it sound that way. If anything, I am proud of the scientific advances of our millennium.
@hello_world3616
@hello_world3616 2 жыл бұрын
@@sudarshaniyengar8549 sir, in fact, your pride and excitement is making the class so lively!
@pocachiandpeekirivlogs
@pocachiandpeekirivlogs 2 жыл бұрын
@@hello_world3616exactly
@lovesingh6455
@lovesingh6455 10 ай бұрын
​@@sudarshaniyengar8549Sir, you are the most amazing tutor I have ever met. Ignore this person.
Binary Search Recursion Way
23:24
IIT Madras - B.S. Degree Programme
Рет қаралды 21 М.
Introduction to Binary Search
14:41
IIT Madras - B.S. Degree Programme
Рет қаралды 22 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Binary Search Algorithm - Theory + Code
58:16
Kunal Kushwaha
Рет қаралды 594 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 170 М.
Warm up for Binary Search
26:15
IIT Madras - B.S. Degree Programme
Рет қаралды 23 М.
Binary Search Algorithm - Computerphile
18:34
Computerphile
Рет қаралды 165 М.
Introduction to File Handling
11:45
IIT Madras - B.S. Degree Programme
Рет қаралды 30 М.
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 328 М.
The College Enrollment Crisis
17:26
PolyMatter
Рет қаралды 646 М.
Lists and Sets
28:05
IIT Madras - B.S. Degree Programme
Рет қаралды 37 М.