Upload

This video is unavailable.

Barack Obama - Computer Science Question

weedipikia weedipikia·2 videos
92

Subscription preferences

Loading...

Loading icon Loading...

Working...
791,059
Like     Dislike 99

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like weedipikia's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike weedipikia's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add weedipikia's video to your playlist.

Uploaded on Jan 26, 2008

Barack Obama gets asked a computer science question by Google CEO Eric Schmidt.

Full interview: http://www.youtube.com/watch?v=m4yVlP...

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Top Comments

  • engiiiiii

    people always hating on BubbleSort even though an optimized all purpose sorting algorithm uses QuickSort(large arrays) and BubbleSort(small arrays)

    And since QuickSort recursively creates smaller arrays.. guess who does the actual sorting

    · 35

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate engiiiiii's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate engiiiiii's comment.
  • Maxim Ivanov

    Sorry, but the statement that BubbleSort is practically used for smaller arrays is not correct, or at least not up-to-date.

    However, it is true that contemporary general-purpose sorting routines will switch the sorting technique once the array chunk being sorted becomes small enough to fit in the processor cache. Often this will be a variation of insertion sort -- but not bubble sort, ever.

    Also Python's TimSort is kicking the ass of small array sorting, and is the default in Java 7, etc.

    · 28

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Maxim Ivanov's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Maxim Ivanov's comment.
    in reply to engiiiiii (Show the comment)

Video Responses


All Comments (1,531)

Sign in now to post a comment!
  • danrayson

    I recommend using dancing african hound hogs dressed in turquoise suits to do it. But blowing bubbles is fun too :)

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate danrayson's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate danrayson's comment.
  • VillageIdiot453

    BubbleSort is not the best sort for any possible case except already sorted list, in which there are other sorts which are equally as good. .

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate VillageIdiot453's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate VillageIdiot453's comment.
    in reply to engiiiiii (Show the comment)
  • Benny Mirahy

    I thought he said BUBLESAUR lol

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Benny Mirahy's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Benny Mirahy's comment.
  • Daniel Pendergast

    Hahaha. The interviewer got all embarrassed.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Daniel Pendergast's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Daniel Pendergast's comment.
  • sailorbob74133

    Actually, 1.386 n lg n is the expected average case run time. But yeah, theoretically the worst case is n^2, but as you note you pretty much have to be intentionally trying to break quicksort to get that.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate sailorbob74133's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate sailorbob74133's comment.
    in reply to Trent Houliston (Show the comment)
  • Trent Houliston

    That's assuming a best case scenario, in a worst case scenario quick sort is O(n^2), but in general I agree with you (O(n^2) you pretty much have to be trying to break quick-sort)

    Come to think of it, Timsort is pretty damn good too, that would be worth trying also

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Trent Houliston's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Trent Houliston's comment.
    in reply to sailorbob74133 (Show the comment)
  • sailorbob74133

    The range of your 32 bit integers is 0 -> 2^32-1 and the largest practical base you could use might be 2^16 giving you a run time of 10^6*log_{2^16} 2^32 + 2^16 * log_{2^16} 2^32 = 10^6*2 + 2^17 = 2131072 operations. By contrast randomized quicksort of 10^6 32 bit integers would have an expected running time of 1.386 * 10^6 which is almost twice as fast.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate sailorbob74133's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate sailorbob74133's comment.
    in reply to Trent Houliston (Show the comment)
  • DavidVonR

    SocialistSort, which sorts the tax base of the US and redistributes wealth to moochers. O(log n) algorithm.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate DavidVonR's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate DavidVonR's comment.
  • Jeorney

    unsort() is the fastest

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Jeorney's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Jeorney's comment.
  • Loading comment...
Loading...
Loading...
Working...
Sign in to add this to Watch Later