Added: 2 years ago
From: xoaxdotnet
Views: 50,884
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (31)

Sign In or Sign Up now to post a comment!
  • This explained to me in a few minutes what my professors been yapping to us for the past 2 weeks. Your a life saver!

  • OMG perfect I totally needed that!!! :)

  • Comment removed

  • thanks...

    very helping... :D

  • Where did the background music come from; it sounds very nice.

  • if its in C++ why do we need a size... aray.size()?

  • 2:03 if its less or equal? with a single code line you can check if its equal and only continue if its less, no need to search any longer if it is equal, but still great tutorial

  • Comment removed

  • Thanks. Extremely helpful.

  • you will also have to sort the binary array so that adds a lot of time well to the computer a lot of time.

  • Excellent video, very understandable.

  • good job with the thorough explanation.

  • Love your videos man. I got a programming test tomorrow u helped me alot! Cheers!

  • THNX :)

  • @MrDavidVuong I thought that at first, but think about it; that means one more test at every single step, so a 50% increase in time at each step; you're trading a potentially reduction in the number of steps, for an increase in the time each step takes. For more than a relatively tiny dataset, you're better not performing the equals test.

  • danke! :D

  • i hate binary and linear search over any other algorithms

  • the best!

  • really nice tutorial,but it will better if you will post an shortest path algorithm:P.

  • It's unfortunate that linear searches are sometimes needed, because the fastest known sorting algorithms are slower than O(n) in the average case, so sorting followed by a binary search is generally slower than a simple linear search.

  • @jelewis2 True, although if you're in a situation where you're going to be doing multiple searches on the dataset, it's probably worth the time to sort it once so you can perform binary searches.

  • great video guys :) while your other topics might not hit me as hard, your algorithms videos are just great, really been looking for tutorials like these. so great job :)

  • Awesome !

  • Thanks dude really good.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more