Тёмный

Binary Search | Logical Programming in C | by Mr.Srinivas 

Naresh i Technologies
Подписаться 1,3 млн
Просмотров 283 тыс.
50% 1

Binary Search | Logical Programming in C | by Mr.Srinivas
** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Websites
For Classroom Training: nareshit.in
For Online Training: nareshit.com
--------------------------
💡 About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.
--------------------------
💡 Please write back to us at
📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
--------------------------
💡 Check The Below Links
► For Course Reg: goo.gl/r6kJbB
► Subscribe to Our Channel: goo.gl/q9ozyG
► Circle us on G+: plus.google.co...
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 240   
@mabhinavprakash1194
@mabhinavprakash1194 4 года назад
The way he leaves gap and explains everything at last is wonderful
@buzzfighter5170
@buzzfighter5170 3 года назад
Yeah
@kshitijpandey7679
@kshitijpandey7679 Год назад
dont hype him !!
@jadringarcia5021
@jadringarcia5021 4 года назад
This is one of the best explanations of binary search I have found. SMASHED THE LIKE BUTTON.
@malavikasadasivan8291
@malavikasadasivan8291 3 года назад
The dislike button may be for our college professors who was explain all these years and not even a student could not understand the concept 😑🤭🤭🤭🤭
@chandrimaroy141
@chandrimaroy141 5 лет назад
He is the best teacher!
@sainani.2703
@sainani.2703 Год назад
Ch srinvas right
@nainisaichethanreddy4122
@nainisaichethanreddy4122 5 лет назад
Sir ur the best one i saw till now to explain c programming Thanku for this wonderful teaching
@Achandra7
@Achandra7 3 года назад
What a confidence and accuracy in your teaching!! Awesome sir..
@muskan-co5yn
@muskan-co5yn 5 лет назад
U r the actual teacher of programming..... I just become frustrated to see the lecture of sourabh shukla... Oo god how boring his lecture 😴
@chirag.gulati
@chirag.gulati 3 года назад
Give this man a award...🏆
@venkataramsai3226
@venkataramsai3226 3 года назад
I never saw this kind of wonderful teaching in my life .
@musicbuddy5306
@musicbuddy5306 5 лет назад
If you want to learn C programming...I assure you to follow him..Best Teacher ever!!!
@HeavilyWise
@HeavilyWise 4 года назад
Sir great explanation can't we take only (n) instead of (n-1) in all programs why n-1 is compulsory Pls help
@bhaskarbhasku2921
@bhaskarbhasku2921 4 года назад
Because array index starts with 0 and not with 1 if you start your array at position 1 then you can use n as your high :)
@sai11peravarapu70
@sai11peravarapu70 3 года назад
You are perfect trainer glad to have you in RU-vid trainers like you
@sheetal_s5153
@sheetal_s5153 4 года назад
Sir use use íf{ } else if{ } else if { } why u not use else in last
@indiangamermohit5109
@indiangamermohit5109 5 лет назад
OMG such a great explanation
@AbdiazizIbrahim-o3c
@AbdiazizIbrahim-o3c Год назад
sir if key number is not at the middle what will you write at printf(...........................)
@prafulkatare4385
@prafulkatare4385 5 лет назад
Thank you sir, your explanation was fabulous!!
@vishalchauhan9832
@vishalchauhan9832 5 лет назад
Sir your way of explanation is amazing!
@Dsp_126
@Dsp_126 4 года назад
can somone check where is it wrong #include main() { int low,high,mid,n,key,found,search,i; int a[i]; printf("enter no. of element: "); scanf("%d",&n); printf("enter %d integer: ",n); low=n-1; high=0; for(i=0;ilow) { mid=(low+high)/2; if(keya[mid]) { high=mid+1; } else if(key==a[mid]) { printf("found @ %d ",mid); found=1; break; } } }
@vs8645
@vs8645 Год назад
😯
@Rakeshkumar-xi4co
@Rakeshkumar-xi4co 2 года назад
Ur teaching experience is was so good and im happy to say its a mindblowing lecrure
@aratinaik2823
@aratinaik2823 5 лет назад
Sir plz upload video for quick sort
@dipannita7436
@dipannita7436 5 лет назад
Yess sirr
@Shanmukha19
@Shanmukha19 3 года назад
Clear cut explanation and wonderful teaching. Thanks sir. Sir are you from Telugu.
@collinsk5031
@collinsk5031 4 года назад
May God bless you sir, You are the best of all...... Thanks so much sir.
@bawabigballer
@bawabigballer 4 года назад
What a great way of teaching. Keep up the great work sir!!!!
@nagarjunaketi7140
@nagarjunaketi7140 4 года назад
sir, what if n value is equal to a even number
@ruinfirefly2088
@ruinfirefly2088 4 года назад
if n is even then let's assume its 10 then low = 0, high = 9 and mid = (0+9)/2 i.e. mid = 4 "This is because integer datatype takes floor value so 4.5 becomes 4" similarly 0.5 will be 0 and so on. here is a simple code so you can experiment: int low=0,mid,high=9; mid = (low+high)/2; printf("%d",mid);
@SoldierBoy69420
@SoldierBoy69420 4 года назад
@@ruinfirefly2088 thanks.
@ruinfirefly2088
@ruinfirefly2088 4 года назад
@@SoldierBoy69420 happy to help!
@Morningstarintheroses
@Morningstarintheroses 4 года назад
@@ruinfirefly2088 thanks bro, are you a software engineer? 🤐🤐🤐
@ruinfirefly2088
@ruinfirefly2088 4 года назад
@@Morningstarintheroses Nah, I'm a 3rd year B.Tech Student. I wish that I become a good software engineer one day.
@abdulrafay5857
@abdulrafay5857 4 года назад
Thanks sir
@monstermoto._
@monstermoto._ 4 года назад
If mid value is 6.5.should I round it to 6 or 7.. Please reply sir. I took the key value as 78.
@abhishekharde
@abhishekharde 4 года назад
6
@Swarna_Nekkanti
@Swarna_Nekkanti 4 года назад
Sir... Thank you very much for explaining.... What is the use of while loop?? And If consider 11 elements in an array..Then mid value will be 5.5....so in those cases what will be the mid value sir??? Please reply sir... Thanks in advance..
@syntheticfiber7388
@syntheticfiber7388 4 года назад
You should round it off to 6. Take the lower integer value.
@syntheticfiber7388
@syntheticfiber7388 4 года назад
@@Swarna_Nekkanti take 5 as mid
@nirmalcandy771
@nirmalcandy771 4 года назад
Did u got the result
@sourabh2635
@sourabh2635 3 года назад
Best Ever Explanation Of Binary Search
@jayeshmhatre259
@jayeshmhatre259 3 года назад
Sir you are one of the best teacher 🙌
@Podlols
@Podlols 9 месяцев назад
Love you videos
@durgavamshi3477
@durgavamshi3477 5 лет назад
Sir upload video for quick sort also
@jhhfjjgchjjhvcghjkkiiif
@jhhfjjgchjjhvcghjkkiiif 3 года назад
Sir, pls make a vedio on matrix multiplication program
@kishorebvvk
@kishorebvvk 2 года назад
Good explanation sir
@Anushkathecuteprincess
@Anushkathecuteprincess 19 дней назад
amazing as always :) thank you so much sir and Naresh i Technologies to provide such great mentor :)
@donthularuchitha7552
@donthularuchitha7552 3 года назад
Anni chusa.... Kani edi best
@crazythinkers642
@crazythinkers642 Месяц назад
Sir what if the no of elements are even? Then how will code executes then if mid is equals to 0.5,2.5 like that please make a video on that sir
@CARBON-X
@CARBON-X Год назад
Sir youtube pe dekhe to sab samajme aata lekin college me padai to kuch bhi samajme nai aata,college me sir 3 to 4 times explain kare phir bhi samajme nahi aaya par ab aaya thanks 😊
@dineshgudimetla386
@dineshgudimetla386 3 года назад
Sir, Does your code works, if my key is 1st element or the last element
@aviadgabso8342
@aviadgabso8342 3 года назад
simply AMAZING!
@swathilalam3632
@swathilalam3632 2 года назад
The way you explained the program is superb sirrr.....
@penieldavid9323
@penieldavid9323 5 лет назад
None can teach like u !!!
@San.x_18
@San.x_18 2 года назад
thanque
@abhishek_kr_8635
@abhishek_kr_8635 3 года назад
Thank you sir, for nice explanation.
@syntheticfiber7388
@syntheticfiber7388 4 года назад
Wonderfully explained!
@naveeb539
@naveeb539 2 года назад
Sirr. Your given example in else if 78. Is not come to mid location.,,,,,,,,. Low = 69. High = 98. Mid is. 84. 78 is not mid location.
@ekambaramsainikhil9301
@ekambaramsainikhil9301 3 года назад
THE BEST RU-vid LECTURES TO LEARN C PROGRAM
@mahimachaudhari1859
@mahimachaudhari1859 4 года назад
Thank you sir
@dipannita7436
@dipannita7436 5 лет назад
Sir u r just awesome . A super teacher ever in programming.you are just great for ever.
@blackCodeDushans
@blackCodeDushans Год назад
Can you help me to find out this error ? public class Main { public static void main(String[] args) { int ar[] = {1,2,3,4,5,6,7,8}; int L = ar[0]; int H= ar[ar.length-1]; int mid= (L+H)/2; int key = 30; while (Lar[mid]){ L=mid+1; // System.out.println(L); } else if(key
@lavishjain992
@lavishjain992 4 года назад
What if the key=17 ??!
@aaronhinn7071
@aaronhinn7071 10 месяцев назад
Sir really awesome😍😍😍😍 i understood easy tq so much 😭😭😭😭👍❤️💫
@labeebakc7393
@labeebakc7393 4 года назад
Sir ,pls explain with the example with 78
@g.subarao9006
@g.subarao9006 4 года назад
/* write a c program to print message to describe pleasure */ #include int main() { printf("mr.srinvas sir is very great ") ; return(0); }
@g.subarao9006
@g.subarao9006 4 года назад
Thank you very much sir. I have subscribed your channel
@saiteja-om4nj
@saiteja-om4nj Год назад
What should we do if the high is an odd number where should the mid should be placed
@mpr2801
@mpr2801 4 года назад
Sir,what if we get mid value in decimal
@shuchitaarora9819
@shuchitaarora9819 5 лет назад
you teach in an exceptional way sir...Thanks a lot
@lubnajahanjoty6640
@lubnajahanjoty6640 4 года назад
what if i have 12 elements?
@kiranmaik7128
@kiranmaik7128 2 года назад
tq.. sir for your wonder full explanation...
@dhineshkumar853
@dhineshkumar853 2 года назад
You are great in making the learners to understand , sir..!!
@arunlabana5937
@arunlabana5937 3 года назад
Sir It will fail if elements are 9,9,9,9,9. It is going to return index as 2
@saiteja-om4nj
@saiteja-om4nj Год назад
Why broh
@Fearlessstories-07
@Fearlessstories-07 14 часов назад
Thank you ❤❤
@harshachokkapu9435
@harshachokkapu9435 2 года назад
This one best explanation in binary search
@bjit271
@bjit271 8 месяцев назад
sir, your elplains is awesome .👌👌
@pranayvonteru6886
@pranayvonteru6886 2 года назад
Sir, what will be the mid value if the upper value is 9 0+9/2 is 4.5 then what is the mid value...please help
@harshvardhansantoshbhosale9559
@harshvardhansantoshbhosale9559 10 месяцев назад
Take 4.dont take into account the digits after the decimal point
@-PavanKumar-uf6lk
@-PavanKumar-uf6lk 3 года назад
Apply Binary search (23,71,66,44,89,65,98,33)
@Moonfx7
@Moonfx7 Месяц назад
🫡
@ankurbanerjee1722
@ankurbanerjee1722 Месяц назад
Thank you so much sir 🎉
@richaoswal1782
@richaoswal1782 Год назад
Sir please make video on merge sort
@Sairam30722
@Sairam30722 4 года назад
Sir mee valle exam pass ayya sir tq
@Satya_ganta
@Satya_ganta Год назад
Very simple and clear
@5leafclover_
@5leafclover_ Год назад
Just what I was looking for
@john_nissi
@john_nissi 3 года назад
Please upload quick sort
@astonsamdsilva3334
@astonsamdsilva3334 6 месяцев назад
Great explanation sir!
@Cartidise
@Cartidise Год назад
i love you man, you are the best
@jr_jeet
@jr_jeet 2 года назад
If we have to search 17
@ajayroy4536
@ajayroy4536 2 года назад
😘👌 Super logic .....#OP👌✌
@gouthambilluri4549
@gouthambilluri4549 2 года назад
Sir y r we giving found =1 ??????
@bhuvanbalajiv2282
@bhuvanbalajiv2282 8 месяцев назад
Crazy teaching ❤
@mdmonirulislam5834
@mdmonirulislam5834 5 лет назад
why found = 1; I cant understand it. plz anybody explain...
@gauravkhandekar531
@gauravkhandekar531 5 лет назад
It acts as a flag For eg If flag=0 then the element is not found else Found.
@ruinfirefly2088
@ruinfirefly2088 4 года назад
we initialize found =0; if the value is changed to 1, we will know that the element is found. otherwise we can say element is not present
@sudip_pandit
@sudip_pandit Год назад
thank you sir
@manjualadakatti6531
@manjualadakatti6531 3 года назад
What a Fantastic Explaination 🔥✨
@Interestingseriesclips
@Interestingseriesclips Год назад
Thank you sir 😊 you explanation is always simple and helpful
@palashmandal2829
@palashmandal2829 Год назад
Thank You So Much Sir
@jr_jeet
@jr_jeet 2 года назад
Awesome sir I finally got understood 🔥❤️❤️
@Shootingstar-e6b
@Shootingstar-e6b 2 года назад
Best explanation sir Thank you so much:)
@anushagm2417-ml2qx
@anushagm2417-ml2qx Год назад
🙏tqsm sirrrrr
@karthikgonugunta7283
@karthikgonugunta7283 3 месяца назад
Thanks sir
@Kiddie91
@Kiddie91 Год назад
Just by listening to your explanation I'm able to code a very nice explanation sir.
@lalithasrisaimanasak9118
@lalithasrisaimanasak9118 3 года назад
Sir please do video on binary search for recursive and nonrecursive programs pls pls pls pls sir
@nikhilrajuttla3678
@nikhilrajuttla3678 Год назад
thanks a lot sirr
@sachin.l0har
@sachin.l0har 4 года назад
watched the full video with 1.25x speed .....sir you are awesome.......thank you sir....
@sainani.2703
@sainani.2703 Год назад
Ithani peru Ch Srinavs right haa
@pankajgarg9253
@pankajgarg9253 2 года назад
Sir apne bahut acha samjhaya
@sahilrawat7966
@sahilrawat7966 2 года назад
4:44 my bookmark
@sangramkeshariswain6028
@sangramkeshariswain6028 2 года назад
I found this is the best video in youtube for binary seach.......thank u so much sir....please sir make the complete data structure playlist for interview preparation
@tyrant7310
@tyrant7310 2 года назад
The great University of RU-vid never fails
@jimkookie8117
@jimkookie8117 Год назад
Tq sir
@abhasharma9622
@abhasharma9622 3 года назад
Thank u sir😊
@ramadevimadaka7832
@ramadevimadaka7832 4 года назад
Sir can explain for 34 which is in index 3 actually this is checking only for mid value Sir what about other value can u explain Sir plzzz
@jyothi.j8857
@jyothi.j8857 2 года назад
You are the best sir because you teach every sentences that's very nice and we are understanding very good
@anzalkhan4869
@anzalkhan4869 Год назад
Eloquent,Succinct, simply a beautiful explanation ❤️
@subbumotepalli
@subbumotepalli 3 года назад
Unsorted array how to search.which one is best
@ACE-yr8pq
@ACE-yr8pq 3 года назад
Linear Search
Далее
Linear Search | Logical Programming in C | Naresh IT
8:43
Insertion Sort | Logical Programming in C | Naresh IT
9:20
DAXSHAT!!! Avaz Oxun sahnada yeg'lab yubordi
10:46
Просмотров 515 тыс.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
Binary Search Algorithm | C Programming Example
11:41
Selection Sort | Logical Programming in C | Naresh IT
10:04
Bubble Sort  | Logical Programming in C | Naresh IT
11:10