Added: 3 years ago
From: UCBerkeley
Views: 38,069
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (41)

Sign In or Sign Up now to post a comment!
  • imagine if he just scratched his nails down the chalk board. 

  • he could get on my nerves. kinda pompous

  • Hot teacher lol

  • 7 mod -3 = -2 but 7 % -3 = 1

    % is the remainder operator. % is not a modulus operator.

    In java the remainder operator is designed to follow the following identity for all integers a and b such that b is not 0 (since n / 0 is undefined for all n):

    (a / b) * b + (a % b) == a

    So in the example, 7 % -3, we enter in the following numbers:

    (7 / -3) * -3 + (7 % -3) = 7

    Integer arithmetic discards partial numbers.

    (-2) * -3 + (7 % -3) = 7

    6 + (7 % -3) = 7

    (7 % -3) = 1

  • 'pus', 'goo'. LOL

  • If only other lecturers would be like him.

  • Dr. Schewchuk is an excellent lecturer! These videos have helped me so much!

  • he writes so cool lol

  • Great lecture.

  • Thank you, Professor Swag!

  • slow projector screen :P

  • I didn't know John Malkovich was a professor

  • I'm in love.

  • why dont all universities post online lectures.....

  • @jimmyjubejube because not all professors are open minded I guess.

  • @jimmyjubejube One of our professors said that it's forbidden to share data to the outside world, including footage/audio.. bah.

  • like the lecture..... funny handwriting nevertheless it helped me a lot!

  • Great teacher!

  • yay no homework for next friday!

  • Comment removed

  • Comment removed

  • Comment removed

  • Comment removed

  • Thanks for the upload. The lecture was a million times better than the lecture I attended in York University !

  • This is great! Thanks for putting these online!

  • he makes me remind John Malkovich with long hair :P

    nice lectures by the way !

  • so what about an associative array??

    are asssocitave arrays internally Hashtables...?

    for instance (in java script) if I have:

    //declare and initialise the associative array (dictionary)

    var dic = [];

    dic["hello"]="guten tag";

    dic["goodbye"]="aufwiedersehen­";

    dic["thank you"]="danke shoen";

    var translated_word = dic["thank you"];//finds the German translation

    ... any comments, opinions, answers???

  • i believe associative array or even the HashTable in Java is actually indexed by some tree. Just guessing

  • @sigimarti associative arrays are like elements in a hash table.

    Hash tables are structures used to store them.

  • For those who are looking for Hash Codes (and how to compute them), see the next lecture.

  • Comments on upper blackboards are so funny :) lol

  • Thanks..The lecture was very informative.

  • interesting. this is the only one I've really understood of the ones I've listened to.

  • Very helpful and nicelly explained :)

    Good work!

  • This is awesome, definitely helped me out in my data structures class.

  • rate me 1-10 n

Loading...
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