39 - BINARY SEARCH WITH EXAMPLE

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 299

  • @parthjadhav2501
    @parthjadhav2501 4 года назад +58

    Ur brilliant sir, ur life saviour in this lockdown period 🥺🥺

  • @SahilJadhav909
    @SahilJadhav909 3 года назад +16

    Sir, Hats off to you 😇
    You are such a great person on this planet 🌍
    Your heart is bigger💕
    You are a pure powerful💪 a Soul
    💕💕💕
    You are Knowledgeable person and you have excellent skills ,which everyone can understand by your teaching method

  • @laxmichulaki4903
    @laxmichulaki4903 3 года назад +16

    I m easily understood this concept sir and topic cleared within short period of time... Thank you so much sir!!

  • @deepthikommana6910
    @deepthikommana6910 6 лет назад +18

    really one of the clear and best explanation of algorithms

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +3

      hi deepthi
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

    • @swathirecipes333
      @swathirecipes333 4 года назад

      😃

  • @saimafatimashah4817
    @saimafatimashah4817 4 года назад +5

    for the first time I ENJOYED CODING thank you :)

  • @NehaSharma_nsds
    @NehaSharma_nsds 2 месяца назад +1

    Very amazing explanation sir ❤😊
    Thank you so much ❤❤😊

  • @harikrishna6021
    @harikrishna6021 3 года назад +3

    thank you sir for you to spending time on these classes we people make you proud definitely

  • @mamillasrihari5791
    @mamillasrihari5791 3 года назад +1

    Nice & neat example with clear picturization. Super explanation sir.....👏🏻👏🏻

  • @govindangovindan1653
    @govindangovindan1653 5 лет назад +1

    Your teaching is awesome please continue,thank you.

  • @aiswarya3461
    @aiswarya3461 6 лет назад +5

    Thank you sir for clear explanation and program. We expect more concepts related to data structures like stack,queue from you sir!! It would be really helpful sir.

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +1

      hi Aiswarya
      soon i will start uploading the concepts of data structures.
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

    • @manaswinisrilalitha9026
      @manaswinisrilalitha9026 6 лет назад

      @@sundeepsaradhi please make videos on above concepts mentioned by her sir..I really liked your teaching methods

  • @jabedumar9656
    @jabedumar9656 3 года назад +3

    Wonderful teaching ❤️ Thank you

  • @lilykumari2470
    @lilykumari2470 5 лет назад +1

    It's very simple to understand the the problem thanks sir you are great teacher

  • @gagangagan3674
    @gagangagan3674 3 года назад +2

    You are doing great job sir, superb!!!

  • @nageswarrao2848
    @nageswarrao2848 3 года назад

    U are great sir.If you are not there then it is very difficult to understand.Thank you sir.

  • @LeoMessi-cd5qg
    @LeoMessi-cd5qg Год назад +1

    You are my saviour, thankyou sir 🥺🥺

  • @ramyatg5306
    @ramyatg5306 3 года назад

    Super sir i have checked many videos but i not understood the concept but ur explanation is superb

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 2 года назад +1

    NICE SUPER EXCELLENT MOTIVATED

  • @gangadhar2327
    @gangadhar2327 4 года назад +1

    Thank you Anna.. I will say tqs from bottom of my Heart..

  • @Duffer_the_Hari
    @Duffer_the_Hari 3 года назад

    Sir, ur super sir
    Really I like your teaching and I had shared to my friends also

  • @srabanipal575
    @srabanipal575 6 лет назад

    Excellent explanation..... Easy can understood

  • @aravindsaipanasa47
    @aravindsaipanasa47 6 лет назад +4

    Excellent Teaching Skills

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

  • @jithendrayallapragada777
    @jithendrayallapragada777 3 года назад +1

    U re really alife saver who are watching ur videos mid night for 2morrow exam😂

  • @SUJOYPAULJOBS
    @SUJOYPAULJOBS 6 лет назад +2

    Nice video sir easy learn for c program... thank you sir

  • @deepjyotisinha1879
    @deepjyotisinha1879 3 года назад

    Awesome explanation, awesome speech, crystal clear

  • @deepthik7661
    @deepthik7661 3 года назад +1

    Sir I'm very comfortable with ur explanations... I'm wasting my money for College faculties 😁

  • @sathishkumarchenna3809
    @sathishkumarchenna3809 2 года назад +1

    Again we want to learn such type more videos

  • @hiteshmalladi6879
    @hiteshmalladi6879 Год назад

    Excellent explanation 👌 sir🙏🙏

  • @factoriaIND
    @factoriaIND 3 года назад

    best tutorial ever...😍😊🇮🇳

  • @pradeepranjan8226
    @pradeepranjan8226 3 года назад +2

    I tried this code but it's not getting proper output. Logis is cleared but in while(low it should be while(low

  • @Suniyedekhiye
    @Suniyedekhiye 6 лет назад +2

    Great teaching Sir . Thank you so much Sir.

  • @maulikbaraiya4933
    @maulikbaraiya4933 7 лет назад +1

    thank u sir...........this very much helpful for me.........plz sir keep on updating new program

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад

      hi maulik
      thanks for your interest towards our channel and definitely i will do that.

  • @nazeermohammed3797
    @nazeermohammed3797 6 лет назад

    Very good explanation sir....ur doing a great job....

  • @Gokul.S1212
    @Gokul.S1212 2 года назад

    Sir 👍 perfect i easily understand

  • @gangadhardas6207
    @gangadhardas6207 6 лет назад +2

    Thank you for explaining this in simple words. Very clear.
    How do I repeat a character from a given string. Eg: In a given string Wow,
    I want to repeat 'o' based on input n. If n=5, the string should look like Wooooow. Will be really helpful

  • @legendlegend6033
    @legendlegend6033 5 лет назад

    Super Guruji you made me to understand very well

  • @abrahammulat8002
    @abrahammulat8002 6 лет назад

    thank you sir, greate explanation you saved my time , 2 hours class just in 30 minutes

  • @harshlal6101
    @harshlal6101 6 лет назад +1

    Great explanation and it helped me to clear my concepts

  • @lavanyareddy1739
    @lavanyareddy1739 3 года назад +2

    If elements are not in ascending order then we should sort in ascending then we should do binary search sir?
    It will be lengthy program sir??
    Please reply sir

    • @deviprasanna2551
      @deviprasanna2551 3 года назад

      Yeah on that situation first we have to perform bubble sort or any sorting method after continue this same method

  • @tejeswarv450
    @tejeswarv450 6 лет назад

    Great explanation sir...........I understand

  • @gokulselvanravi2892
    @gokulselvanravi2892 5 лет назад +16

    Low < high
    Does not work
    Low

  • @manikandan2890
    @manikandan2890 5 лет назад

    Thank you for your fantastic explanation .... Sir.... I will not forget you....

  • @krishnavijay1843
    @krishnavijay1843 6 лет назад +2

    You have done brilliant job sir

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi krishna
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

  • @Hemalatha-o2m
    @Hemalatha-o2m Месяц назад

    Thank you sir ❤

  • @chendanateegalapally7014
    @chendanateegalapally7014 2 года назад

    sir if we have to print output as we found key at so and so position the what should be the code

  • @9894043641
    @9894043641 6 лет назад

    Ur video r nice and easy to understand

  • @tofikbuser8591
    @tofikbuser8591 3 года назад

    Thank you for teaching

  • @skrishnakishore1946
    @skrishnakishore1946 5 лет назад +1

    Thank you sir
    Great way of teaching !

  • @prabhuprasadlenka3724
    @prabhuprasadlenka3724 4 года назад

    really helpful sir ..thank you sir

  • @MaheshwariM-pj8gc
    @MaheshwariM-pj8gc 6 лет назад

    Thank u sir..U made this concept easy to understand.

  • @natanimadhurikarumanchimad9056
    @natanimadhurikarumanchimad9056 7 лет назад +8

    Sir ,the elements are in already in ascending order in case the elements are 90,50,78,54,34,23,87 like thus way how to search the element please suggest sir I can understand more clearly.

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад +8

      hi madhuri thanks for watching my sessions and
      The number you have mentioned are not in ascending order so if the numbers are not in sorted order then you can perform LINEAR search and if the numbers are in sorted order then you can perform BINARY search.
      Both the video links are available in our channel so plz go through and post your doubts in the comment section.
      Thank you.

    • @nehajaiswal3942
      @nehajaiswal3942 4 года назад

      If no are not sorted and still u want to perform binary search then arrange them in ascending order 1st. Its video is also on this channel

  • @Ragavendra_baktan
    @Ragavendra_baktan 6 лет назад +2

    very nice explanation ...please make videos on data structures and java also sir!!

  • @venuyada1673
    @venuyada1673 7 лет назад +1

    TQ sir u made this concept easy..

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад

      hi venu thank for your interest towards our channel. Keep following my sessions.

  • @venkateshnarayann6981
    @venkateshnarayann6981 2 года назад

    Excellent teaching

  • @pulivarthiavinash1908
    @pulivarthiavinash1908 4 года назад +2

    Sir I can't understand the mid=(low,+high)/2 is 2.5 you take mid value is 2 why sir please explain clearly

    • @sundeepsaradhi
      @sundeepsaradhi  4 года назад +2

      Hi
      In c programming
      If both numerator and denominator are integers then result will also be integer

    • @pia4637
      @pia4637 4 года назад +1

      to get the mid value, you have to use the floor function. floor function gives the greatest INTEGER less than or equal to the given input value.
      for example:
      floor(2.4) = 2, since 2 is the greatest integer less than 2.4
      whereas if you take the ceiling function, floor(2.4) = 3 because it is the least greater integer to the given value.

  • @swatipradhan8722
    @swatipradhan8722 6 лет назад

    Sir!! It shows key not found when input is 20..Please kindly tell me how to solve this.

  • @remixgajala3425
    @remixgajala3425 5 лет назад +1

    Nice explanation

  • @adityanarayan1346
    @adityanarayan1346 4 года назад +4

    Sir you forget about floor function at the program time .
    But still it is understandable ....liked your video 👌👍

  • @Duffer_the_Hari
    @Duffer_the_Hari 3 года назад

    Sir in binary search
    I f elements are not in sequence wise what we should do sir
    I mean 90,45 ,35 ,40,50,65

  • @srikavyaswarna4122
    @srikavyaswarna4122 Год назад +1

    Sir .. Why we will use flag ?? there

  • @ramya.ponnadait2852
    @ramya.ponnadait2852 3 года назад

    Sir, program is not executing properly..even when search key is found it is saying not found..can you please add executetable program in description.

  • @tomjerrytomjerry7154
    @tomjerrytomjerry7154 3 года назад

    No words sir 🙏🙏🙏
    You explanation is really really very helpful...
    🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @ramakrishnachowdary3378
    @ramakrishnachowdary3378 6 лет назад +1

    Thanks sir for such a good explanation

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi ramakrishna
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @habtamumolla-m5p
    @habtamumolla-m5p Год назад +1

    thank you

  • @chirag8503
    @chirag8503 4 года назад

    great work sir🤙🤙

  • @ananya696singh
    @ananya696singh Год назад

    Sir, what is the purpose of taking the flag variable?

  • @Mohdtahanaqvi
    @Mohdtahanaqvi 6 лет назад

    Thank u so much sir for better explanation

  • @saikumarvirat1046
    @saikumarvirat1046 6 лет назад

    Tq sir for giving us good lecture but sir i want videos on java by your teaching..

  • @jawaharreddyandluru2911
    @jawaharreddyandluru2911 3 года назад

    Sir in if statement if we will not use break then what will happens

  • @sachintha49
    @sachintha49 3 года назад

    great explanation. thank you

  • @toshan1981
    @toshan1981 4 года назад

    Super sir you are easily understandable

  • @amulurumamatha3724
    @amulurumamatha3724 4 года назад

    Tq for clear explanation...sir

  • @ssekarobert8247
    @ssekarobert8247 5 лет назад +1

    hello sir i have tried it out but am getting not found as the outcome what could be my mistake thxs

    • @sundeepsaradhi
      @sundeepsaradhi  5 лет назад

      Hi
      Send me your code to askme.selflearning@gmail.com

  • @tejeswarv450
    @tejeswarv450 6 лет назад

    Sir make more videos your explanation is awesome .......

  • @shivannanc8493
    @shivannanc8493 6 лет назад +7

    Sir can you explain how to write a simple program in function

  • @AmandhuAkshay
    @AmandhuAkshay Год назад

    Hlo sir bainary search is not executed sir plz tell mee

  • @chithrap7405
    @chithrap7405 4 года назад

    Mid variable is not declaired and the program will give key not found if the l value 50 is at 0th or 1st index position

  • @karishmashaik2729
    @karishmashaik2729 3 года назад

    excillent explanation sir

  • @user-qp1lg4uh8b
    @user-qp1lg4uh8b 4 года назад

    Really sir u are too good 😇

  • @jahidrana8692
    @jahidrana8692 3 года назад

    You are boss sir..♥♥

  • @chiluvurideepthi6822
    @chiluvurideepthi6822 4 года назад

    Great explanation sir

  • @saipurnimakosuri1135
    @saipurnimakosuri1135 3 года назад

    i do not understand why is low is greater than high,pls explain

  • @eeeengg8669
    @eeeengg8669 7 лет назад +5

    Good explanation sir....
    👍👍👍👍👍👍
    Please also make videos on java

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад

      hi
      thanks for your support towards our channel and soon i will do that.

  • @whatwelearntoday
    @whatwelearntoday 5 лет назад

    Sir u r great 👍👍👍👍

  • @manikandan2890
    @manikandan2890 5 лет назад

    Awesome explanation

  • @PriyashaThisSide
    @PriyashaThisSide 5 лет назад

    Your video is very good

  • @arshiyatolhaayeza2245
    @arshiyatolhaayeza2245 6 лет назад

    Thank u sir for your perfect teaching.

  • @aswinkumar3431
    @aswinkumar3431 6 лет назад

    Which type of date type will be used for storing the mid value sir??

  • @mandaudaykiran2106
    @mandaudaykiran2106 4 года назад

    Sir super explain very good

  • @bobbybindela1959
    @bobbybindela1959 3 года назад +1

    Sir how to arrange these values if they were not given in a proper order?

    • @deviprasanna2551
      @deviprasanna2551 3 года назад

      Yeah on that situation first we have to perform bubble sort or any sorting method after continue this same method

  • @devanshisoni3532
    @devanshisoni3532 6 лет назад +3

    If key

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi soni
      you are correct.
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

    • @devanshisoni3532
      @devanshisoni3532 6 лет назад +4

      Thank you sir
      My question is why we store mid-1 in high?

    • @jimmymesa
      @jimmymesa 4 года назад

      @@devanshisoni3532 It's because the key cannot be at an index > mid when a is sorted in ascending order and key < a[mid]. Therefore, the indices from mid to high can be ignored and high updated accordingly.

  • @lohithasuper8311
    @lohithasuper8311 Год назад

    without writing program an we an we write ode in exam is it help us to gain marks

  • @karthikkudathini9615
    @karthikkudathini9615 5 лет назад

    Helped me a lot 🙏🙏🙏🙏

  • @venkatavinashnomula5765
    @venkatavinashnomula5765 5 лет назад

    Sir, you are just awesome!

  • @thahauvaiseak2502
    @thahauvaiseak2502 4 года назад

    Sir,In this program how can we apply the floar function...?

  • @bigvlogger2940
    @bigvlogger2940 3 года назад

    Sir when can we use while loop and for loop. Can binary search be done with for loop also

  • @shriyaverma159
    @shriyaverma159 6 лет назад +2

    sir program is not executing if ve go mid-1
    suppose if u tak key as 20 then it is nt able to locate kindly explain this aspect also

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi shriya
      plz send me the program so that i will check and correct it.
      you can send to askme.selflearnning@gmail.com

    • @shriyaverma159
      @shriyaverma159 6 лет назад

      Sundeep Saradhi Kanthety thanq sir ! I found my mistake ! And corrected it

    • @petlagnaneswararao2639
      @petlagnaneswararao2639 3 года назад

      @@shriyaverma159 can you please tell me what is the mistake that you done because I too not getting when key=20.

  • @codewithnitesh5269
    @codewithnitesh5269 4 года назад

    sir no word for your praise😘love u sir

  • @koushiksubramani210
    @koushiksubramani210 3 года назад

    sir when u r doing program how the high value become index 4

  • @rangamannar1558
    @rangamannar1558 6 лет назад

    Thank you sir...Perfect explanation....

  • @anagondiobulesu9932
    @anagondiobulesu9932 Месяц назад

    Sir sprrr ❤❤