C Program to implement Binary Search || Coding Guide for Beginners|| #programming

C Program to implement Binary Search || Coding Guide for Beginners|| #programming

Clarity Education

3 года назад

112,354 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

A_M_A_N Edit.z
A_M_A_N Edit.z - 11.10.2023 16:45

Thanks sir

Ответить
Pawan preet kaur
Pawan preet kaur - 11.09.2023 16:41

please make video on recursive function in binary search

Ответить
Sanjida Biswas
Sanjida Biswas - 19.08.2023 10:38

Very helpful

Ответить
1469 SANKEERTHAN RAI
1469 SANKEERTHAN RAI - 02.05.2023 16:53

It is wrong

Ответить
A
A - 26.02.2023 18:04

In your code if you put uneven elements in your array and you target let's say number at index 3, your program will loop forever. So it is better to round your mid to the nearest integer : mid = (int) round((low+high) /2); and include math.h lib.
good explanation thank you
edit: you can also put your mid calculation inside while loop so you don't need to type it again inside else statement.

Ответить
Nakirikanti Naveen
Nakirikanti Naveen - 09.12.2022 20:26

The program doesnot work

Ответить
Suhan Ahmed Joni
Suhan Ahmed Joni - 20.11.2022 17:14

You gave my assignment answer. Now, I don't need to expentidture much time.🙂

Ответить
Bharath
Bharath - 19.09.2022 19:09

Could you share the source code;

Ответить
Ramshiya ms Cs
Ramshiya ms Cs - 31.07.2022 17:48

Super

Ответить
js
js - 22.07.2022 21:44

how it is working ? shouldn't we include mid = (low+high)/2 inside while loop statement

Ответить
DomXZ
DomXZ - 06.07.2022 17:36

Sir, how about we write the largest values to smallest value in binary search in array? Can u teach us?

Ответить
Galaxy
Galaxy - 05.07.2022 21:13

Aren't we supposed to refresh the mid variable in the first if statement ? Like the following :

if(array[mid] < a){
low = mid+1;
mid = (low + high)/2;
}

Ответить
Rupayan Sen
Rupayan Sen - 08.06.2022 12:26

sir the program is not running properly

Ответить
Shilpa Shree D
Shilpa Shree D - 22.04.2022 10:08

Excuse me, please explain this program.

Ответить
J.R GAMER
J.R GAMER - 20.04.2022 13:51

Not working bsdk

Ответить
Ashwani Dasari
Ashwani Dasari - 06.03.2022 20:06

Thank u so much

Ответить
Gustavo H
Gustavo H - 27.02.2022 05:49

Hello!
Thank you for the video, it really helped me!
Greetings from Mexico!

Ответить
Vishu
Vishu - 23.02.2022 15:11

at starting it is showing private identifyier is not allowed

Ответить
Rasika Srimal
Rasika Srimal - 20.01.2022 17:26

Thank you so much, You got another subscriber
Love from Sri Lanka

Ответить
Rasika Srimal
Rasika Srimal - 20.01.2022 17:26

Thank you so much, You got another subscriber
Love from Sri Lanka

Ответить
SAKLEN SAIYAD
SAKLEN SAIYAD - 20.09.2021 06:48

Silent teacher who teachs us to understand c program


Thank you so much sir!
Great job u doing
Grow more. Teach more


And sry my English is little bad
What I feel that right I wrote😊

Ответить
Afuh Christian Forkoum
Afuh Christian Forkoum - 23.06.2021 19:27

It works 100%

Ответить