Linear Search Algorithm in Data Structures | C++ Program to Implement Linear Search Algorithm

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 63

  • @SimpleSnippets
    @SimpleSnippets  5 років тому +18

    Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

  • @user-wïşhÿ
    @user-wïşhÿ 11 місяців тому +3

    Thanks.
    you help me to study for my final exam.
    pray for meto pass it.

  • @charugupta207
    @charugupta207 5 років тому +37

    Why this video have so less likes?? It was the best explanation for linear search so far! keep going bro, because of you I understood this concept quite well. Looking forward for your upcoming videos.

    • @SimpleSnippets
      @SimpleSnippets  5 років тому +7

      Thank you so much bro 😁 and yes buddy I'll be making many more videos. In the mean time check out full DSA playlist you'll find many more videos ✌️
      And on our channel we have 400+ videos currently 😁

  • @mohammednassf1741
    @mohammednassf1741 Рік тому +2

    I am an Egyptian student. Your explanation is very nice. Thank you for providing this information

  • @Lalinxdboom
    @Lalinxdboom Рік тому +2

    best channel for DSA with art explanation

  • @bikramchettri9405
    @bikramchettri9405 4 роки тому +1

    Happy that someone recommended this channel in comment box. Very helpful.

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +2

      That's amazing. Thanks to that person who recommended as well 😊🙏

  • @Shaillha
    @Shaillha 5 років тому +10

    Your explaination is crystal clear and to point. I understood the concept very well.
    I request to make a video on fibonacci search too.

    • @SimpleSnippets
      @SimpleSnippets  5 років тому +1

      Thank you so much Swapnil for such wonderful feedback. And guess what, you are in luck, I already have covered tutorial of fibonacci series & many more topics in my C++ tutorials course, Here is the link - ua-cam.com/video/AKNGgAXTark/v-deo.html

  • @vaibhavchafle2678
    @vaibhavchafle2678 3 роки тому +4

    Excellent teaching , I always follow your videos , looking forward for your upcoming videos.

  • @jayeshyedge7171
    @jayeshyedge7171 5 років тому +6

    Yet I didn't gone through this video. But then also I complimented because your videos ,as expected are excellent.

  • @yashsonawane905
    @yashsonawane905 3 роки тому +2

    I was about to comment add break once found element and see you have already shown that :)
    One more suggestion is that you could have used flag = 0 (initial) and then once found set flag = 1 and break out of the loop. So that explanation of your temp variable could be easier.
    I have one doubt regarding all searching algorithms though...What if we have duplicates?

  • @shamaleejayakodi409
    @shamaleejayakodi409 2 роки тому

    This was very helpful for me, Thank you so much ☺️

  • @sudheerm.s6792
    @sudheerm.s6792 5 років тому +1

    bro, thanks for the upload. lesson missed a lot , wil be back .keep it up , we are following you

  • @umerkhan8297
    @umerkhan8297 4 роки тому +3

    You didn't explain why temp is there?

  • @manikanth.8507
    @manikanth.8507 4 роки тому +2

    Why are you not using break statement in if(....) Loop when we got our condition!!

  • @jayeshyedge7171
    @jayeshyedge7171 5 років тому +2

    Really a very good video. Thanks a lot!!

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Thank you so much Jayesh for your positive feedback 😇 Please do share the video with your friends too ✌

  • @laxmannenavath6623
    @laxmannenavath6623 4 роки тому +1

    way of explanation is good

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Thank you very much. Please do share the videos with your friends too 😇

  • @RealRaze1
    @RealRaze1 3 роки тому +2

    what is linear soart ....iam confuse.. give ans and what is difference in seqvential and selection soart

  • @mhassankhan8677
    @mhassankhan8677 4 роки тому +2

    nice video! what if there are multiple occurrences of a number?

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      I suppose then you have to iterate through the entire list from start to end. ✌ Generally searching operations are performed on unique entities only

  • @saniyamansuri9607
    @saniyamansuri9607 3 роки тому +4

    Will it be okay to start this topic before linked list ?. Becouz as a beginner I am finding linked list hard.

    • @SimpleSnippets
      @SimpleSnippets  3 роки тому

      Yes you can start this topic before linked list. Check the full playlist for the appropriate order.

    • @saniyamansuri9607
      @saniyamansuri9607 3 роки тому +1

      @@SimpleSnippets thank you sir ,😄

  • @rohitpandey4
    @rohitpandey4 4 роки тому +1

    sir this program is not run in the code block properly plz suggest me sir

  • @hareshparab7808
    @hareshparab7808 3 роки тому +1

    thanku bro

  • @ThatLLMGuy
    @ThatLLMGuy 5 років тому +3

    Doesnt Linear Search have complexity O(n) ? What is the time complexity for the dividing array search?

    • @SimpleSnippets
      @SimpleSnippets  5 років тому +1

      Yes the complexity is O(n). ✌️ I'll discuss in detail about this after we cover searching and sorting algorithms 🤟

  • @onlytopwatch4516
    @onlytopwatch4516 4 роки тому +1

    is this algorithm is correct from exam point of view ?

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +1

      This algorithm is correct from every POV

  • @mallipallianusha7020
    @mallipallianusha7020 4 роки тому +2

    Why didn't u use else condition to print "Number is not found "?

  • @MANISHSHARMA-xk1su
    @MANISHSHARMA-xk1su 5 років тому +2

    Great...

  • @azharmohammedpillais8142
    @azharmohammedpillais8142 4 роки тому +2

    AMAZING!!!!11

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Thank you so much for such wonderful comment & feedback buddy. Very happy to hear this from you. Please do share the videos with your friends too. Thats the biggest help & support 😇

  • @emmanuelakpaklikwasi4300
    @emmanuelakpaklikwasi4300 7 місяців тому

    Pls can i know why temp = -1

  • @adiflorense1477
    @adiflorense1477 4 роки тому +1

    9:12 Sir, why you initialize temp = -1?

    • @ranjeet5806
      @ranjeet5806 3 роки тому

      did you waited for the end of the video or just typed this the next moment he initialised it?

    • @agirl2564
      @agirl2564 Рік тому

      @@ranjeet5806 bro shut up

  • @adiflorense1477
    @adiflorense1477 4 роки тому

    12:53 Sir, what's the difference between break and temp = 0? is it the same, right?

    • @ranjeet5806
      @ranjeet5806 3 роки тому +1

      clear the basics first man. watch his basics c++ video

    • @agirl2564
      @agirl2564 Рік тому +1

      @@ranjeet5806 dont be rude

  • @mallipallianusha7020
    @mallipallianusha7020 3 роки тому +1

    Bro , can u plz do a video of DP!

  • @suppirocky
    @suppirocky 3 роки тому +1

    Why wont you explain in C language.Most of the beginners know about C right?...But explaination was good thank you

    • @SimpleSnippets
      @SimpleSnippets  3 роки тому +1

      Cause I primarily started off with C++ only. Since majority of concepts in C are included in C++ with added OOPs I thought C++ would be the better route. What do you think ?

    • @suppirocky
      @suppirocky 3 роки тому

      @@SimpleSnippets Yeah, that's good. But, The C++ Prograning is not covered in our academics yet. Thank you...

    • @zainabbohra2915
      @zainabbohra2915 3 роки тому

      @@SimpleSnippets bro thankyou so much covering in c++

  • @expert77
    @expert77 11 місяців тому

  • @mahmad8767
    @mahmad8767 4 роки тому +1

  • @Zulu369
    @Zulu369 4 роки тому

    Terrible Indian accent. Barely understand what he is saying...

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +8

      Unfortunately that's not gonna change anytime soon. I'd suggest you check some other channel for similar topics ✌️😊

    • @pedro_642
      @pedro_642 2 роки тому +2

      @@SimpleSnippets Hey do not worry, the accent is not bad at all. Thanks for the video my friend!

  • @jayeshnikumbh5983
    @jayeshnikumbh5983 11 місяців тому +1

    best work man! teching code so simply that everyone can understand . thanks a lot bro @simplesnippets