CS50x 2024 - Lecture 3 - Algorithms

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

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

  • @paul6096
    @paul6096 4 месяца назад +155

    This class is absolutely wonderful. I'm a 75 year old retired computer network engineer with multiple grad degrees in computer science (in the early 80's, long before Windows). I haven't programed in C (I also did Pascal, Dbase, and SPSS) in over 35 years. Network work was rather different. This class has given me the opportunity to revive some dormant brain cells, dormant from age and the effects of a stroke 10 years ago. It's very satisfying to be able to do this work again. Thank you for this class. I look forward to finishing this class and continuing on to the to the Python programing class and any other of these class that are available. One step at a time.

    • @davidjmalan
      @davidjmalan 4 месяца назад +22

      Glad you've enjoyed so!

    • @chamyn8995
      @chamyn8995 3 месяца назад +4

      Thanks for your contribution to the computer sciences, grandpa.

    • @MadhusudanSinha
      @MadhusudanSinha 3 месяца назад +1

      I am 33 and had a feeling that I might be late to programming. Thanks Gramps.

    • @504octo
      @504octo 2 месяца назад +1

      Same boat here! I'm having lot of fun with this class for the 1st time 25 years Network Engineer with multiple specs. I've learned Cobol and Qbasic for games even before win 3.11. Got into Video Games Dev this year and learning C and then Python. I was stressed by it. However, I guess my prays were listened and the Internet algorithm led me here. The same as you, my programming brain cells were dormant but this course is getting them out of sleep and the results, are impressive!

    • @algirdasltu1389
      @algirdasltu1389 Месяц назад

      Damn thats a long time ago... cant imagine getting those degress when there was barely any abstraction and c was the highest level you had...

  • @Hellmiauz
    @Hellmiauz 2 месяца назад +20

    What a time to be alive. Thanks David for leaving this legacy to humanity for those who can't attend harvard. I finished CS50P and now fighting my way through CS50X. Hopefully I can complete it before the year ends😊

  • @OuviUmaHistoria2024
    @OuviUmaHistoria2024 10 месяцев назад +84

    The experience of studying this course is amazing, I feel that I´ve learned more in the last weeks that I´ve learned in a full year of a Technologist Degree

    • @MrArkaneMage
      @MrArkaneMage 8 месяцев назад +3

      Yes, especially the "training" wheels make things way more clear plus once you try to translate it into "real C" you really learn a lot in the process.
      No degree here but this course is pure gold for everyone interested in PCs, coding, etc.

    • @CườngNguyễnPhú-n2i
      @CườngNguyễnPhú-n2i 7 месяцев назад

      same to me haha 😅

  • @luxxer9591
    @luxxer9591 9 месяцев назад +188

    I love the fact that they dont put ads, full concetration Mode [on]

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

      I think the monopoly game was an ad 😅

  • @divineihemadu3287
    @divineihemadu3287 2 месяца назад +6

    The fact that I'm getting Harvard level of education at no cost( except for the cost of internet connection) is just amazing. David Malan is so awesome and I would love to one day teach the newer generation what I've learned as passionately as this man❤😊

  • @hamidrezaparand4909
    @hamidrezaparand4909 10 месяцев назад +69

    This course is just amazing. And how good of a teacher is he is 🥶

  • @sandevv-k7q
    @sandevv-k7q 11 месяцев назад +131

    I can't believe this that this level content is free!,

    • @toke7342
      @toke7342 9 месяцев назад

      Why not?

    • @saqib7685
      @saqib7685 9 месяцев назад

      @@toke7342 because they some course which are shit expensive but are not as good as this

    • @valentina7901
      @valentina7901 7 месяцев назад +23

      @@toke7342 you have madd comprehension skills

    • @purelyjoel6428
      @purelyjoel6428 3 месяца назад +2

      you should, also all education should be ;) like living and food. or at least Basic needs shouldnt be smth you make profit with.

  • @shizaikhlaq6096
    @shizaikhlaq6096 5 месяцев назад +12

    WHAT A BOUNDING, what an engagement. i have never used to watch 30 minutes long video and I am watching thee series complete and without getting bord. allah bless the team who are arranging such amazing content for us , blessed people are those who are sitting in different countries and are getting this god gifted channel as a gift becoz normally we are unable to find such amazing and accurate content. Amazing amazing , hats of to David Malon and the teams managing this amazing channel. i don't have words to praise. superb superb and superb. allah gives you the whole world's success

  • @deutschWallah
    @deutschWallah 6 дней назад

    Nobody, literally nobody on this planet can teach C, Linux and DSA like David Malan. Hats off to you Sir. I have been in this field for around 20 years now and I learnt and cleared a lot of things myself. Respect and love to you Sir :)

  • @Kylian19
    @Kylian19 19 дней назад +1

    this guy is my dream teacher, and just for free available on youtube is amazing!

  • @GrantReinauer
    @GrantReinauer 10 месяцев назад +136

    Seriously? 4k? HDR? Not only are the lectures amazing but so is the watching experience!!

  • @palomasentadaestoysentado9096
    @palomasentadaestoysentado9096 7 месяцев назад +12

    I really like this teacher, its very good capting attention

  • @stevenlomon
    @stevenlomon 8 месяцев назад +12

    Having blast going through this and doing the Problem Sets!! David is one of the most enthusiastic teachers I've ever seen and he explains things so wonderfully

  • @reynonquirimit6075
    @reynonquirimit6075 11 месяцев назад +57

    I vow to complete this program this 2024
    No more excuses!

    • @misterguy
      @misterguy 9 месяцев назад +1

      And did you?

    • @reynonquirimit6075
      @reynonquirimit6075 9 месяцев назад +3

      @@misterguy Sadly not yet, currently stucked on week 5.
      It's difficult but i'd still keep going forward

    • @misterguy
      @misterguy 9 месяцев назад +1

      @@reynonquirimit6075 stuck on what, understanding the lecture, or doing the assignment that comes with it?

    • @BANTY-ie1ik
      @BANTY-ie1ik 9 месяцев назад +2

      @@misterguy assignment

    • @reynonquirimit6075
      @reynonquirimit6075 9 месяцев назад

      @@misterguy yeahh, currently stucked on pset5. Been quite busy

  • @badguy7432
    @badguy7432 6 месяцев назад +37

    they briefed through everything without touching the codes yet. Sorting, binary search, recursion, structs, even 'scanf and fgets' are simplified with get_string. Man, the amount of stuff they teach yet the depths of it being touched in lectures is insane

    • @badguy7432
      @badguy7432 6 месяцев назад +5

      arrays are introduced without the talk about pointers too, culture shock for yall if yall go on into cs facing passing by reference and value

    • @ludwigthedwarf7678
      @ludwigthedwarf7678 5 месяцев назад +1

      Indeed, i do have no idea what pointers are and what you mean by reference and value

    • @barmiro
      @barmiro 5 месяцев назад +5

      @@badguy7432 the next lecture is about pointers, also the problem sets go much deeper. I'd say the lectures just touch on the basics and all the learning is actually done by coding.
      I'm also not a fan of the cs50 library, especially stuff like get_string and get_int, but I get why they decided to do it I guess.

    • @badguy7432
      @badguy7432 5 месяцев назад +2

      @@barmiro yeah figured, speak of the devil. Albeit, the sorting methods should’ve been way more in-depth in the lectures. This is way too fast for freshmen to comprehend especially mergesort in anything but c.

    • @besegawG
      @besegawG 5 месяцев назад

      @@badguy7432 where do you suggest I go learn about this in depth?

  • @FigueMonk
    @FigueMonk 7 месяцев назад +6

    Learning all this free is awesome, God bless Internet

  • @marveII0us
    @marveII0us Год назад +20

    Thanks prof David

  • @MatthewIrizarry-4
    @MatthewIrizarry-4 11 месяцев назад +12

    Talking during 44:00 about return values…. In C, you can also return EXIT_SUCCESS or EXIT_FAILURE to make the code more readable

    • @mtarik0
      @mtarik0 11 месяцев назад +1

      That's a useful tip! I think it would be nice in small projects like we do in this course but in case of a large project, you may need to see what value the program returns with, like returning 1132 could help a programmer point which code snippet to deal with. Is that capable of doing so?

    • @MatthewIrizarry-4
      @MatthewIrizarry-4 11 месяцев назад +2

      @@mtarik0 You could just define a constant value to accomplish this. Say you wanted Error 653 to be an I/O error or BufferOverflow, whatever you wanted.
      #define BUFFER_OVERFLOW_ERROR 653
      And when you used the BUFFER_OVERFLOW_ERROR it will return 653😁

    • @mtarik0
      @mtarik0 11 месяцев назад +1

      Is it possible to use both? If so, in the context of returning values as well as being helpful to a programmer, I feel like it becomes a bit redundant with this way. I might have missed your point though.@@MatthewIrizarry-4

    • @Nunoflashy
      @Nunoflashy 11 месяцев назад +2

      @@mtarik0 If your question is whether you can use both the number and the #define (constant), then yes, you can use both. The point of using #defines and constants in general is to make the code more readable. If you were to return that "653" code any time you had an I/O error for example, you probably wouldn't know what it meant, whereas with a descriptive name such as BUFFER_OVERFLOW_ERROR, you'd know exactly what it means and where it should be used.

    • @mtarik0
      @mtarik0 11 месяцев назад

      I wanted to ask whether it is possible to use EXIT_FAILURE and BUFFER_OVERFLOW_ERROR by #define (constant)@@Nunoflashy

  • @lawfpv
    @lawfpv Месяц назад +1

    I was a little worried when we brought up recursion with like 30 minutes left to explain it, but the section on merge sort was very enlightening as to the sequence that a recursive algorithm takes when solving a problem. Thanks!

  • @The.Oh1183
    @The.Oh1183 6 месяцев назад +69

    David: "Questions?"
    Me: "Can you repeat EVERYTHING?!"

    • @noah26blanco
      @noah26blanco 6 месяцев назад +15

      Exactly! I wish I could’ve been there to ask some questions myself 😂 because apparently everyone sitting there is a genius

    • @mariatanya3533
      @mariatanya3533 2 месяца назад

      @@noah26blanco Lmfaoo exactly! Like wow so y'all just understood that the first time? Ok then

  • @seeblu
    @seeblu 11 месяцев назад +124

    I vow to complete this program this year. Started in December of 2023.

  • @TALHA-hr6xf
    @TALHA-hr6xf 4 месяца назад +2

    key learning point; The cs50 duck always has been and always will be.

  • @kingillager
    @kingillager 4 месяца назад +10

    1:45:31 that silence, I felt that 😢

  • @sk45293
    @sk45293 10 месяцев назад +19

    Recursion is wild

  • @dimaborovski1865
    @dimaborovski1865 2 месяца назад

    The fact that this level of education is absolutely free is mind boggling to me
    God bless the internet ❤

  • @magma4168
    @magma4168 Месяц назад +2

    Amazing lecture!
    And shout-out to Sam's hair 💖

  • @이이이-g4f2y
    @이이이-g4f2y 7 месяцев назад

    1:53:28 How to merge: The computer points to the first value in each of Lists (3 6) and Lists (1 4). Compare the two pointers and place the smaller value between 3 and 1 in the new list above. The left pointer still points to 3, and the right cursor now points to 4 . (num 1 went up) Compare the size of the two 3 and 4. Of the two, 3 is smaller, so put 3 in the list above, to the right of 1. Repeat this...

  • @freelance-writer
    @freelance-writer 5 месяцев назад

    Getting students up on stage and doing these "live body" exercises is such a great teaching method.

  • @Nillipilli
    @Nillipilli 7 месяцев назад +1

    Amazing video again. Really love the way how you explained running time, especially as I struggled understanding it during my studies but your explanation was really on point, thanks for that :)

  • @BaraBarabere.
    @BaraBarabere. 10 месяцев назад +14

    intro music GOAT!

  • @riyajath_hmd
    @riyajath_hmd 11 месяцев назад +6

    Can't watch the lessons yesterday, as I was travelling. Finished the lecture 3 today and feeling more excited.

    • @noah26blanco
      @noah26blanco 6 месяцев назад

      Are still as excited after 5 Months? 😏

  • @nandinimatham8811
    @nandinimatham8811 2 месяца назад

    great lecture. most amazing way to explain sorting algo.
    Feedback: Bubble sort algo: running time is: (n-1)(n-1) = (n-1)^2, ignoring the -1 for laaaaaarge numbers, we directly get n^2, O(n^2)

  • @Ametherius
    @Ametherius 9 дней назад

    David is an amazing teacher. I’m doing the free EDX course which has assignments and stuff to help you out even more. But the main thing I notice in all these videos is he’s worn the same outfit in every lecture so far

  • @littlebrotha123
    @littlebrotha123 6 месяцев назад

    i've watched some vids on recursion before, but this one, though it took its time, was one of the most eye opening ones. merge sort really gave me an "aha" moment as far as the power of recursive sorting

  • @robertdiasmello
    @robertdiasmello 2 месяца назад

    Robert from Brasil 🎉 Another excellent lesson! 🎉

  • @MaximeFontaine-ou3qc
    @MaximeFontaine-ou3qc 7 месяцев назад +3

    I can't believe you can actually call John Harvard ... Mr Mallan, this was genius.

  • @BaibhavDeka
    @BaibhavDeka 11 месяцев назад +3

    void selection_sort(int array[], int size)
    {
    // size = no of elemnts in the array
    for (int i = 0; i < size - 1; i++)
    {
    int smallest = array[i];
    int j1 = i;
    for (int j = i+1; j < size; j++)
    {
    if (smallest > array[j])
    {
    smallest = array[j];
    j1 = j;
    }
    }
    if (j1 != i)
    {
    int temp = array[i];
    array[i] = smallest;
    array[j1] = temp;
    }
    }
    return;
    } // code for selection sort

    • @chongxian7608
      @chongxian7608 11 месяцев назад

      why didnt he teach this tho. im pretty sure there would be better ways, kinda dissapointed about the later part of the lecture......

    • @loldoctor
      @loldoctor 11 месяцев назад +6

      @@chongxian7608Because he's setting up for the next lecture about memory. There are probably bitwise methods that would be blazing fast, but the point of the class is to teach CS concepts not how to optimize code.

  • @BaibhavDeka
    @BaibhavDeka 11 месяцев назад +4

    void bubble_sort(int array[], int size)
    {
    // size = no of elemnts in the array
    for (int i = 0; i < size - 1; i++)
    {
    // compare adjacenies
    int no_swaps = 0;
    for (int j = 0; j < size - 1 - i; j++)
    {
    if (array[j] > array[j+1])
    {
    int temp = array[j];
    array[j] = array[j+1];
    array[j+1] = temp;
    no_swaps++;
    }
    }
    if (no_swaps == 0)
    return;
    }
    return;
    } // code for bubble sort

  • @pi70s
    @pi70s 26 дней назад

    omega denotes the minimum possible steps to run an algorithm
    O notation denotes the maximum possible steps to run the algorithm efficiently
    selection sort :- goes through the array and finds out the least element and puts it on the far left side
    it keeps repeating this process until all the elements are sorted
    bubble sort :- the elements compare themselves with the adjacent elements repeatedly to organize themselves
    modified version of bubble sort :- if already arranged, quit
    therefore, bubble sort is omega of n whereas selection sort is n^2
    merge sort(better than ss and bs) :- sort left half of an array then the right half and merge them
    O of nlog n
    recursion:- recalling the function in itself(for example factorial function)

  • @akfdglkjadfgjl
    @akfdglkjadfgjl 27 дней назад

    I surely would have finished my CS study, if the teachers and students were this charistmatic. CS at TU Delft in '98 wasn't really the place to be.
    Great course for learning the basics and history, that I skipped!

  • @4562-j7y
    @4562-j7y 11 месяцев назад +38

    crazy how mixed the attendance is! Last year in my first CS class at University (in germany) we had like 15 girls and 200 dudes, the atmosphere here seems much more open

    • @troyyey4353
      @troyyey4353 11 месяцев назад +6

      hows is that relevant ? why you even care about that ?

    • @4562-j7y
      @4562-j7y 11 месяцев назад +39

      @@troyyey4353 how is it not relevant? Why should I not care about it?

    • @troyyey4353
      @troyyey4353 11 месяцев назад

      im not sure if you are joining the course for the right reasons if one gender is more present than the other can effect your decision , im not sure what are you worried about @@4562-j7y

    • @st.bimbam
      @st.bimbam 10 месяцев назад

      Because diversity is a good thing@@troyyey4353

    • @ernie5229
      @ernie5229 10 месяцев назад

      @@4562-j7yYou are so a girl. You are why there were only 15.

  • @nikosworks
    @nikosworks 4 месяца назад

    the best way of teaching

  • @xuenf
    @xuenf 8 месяцев назад +19

    Sam is just chaotic adorable

  • @zinmyolatt1386
    @zinmyolatt1386 3 месяца назад

    I love this one! it's so fantastic!

  • @GenZ_01_
    @GenZ_01_ 5 месяцев назад

    Nothing short of gold!

  • @bagumamartin
    @bagumamartin Месяц назад

    Watching this one here in preparation for tomorrow's internship interview 🙌

  • @Amauryzau
    @Amauryzau 3 месяца назад +1

    1:33:00 (Recursion section)
    Why is the
    if ( n

    • @Filnaei
      @Filnaei 2 месяца назад

      do you still need help?

  • @aasrp661
    @aasrp661 4 месяца назад +2

    1:05:51 Gangsta dap up 😎

  • @Creative_wazz
    @Creative_wazz 3 месяца назад

    love from student aka fan , David! Thankyou

  • @sehlkd4r1nc31
    @sehlkd4r1nc31 4 месяца назад

    Thank you, you are the best, i have not idea but i am learning

  • @thefloatingrock
    @thefloatingrock 4 месяца назад

    David is the GOAT

  • @MohammedAbbasSyed-k5n
    @MohammedAbbasSyed-k5n 3 месяца назад +3

    11:06 i saw a girl most probably trying to raise her hand for answer but unfortunately david didn't saw her as he was looking in another dircetion , i felt the pain of her

  • @brandoncarris9015
    @brandoncarris9015 5 месяцев назад +1

    1:05:52 insane 180 dap

  • @GilbertoGalindez-y8x
    @GilbertoGalindez-y8x 6 месяцев назад +13

    I'm in love with Sam button ❤

    • @PerceyIchorre
      @PerceyIchorre Месяц назад

      we all are bro, shes the official math major mascot

  • @bwaco7004
    @bwaco7004 11 месяцев назад +2

    cant wait to make sense of this through rigorous labs

  • @WizeChoice
    @WizeChoice 9 месяцев назад

    Amazing 👉🏾✨✨✨

  • @Zangetsu-gaTensho
    @Zangetsu-gaTensho 3 месяца назад +4

    that draw recurrsion code makes no sense to me
    its literally calling draw() before ever drawing everthing
    Edit: so I got it now and this shit blew my mind 😭
    (For anyone in my position, it's something like this if you put n = 2...
    The flow of commands is like I numbered below
    1: draw(2) is called
    2:N becomes 1
    10: from step 9 execution
    Comes here as draw(1)
    was called here
    11: loop runs 2 times
    12: exits (goes back to
    main)
    3:Draw(1) is called
    4:N becomes 0
    7: 0 is returned from step 6
    8: Loop runs 1 times
    9: exits
    5:Draw (0)
    6:Returns 0 to draw(0) place

  • @muinfinityy
    @muinfinityy 15 дней назад

    hey, quick question:
    i started this course earlier this year but I was unable to finish it, and I don't think ill be able to make it to the deadline. i plan on redoing it in 2025. would I be flagged for plagiarism if I reused my previously finished assignments and submitted them?

  • @dheerajnihalani2430
    @dheerajnihalani2430 3 месяца назад +1

    20:20 Sam trying to help him, but was the wrong box

  • @sourabhhsethii7292
    @sourabhhsethii7292 6 месяцев назад

    Day 3 : Completed!

  • @botify9400
    @botify9400 10 месяцев назад +2

    Summary
    CS50x 2024 - Lecture 3 focuses on algorithms and implementation. It explores the concept of thinking algorithmically and how to solve problems using code. The lecture uses examples such as searching for a number in an array to demonstrate different algorithms.
    Highlights
    The lecture emphasizes the importance of thinking algorithmically.
    It discusses the concept of dividing and conquering a problem to find a more efficient solution.
    The lecture introduces the idea of arrays and their characteristics, such as being contiguous and potentially unordered.
    [🔍] The lecture uses the example of searching for a number in an array to explain algorithms.
    [📚] It relates the concept of divide and conquer to various real-world scenarios, such as searching contacts in your address book.
    [🔢] The lecture highlights the importance of understanding how data is stored in memory and how it can be accessed using arrays.

  • @anukritis1297
    @anukritis1297 8 месяцев назад +1

    The course is awesome.Have reached lecture 3. But I am unable to understand recursion program. I get the theory but not exactly how we are getting the pyramid. If draw(n-1) is implementing value of n should reduce yet on printing value of n instead of # output is
    1
    22
    333
    How??????

    • @ZiBlogg
      @ZiBlogg Месяц назад

      I'm pretty sure you have already got to understand it, but I will explain it the way I understood it anyway in case someone else has the same remark (And good comment btw, I just glanced over the notion, thanks to you I actually tried to understand it by visualizing the process in my head).
      Since the function starts with a call to the function itself, in this case draw(n-1), for the sake of clarity let's assign n = 5, draw(5) will call draw(5-1) = draw(4) which will call draw(4-1) = draw(3) which will call draw(3-1) .... all the way to draw(1), since draw(1-1) is 0 and we have an if statement that stops 0 from going negative.
      at draw(1) IS when the for loop actually starts, draw(1) will print ( *for( i = 0; i < 1; i++)* ) the first line of hashes which has n=1, THEN going back to draw(2) and printing ( *for( i = 0; i < 2; i++)* ) the second row of hashes, all the way back to the original draw(5) which will print the last row of hashes aka n=5.

  • @AsaAdetimirin
    @AsaAdetimirin 3 месяца назад

    Total Recall (gene) ACTIVE ✅☑️💪🏾

  • @victorfds
    @victorfds 10 месяцев назад

    Amazing!!!! 🥇

  • @Tushaar-CSgym
    @Tushaar-CSgym 3 месяца назад

    that recursion easter egg was pretty cool

  • @not_amanullah
    @not_amanullah 10 месяцев назад +2

    Understood++

  • @sci-tech3916
    @sci-tech3916 11 месяцев назад +5

    38:06

  • @Bilou-Otaku
    @Bilou-Otaku 3 месяца назад +2

    Sam is soooo cuteeee ✨✨💫💫✨⭐⭐

  • @姚景曦
    @姚景曦 5 месяцев назад +1

    As a college student, I thought it is a well designed course for cs learning.

  • @PhoebeX822
    @PhoebeX822 3 месяца назад

    I really love this course and appreciate all the efforts that’s gone into it!!!! However, I’m a bit confused about the calculations for Selection Sort and Bubble Sort. From what I understand, both should follow the formula: (n - 1) + (n -2) + ... +1 = n^2/2 +n/2; even if Bubble sort is (n-1)^2, Selection Sort is generally more efficient when n > 2. Only in the best-case scenario, where the numbers are already in order, does Bubble Sort achieve O(n), which is better than Selection Sort’s O(n^2). Could someone clarify this for me? I'm feeling so confused. Thanks in advance!

  • @markmarki9511
    @markmarki9511 7 месяцев назад +17

    15:41 Sam didn't get her high five 😢

    • @john9908
      @john9908 2 месяца назад

      She was cringe

  • @imcalled_ali
    @imcalled_ali 9 месяцев назад

    amazing!

  • @x3nomat
    @x3nomat 6 месяцев назад +1

    I don't understand how the Draw function ever draws anything, because it calls itself in the beginning and then returns when reaching 0... :/
    How does it ever get to the for loop?

    • @littlebrotha123
      @littlebrotha123 6 месяцев назад +3

      i was wondering that myself but then i thought about it some more and i think this is what happens.
      first call to draw calls second call which calls third which calls fourth all the way until n reaches zero and no more calls are made. up to here, when the last call is called, no printing has taken place, but since no more calls are going to be made it begins cascading backwards from the last call, say the 9th call is the last -- the 9th call then prints first (the single block), then the 8th call prints (two blocks), then the 7th and 6th and so on until it cascades or collapses back down to the first call which will then be the last to print 9 blocks.

    • @ellieu177
      @ellieu177 6 месяцев назад +1

      I was confused about the same thing! I asked DDB and apparently in this case 'return' doesn't exit the outer 'draw' programme yet, because the draw functions are all in a 'stack' at that point waiting to execute (from draw(1) because it was called most recently, upwards.) So return stops 'draw(n-1)' being called again, but all of the draw functions waiting will still execute. I hope that helps!

  • @NKLGaming01
    @NKLGaming01 4 месяца назад +1

    23/08/2024. I will finish this course before 2024 !

    • @luizashabetnick8059
      @luizashabetnick8059 3 месяца назад

      i really hope so too, starting aug 30th

    • @NKLGaming01
      @NKLGaming01 3 месяца назад

      @@luizashabetnick8059 very lazy and bored. This lesson 14 days and i still not get over it

  • @TheeInfoBaron
    @TheeInfoBaron 2 месяца назад

    49:00...
    The exact same code doesn't work on my editor.
    The error code points to i as an undeclared identifier.

    • @yahyaaswat3939
      @yahyaaswat3939 2 месяца назад +1

      Have you put "int i" in the for loop?

    • @TheeInfoBaron
      @TheeInfoBaron 2 месяца назад +1

      @@yahyaaswat3939 yup...I found the syntax error, though.
      It was a semi colon I put in the for loop...
      Mahn
      .

  • @CordovaHGS
    @CordovaHGS 7 месяцев назад +5

    I was not provided brownies, who can I speak to about rectifying this issue????

    • @littlebrotha123
      @littlebrotha123 6 месяцев назад +2

      He just gave us John Harvard's number. I am going to leave him an angry voicemail

    • @notrps
      @notrps 6 месяцев назад +1

      @@littlebrotha123 yeah! 👍

    • @MuhammadMekaeylBinFaisal
      @MuhammadMekaeylBinFaisal 3 месяца назад

      @@littlebrotha123 does it work?

  • @SkepticLens
    @SkepticLens 11 месяцев назад +2

    1:07:44 Anyone understand what David Malan said? Did he say we keep looking for you today? Why?

    • @virendxr
      @virendxr 11 месяцев назад +22

      Eli was the name he was searching in his phonebook but was not found :)

    • @pratikkale5489
      @pratikkale5489 9 месяцев назад +2

      Watch the lectures with more concentration bro

    • @SkepticLens
      @SkepticLens 8 месяцев назад

      @@virendxr Thank you, I was confused without the context

    • @virendxr
      @virendxr 8 месяцев назад

      @@SkepticLens your welcome

  • @smsony36
    @smsony36 6 месяцев назад +1

    i think i love number 3.

  • @oanhtuan2408
    @oanhtuan2408 8 месяцев назад

    Amazing 🎉 Wow😮

  • @not_amanullah
    @not_amanullah 10 месяцев назад

    Thanks

  • @srijanraghavula
    @srijanraghavula 6 месяцев назад +1

    The volunteers are increasing in number as they see some incentives XD

  • @muhammadzeeshan3911
    @muhammadzeeshan3911 9 месяцев назад +4

    In merge sort if the length of list is in odd number how can we make 2 equal sections or how can we divide list in two equal lengths please reply

    • @Magicninja01
      @Magicninja01 8 месяцев назад +3

      The halfs dont have to be equal. If its an odd number, one half will be 1 higer than the second

    • @badguy7432
      @badguy7432 6 месяцев назад

      the type is of int genre, in this level of cs. So, when you divide an odd number by half, it will auto omit the float (everything beyond the "."). So, mid index will be this value that has float omitted, left_half is from 0 to mid, right_half is from mid to n-1

  • @PhysicsMalolan-cu8ft
    @PhysicsMalolan-cu8ft 4 месяца назад

    Why was the selection sort algorithm quicker than bubble sort at the end? Any reasons for it since both have O(N^2)?

    • @sandipanjha3
      @sandipanjha3 3 месяца назад

      More swapping. Just take an example of 4 integers and see how many swaps you need in each case

  • @Horus-III
    @Horus-III 6 дней назад

    CS50 OP

  • @dockwater
    @dockwater 6 месяцев назад

    Somewhere around 1:20:00 a discrepancy between the video and sound begins

  • @krishBhardwaj-xz2hl
    @krishBhardwaj-xz2hl 28 дней назад

    did the guy in the front raised his hand for a question at 28:22 probably David couldn't see him

  • @harshpareta-o6o
    @harshpareta-o6o 2 месяца назад

    Cheers

  • @zeynepuslu100
    @zeynepuslu100 6 месяцев назад +2

    started on june 2024. good luck everyone

    • @abdulmelik8337
      @abdulmelik8337 6 месяцев назад

      how much time do you spend on learning?

    • @100drips
      @100drips 6 месяцев назад

      Me too. Good luck to you

  • @dglesterhardunkichud4287
    @dglesterhardunkichud4287 9 месяцев назад +1

    Is anyone else confused about what the lights in the front of the stage say in binary, or did I just mess something up/miss something?

  • @programmingguy6081
    @programmingguy6081 6 месяцев назад

    I must be missing something Prof. Since when did the C programming language get a 'string' data type? I believe C++, Objective C, and C# all have a string data type but I don't know of a version of C with a string type at least not as a base primitive type. Is this a user defined type that is part of the cs50.h header? Your editor is treating the string word as a known type.
    Note to students outside this class room none of the code that the Prof presents with the string data type will work in a pure C compiler. The code may work in a C++ compiler.

    • @Bloorp425
      @Bloorp425 6 месяцев назад +1

      it is defined in cs50.h...it is typedef char *string under the hood... I think

    • @luckyb0132
      @luckyb0132 2 месяца назад

      It's part of their own header. You need to use it for the problem sets. He talks about in in the previous lecture

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

    Really, really awesome lecture. Thank you David!
    But what is Havard doing that their lecturers always sweet a waterfall.
    Yes, I know. It is probably super exhausting. But I never saw one of my lecturers sweeting that hard.

  • @PerceyIchorre
    @PerceyIchorre Месяц назад

    honestly id probably try lockers at random until i found the right one, but what is random?

  • @blavikensbutcher
    @blavikensbutcher 7 месяцев назад +3

    Now I want to be born again and go to Harvard

    • @PerceyIchorre
      @PerceyIchorre Месяц назад

      why do you have to be christian to go to Harvard?

  • @serfraserfraz
    @serfraserfraz 5 месяцев назад

    0 fits perfect

  • @anhau7981
    @anhau7981 4 месяца назад

    her enery make me want to learn CS50 - lecture 3

  • @OfficialCodeVoyage
    @OfficialCodeVoyage 11 месяцев назад +6

    *Merge Sort is Overpowered !*

  • @ReddXYZ
    @ReddXYZ 2 месяца назад +1

    Me: I don't like the sorting algorithm music.
    David: ...You would if you had robot ears...

  • @danylokarpenko4943
    @danylokarpenko4943 3 месяца назад

    the best CS education content on the Internet shores. THANKS! I wish I could be there in the University to study all the topics during the year 🥲

  • @duanepoettcker5544
    @duanepoettcker5544 9 месяцев назад +5

    I'm always amazed at how fast he types. Then I remember I'm watching it at 1.5x speed.
    (still pretty fast though)

  • @paolobalestriere1201
    @paolobalestriere1201 5 месяцев назад +1

    At 28:25 there was a student that would wanted to ask a question 😭