Lec 9 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008

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

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

  • @asadanees781
    @asadanees781 5 лет назад +9

    Thanks you Professor Grimson and Guttag for such nice lecturers.

  • @Stewie111111111
    @Stewie111111111 7 лет назад +2

    36:27,on the growth order of the "selection and sort" algo: It's in quadratic order but more efficient than a purely quadratic algo. The total number of primitive steps is the sum of : n+(n-1)+(n-2)+...+1, a result of the decreasing suffix of the list, hence it's the sum of the arithmetic/Gauss series which is (n/2)(n+1), or (n^2)/2+n/2.

  • @v7w37
    @v7w37 22 дня назад

    I watched this my junior year of high school 16 years ago and it confirmed to me that i wanted to study computer science.

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

    I feel like this course has helped me improve my jezzball score ... the midpoint method works great 👍

  • @ek9581
    @ek9581 11 лет назад +5

    love these lectures!!!

  • @ai1888
    @ai1888 10 лет назад

    @DavidMadsen:'start+ 4k' is a constant given an index k. That is, for a list that consists of say only integers, you would skip a multiple of 4 memory cells to access any element (Integer has 4 bits). However, for a heterogeneous list (integers, characters etc.), the elements may be stored in varying number of bits, so you can no longer skip in multiples of 4, but of variable numbers (say x). This would be a linear relationship, depending on x.

  • @Zshazz
    @Zshazz 13 лет назад

    @DavidMadsen I'm assuming you're talking about 13:55.
    Think about it carefully. k is just a number (in this case, an index). If you do start + 4*k, it's the same if k is 0, 1, 50000... you still do start + 4*k only one time in order to find the element you're looking for.
    Later on in the video, he shows a linked list which would be linear time because to find the kth element, you must advance through the links k times.

  • @manojsm6344
    @manojsm6344 11 лет назад

    Arrays are basically set of elements of same name and same datatype .
    The array lists are the elements that are present in the array in the form of lists

  • @RohitSingh-nm9wd
    @RohitSingh-nm9wd 4 года назад +1

    Why do we need that j in bubble sort

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

      j is the number of times the loop is executed while i is the number of elements that are bubble sorted

  • @jooooooooooooj
    @jooooooooooooj 14 лет назад

    @Yazk17 yes. instead of having pointers, you could hold the next object in the current object.

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

    10:30

  • @Cr4y7-AegisInquisitor
    @Cr4y7-AegisInquisitor 7 лет назад +1

    thank you

  • @DerpTrollson
    @DerpTrollson 9 лет назад +6

    theres less tan 20 students there and some of them are on the back meaning they dont care about it yet this video has more than 50 thousand views, how is that possible when there are only 7000 people in the world?

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

    👍👍👍👍👍👍👍👍

  • @meatballstasteok8844
    @meatballstasteok8844 7 лет назад +10

    Does this guy ever put the right glasses on?

  • @ltshinta
    @ltshinta 15 лет назад

    Ive just been jumping around the vid. Are you referring to linked list @ 17:40? If so yes. There is a linked list class called LinkedList..Its in java.util if that helps

  • @TakaSuzukiJP
    @TakaSuzukiJP 14 лет назад

    I don't think we need to update the variable j in for j loop of selSort, that is, we can delete j = j + 1 in for j loop. Anyone agree?

  • @davidmadsen2761
    @davidmadsen2761 13 лет назад

    How is "start + 4*k" constant?
    Wasn't k linear, i.e. double k and you will essentially double the time to find it?

  • @CretaZigman
    @CretaZigman 12 лет назад

    yea I'm a little afraid of ps5, even as a semi experienced programmer of multiple languages haha that order stuff is seriously difficult to grasp, took me 2 days to get through the lecture to my liking. I'm committed to completing the course though!

  • @timwhittaker401
    @timwhittaker401 11 лет назад

    What's the difference between array and list?

  • @tarkandikmen8777
    @tarkandikmen8777 12 лет назад +2

    Its a technique to keep your attention. If his audibility stays the same, you could sleep before you realize.

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

      (Talk soft then loud) -> Iterate this. If talk at constant volume, the class will sleep. Same way highways need curves, if they are always straight then you fall asleep.

  • @Maeda_Toshiie
    @Maeda_Toshiie 7 лет назад +2

    I don't think the concept of pointers is really explained in the lectures. I get it because I know C beforehand.

  • @Kaleetos
    @Kaleetos 13 лет назад

    the camera doesn't show the code for selection sort :(
    Does anyone have it / know how to actually write it?

  • @PoisonedV
    @PoisonedV 12 лет назад

    Technically PS5 isn't due till the next video, based on their calendar. I haven't started it yet either. i think it was more that lecture 8 is really the first conceptually hard part to understand.

  • @CretaZigman
    @CretaZigman 12 лет назад

    Woo changed my mind, I like ps5! Not nearly as tough as I thought so far, I'm done the first 2 problems at least, without much difficulty.

  • @user-ke3wp7cn1i
    @user-ke3wp7cn1i 13 лет назад

    @recursion27 love your name . how appropriate

  • @laurabraga2758
    @laurabraga2758 9 лет назад

    Binary surch always halt.... Zeno's paradox isn't real for discrete elements.

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

    Mr. Eric Grimson, I would love to be your student

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

    he's a sugar crazed zombie! thank God 'apple, throwing out candy, foo and bar, python'

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

    Мv8

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

    I gotta get rid of this candy.

  • @jswstella
    @jswstella 11 лет назад

    I get all the lectures but I cant do the programming lol

  • @timwhittaker401
    @timwhittaker401 11 лет назад

    What's the difference between array and list?