1. Introduction, Optimization Problems (MIT 6.0002 Intro to Computational Thinking and Data Science)

Поділитися
Вставка
  • Опубліковано 18 тра 2017
  • MIT 6.0002 Introduction to Computational Thinking and Data Science, Fall 2016
    View the complete course: ocw.mit.edu/6-0002F16
    Instructor: John Guttag
    Prof. Guttag provides an overview of the course and discusses how we use computational models to understand the world in which we live, in particular he discusses the knapsack problem and greedy algoriths.
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

КОМЕНТАРІ • 191

  • @AceOnBase1
    @AceOnBase1 Місяць тому +3

    I'm working on an MS in data science, and man do I wish I had this guy. My professors over complicate everything.

  • @antikoerper256
    @antikoerper256 3 роки тому +285

    One of the best things about the age we live in is that we all have FREE access to amazing lectures like these from MIT, no matter where we are

    • @w3w3w3
      @w3w3w3 2 роки тому +4

      agreed lol.

    • @ajarivas72
      @ajarivas72 2 роки тому +3

      @@w3w3w3
      Specially during the pandemia and lockdown.

    • @pseudotatsuya
      @pseudotatsuya 2 роки тому +3

      And we recognize that watching videos of lectures is meaningless for most people.

    • @texasdrz9515
      @texasdrz9515 Рік тому

      we know

    • @wyqtor
      @wyqtor Рік тому +1

      And one of the worst things about the age we live in is that we have to spend 8-9 hours a day in front of a computer screen wasting our lives on menial corporate tasks instead of watching lectures like these and applying what we learned from them to do something really meaningful.

  • @leixun
    @leixun 3 роки тому +40

    *My takeaways:*
    1. Prerequisites for MIT 6.0002 2:16
    2. What is a computation model 4:17
    3. Optimization models 5:47
    - Knapsack problem 8:04
    - Solutions of knapsack problem: brute force algorithm 16:18, greedy algorithm 19:38 and problem with greedy algorithm 37:05

    • @vegitoblue21
      @vegitoblue21 3 роки тому +1

      thanks a lot, it's really helped me

    • @morenoananto1574
      @morenoananto1574 3 роки тому +1

      @@vegitoblue21 nice GH Z 👍

    • @leixun
      @leixun 3 роки тому +2

      GH Z you’re welcome

    • @rnomromro6715
      @rnomromro6715 7 місяців тому

      W, need more comments like these

  • @smartdatalearning3312
    @smartdatalearning3312 3 роки тому +29

    Professor Guttag gives simple and well understandable explanations for otherwise actually pretty complex optimization problems (especially digital optimization). It is so nice that MIT is making these lectures public

  • @metaloper
    @metaloper 3 роки тому +14

    For anyone interested, this course starts in march 2021 in EDx. It's free with an optional certificate for $75.

  • @aerafine
    @aerafine Рік тому +5

    I am amazed that these courses are freely available. Thank you, MIT!

  • @studywithjosh5109
    @studywithjosh5109 3 роки тому +7

    Just finished 6.0001. If you want to go through 6.0002 with me im starting today!

  • @naruto-4990
    @naruto-4990 7 років тому +252

    Thank You MIT

  • @domsjuk
    @domsjuk 3 роки тому +7

    The fact that his name basically 'means' "goodday" in German and "abdominal label" in English cheers me up for some reason.

  • @agir4707
    @agir4707 4 роки тому +12

    This Course is gold. This quality does not exist anywhere else. I read the book, watched all the videos, solve the priogramming assignments. Thanks MIT and Professor Guttag!
    You can find assignment solutions for 6.0001 and 6.0002 on my github account: github.com/emtsdmr

    • @chaitanyav5320
      @chaitanyav5320 4 роки тому

      Hey, do we get a certificate on completion? Just curious.

    • @VV-xt7fj
      @VV-xt7fj 4 роки тому

      Hey I'm having hard time completing the last problem set. Can you please help me?

  • @marco.nascimento
    @marco.nascimento 5 років тому +27

    Great lecture. Really looking forward to dive into this second part of the course, thank you MIT for uploading those

  • @samtj3524
    @samtj3524 Рік тому +3

    Personal Notes.
    1. Keyfunction serves to map elements (items) into numbers. Tells us what we mean by best. In this case, the professor wishes to use the one algorithm independently of his definition of best.
    2. Lambda function creates anonymous functions (a great one for one-liners) by taking an input of parameters and then executes the ONE expression. (lambda : [expression])
    3. Greedy algorithms can't really bring you an optimal solution. Different approaches to greedy tests: greedy by profit/value (selects the biggest value first), greedy by cost (selects the ones with minimal cost in hopes of obtaining as much items as possible), and finally greedy by density (selects the one with the biggest value per cost)

  • @ernestocasco1425
    @ernestocasco1425 4 роки тому +168

    Anyone here because of the damn quarantine?

    • @jothiramesh4212
      @jothiramesh4212 4 роки тому +20

      i suppose you are optimizing your time

    • @mousilkich
      @mousilkich 4 роки тому +1

      I don't even know how I got here lol

    • @examango
      @examango 4 роки тому

      Maybe want to become bald.

  • @raticante
    @raticante 6 років тому +36

    thank you so much mit, I am a colombian student and without you I wouldn't be able to take this kind of courses

  • @notagain3732
    @notagain3732 Рік тому +3

    Imagination expansion is the single most valuable skill to learn that can assist further learning in the future . This imagination comes in forms like mind palace aka the Art of memory , maybe (Learn how to Learn ) ... This lecture made me think about why i became interested in Machine learning and made the path seem less intimidating , which makes me glad that i found this lecture playlist and youtube channel

  • @carlosfonseca143
    @carlosfonseca143 7 років тому +55

    Great content, teacher and course. Thank you so much for uploading this course.

  • @oluwadaraadepoju5832
    @oluwadaraadepoju5832 3 роки тому +2

    Hyperparameters tuning is making so much sense now!. Thank you so much for this.

  • @bengbeng2005
    @bengbeng2005 6 років тому +1

    this is the best teacher ,i realized that most of mit teacher are great wish i could study there

  • @sandipultimates
    @sandipultimates 7 років тому +9

    If you are confused when Wednesday is, yes it is 2. Optimization Problems on autoplay

  • @kinda160
    @kinda160 Рік тому

    İt is so nice that MIT is making these lectures public 🎉

  • @anarelle
    @anarelle 2 місяці тому

    What a brilliant lecture and a amazing professor. He reminded me of what a pleasure it is to attend university.

  • @adamrubinson6875
    @adamrubinson6875 5 років тому +12

    A good example of the global vs local optimum is:
    Problem: consider vals = {1/2, 1,3, 1,4}, and then find the subset of values in vals such that the sum of values in this subset is as large as possible, but is also constrained to be 5/8.
    However, not confined to taking this greedy algorithm, you can see that 1/3 + 1/4 = 7/12, which is less than 5/8, but better than our greedy alg result of 1/2. So therefore the point is that greedy algorithms give you different results to the knapsack problem depending on what your metric is (our greedy metric here was 'next largest', but we could have chosen something else. In fact, 'next smallest', would have gotten us the global optimum solution!). "local optimum" in this context refers to the optimal solution *for a given metric* ('next largest' - which yielded our result of 1/2), which as mentioned, isn't necessarily the same as the best possible global solution (our result of 7/12) to a knapsack (optimisation) problem.

    • @duanas6409
      @duanas6409 Рік тому

      Thank you! I was confused that he was describing a local optimum with those examples because the metrics he is using are qualitatively different, ie. it might be more desirable to me to have slightly less overall calories but me maximising on "value" (how much I like the food) rather than cost. What seems significant for determining the optimum is the _order_ of the elements, and the metric (or the key function) determines the order. So then the global optimum is the solution with biggest total across all orderings.

  • @mrocpnable
    @mrocpnable 7 років тому +5

    Great content and teacher.
    A little remark in the code:
    names values and calories are not of same length. names is 9 and cake is indeed excluded

  • @raymac6262
    @raymac6262 5 років тому +1

    What a personable prof!

  • @alute5532
    @alute5532 Рік тому +1

    How optimization works?
    6:08 I. E. Route by car from a to b
    Objective to min travel time
    So objective function = sum( mins spent) from a to b
    On top of that layer a set of constraints(default empty)
    Fast way Boston by plane but impossible on a 100 budget
    Timw: to be before 5 pm
    While bus only 15 but impossible before 5, infer better to drive
    Constraints help elimination some solutions
    This asymmetry is handled differently
    Knapsack a burglar with limited space, items more than he takes
    11:00 contonus problems solved by greedy algorithm takes best, nice on
    0 1 knapsack: decision affects other decisions
    I could end up multiple solution 1300 or 1450, greedy does not guarantee best answer
    Assume n items:
    0. Total max w
    1. Set available l
    2. V item is taken
    16:30 bruteforce algorithm
    Generate all subsets (of items)
    From a powerset
    23:31
    Key function used to sort the items
    (based on. Some criteria
    Take item subtract calories
    Next time best time found out (but can't leave yet) 🤔
    If an item makes it overbudget
    "wait and see" check others, then
    Algorithm efficiency?
    Python built in timsort
    Same as quicksort= same as mergesort n log n
    N (len items)
    N log b + n (constant)
    Order n (log n)
    Door for large number (1M)
    Not for cost but cheap ones first
    We get different answers with greedy
    Only local optimal solutions chosen each point
    Hey stuck local points boy the best one

  • @bharathsf
    @bharathsf 2 роки тому +1

    I just have two words: Thank You

  • @amyfalconer1660
    @amyfalconer1660 6 років тому +2

    What a cliffhanger to end on! :)

  • @praveenkumarmahto3204
    @praveenkumarmahto3204 6 років тому +3

    I Love the way they teach us .....Awesome I have great experience .....#Great Content and Also Valuable ......

  • @kirkrussell9130
    @kirkrussell9130 4 роки тому

    Easy introduction;
    Using human mind as an example for understanding of how mental congnition takes place in logic sets, to more logic sets, taken into relativity to personal information that is believed from the correlation of past believed information that foundationally supports anything believed by that individual to be true.
    *Because, beliefs equal what we deem to be real (more on that later). For example, Artificial Intelligence is computationally created (unintentionally), but found to be necessary based upon exposure to beliefs or purposely created by the creators (humans) without knowledge of the methods that are being used for an outsider source of creation.
    This is the greatest factor of creation. It is statistically possible to re-create what has been proven and even possible to prove that nothing is random in the event that it be understands the mirrored language in which it comparatively recognizes as belonging to a "concious" observation of some outcome. If the created language is is newly acquired and uknown, then no phenemonela is observed for validate its existence. Therefore, no new DATA is confirmed and a moment for observational phenomena was lost (some call this luck). In the event that new. Infornation is realized and then it turns into data due to concious observation then it will be consciously compared to what is known in some context that cognitively gives validation to a past experience that has been deemed factual and correct, therefore creating a sense of beliefs. *If the Universe offers assistance to the creation of other Universes and its nature is to produce systems that are in mirrored in reproduction then it would seem relative. Some of these observations would be similiar, metaphor like, opposite of, symbolically important or whatever is conciously observed and to be factual or possibly thought of and believed to somehow shaped or formed the connected understandings of the unique observer.
    We could jump into many acdemic subject matters and show how concious creation through cross sourcing one subject matter to the nex subject matter and to helps to identify the creation of anything, because everything is a "system" persay...

  • @xenofongiannoulis8768
    @xenofongiannoulis8768 4 роки тому +1

    this food rewards reminds me my relationship with my dog. :) Anyhow, good explanation and overall definition of such concepts!

  • @Grassmpl
    @Grassmpl 6 років тому +3

    The 'no good solution' statement for 0/1 knapsack problem is true if we assume P not = NP

  • @pottanatgeorge
    @pottanatgeorge 4 роки тому +6

    Wish I could attend in person. Great lecture, just sad not enough interaction.

  • @ranjanasaiyam5834
    @ranjanasaiyam5834 10 місяців тому

    he is legend ,great explainer

  • @Candyapplebone
    @Candyapplebone 3 роки тому

    This John Guttag guy, I like his style

  • @user-ho8vf3mz2j
    @user-ho8vf3mz2j 11 місяців тому

    it feels funny to hear absolute silence in response to some questions, the way that even MIT students dont know or are afraid of answering wrong

  • @europebasedvlogs1251
    @europebasedvlogs1251 4 роки тому +5

    4:10
    Start

  • @shanefitzgerald9339
    @shanefitzgerald9339 5 років тому +3

    Fantastic course, thank you to MIT, like many here I will donate when I start earning!

  • @EranM
    @EranM 6 років тому +78

    31:40 The moment the professor discovers that no one understood anything.

    • @masteronepiece6559
      @masteronepiece6559 6 років тому +5

      Because he is teaching the wrong folk.

    • @SeEyMoReBuTtS
      @SeEyMoReBuTtS 6 років тому +6

      Jesus that was so cringe

    • @Cashman9111
      @Cashman9111 5 років тому +3

      @dothemathright 1111 that is so true, haha

    • @ramind10001
      @ramind10001 5 років тому +6

      dothemathright 1111 by this definition no person at time t will understand lambda functions unless they know it, and If we let t = 0, no one understands lambdas, and there fore no one will ever be able to understand lambdas and therefore lambdas become useless

    • @maxwellzen4309
      @maxwellzen4309 4 роки тому +9

      @@ramind10001 It's almost as if he was joking ...

  • @nathanroberson
    @nathanroberson 7 років тому

    Thank you I enjoyed it

  • @thienkyvotruong5961
    @thienkyvotruong5961 Рік тому

    Thank you MIT

  • @vishalsharma-tj3oh
    @vishalsharma-tj3oh 6 років тому +6

    Give this man a Nobel prize in teaching !!! ##

    • @relaxingnaturesleepsounds9090
      @relaxingnaturesleepsounds9090 6 років тому +2

      vishal sharma lll there is no such award man

    • @MMABeijing
      @MMABeijing 5 років тому +8

      @@relaxingnaturesleepsounds9090 he knows that, dummy

    • @relaxingnaturesleepsounds9090
      @relaxingnaturesleepsounds9090 5 років тому

      @@MMABeijing can you stop being a jerk for a minute !!

    • @MMABeijing
      @MMABeijing 5 років тому +1

      @@relaxingnaturesleepsounds9090 Yes I can and I will, I did not think you would take it personal . Allow me to apologize then, while at the same time maintaining that he knows there is no such an award and as a consequence your first comment was not necessary. have a nice day Abhishek

    • @relaxingnaturesleepsounds9090
      @relaxingnaturesleepsounds9090 5 років тому

      @@MMABeijing you too have a great day !! no need to apologize :)

  • @tydical
    @tydical 3 роки тому

    It is such a shame that this video has 287K views and the last video has only 20K views, why do people don't complete the course?

  • @tarundumka5872
    @tarundumka5872 6 років тому

    thank uu mit ocw

  • @akbarrauf2741
    @akbarrauf2741 7 років тому

    thanks , mit

  • @yuehernkang
    @yuehernkang 4 роки тому

    very good lecture

  • @rohansinha6454
    @rohansinha6454 3 роки тому

    This is amazing

  • @ehza
    @ehza 5 років тому

    Thank You

  • @idocoding2003
    @idocoding2003 9 місяців тому +1

    Woahh, nice video. Didnt expect to use knapsack algo in data science... We learnt it in design and analysis of algorithms.... Interesting idea.. i got a idea.. maybe i can do something innovative 🤔
    By the way love from India

  • @existenence3305
    @existenence3305 3 роки тому

    Timsort is a variant of Quick Sort? AND QS has worst case complexity similar to merge sort?? I guess I don't understand Computational Complexity that well :(

  • @danielli9224
    @danielli9224 Рік тому

    I love this guy! Man literally threw out candy to encourage students to answer questions, that’s so cute lol

  • @wengexu9177
    @wengexu9177 7 років тому +1

    Just finished the exam of this... What if this uploaded few months ago...

  • @swaggihomi
    @swaggihomi 4 роки тому

    Are the numbers inside the 'values' array randomly picked by the instructor or the does it act as a grading scale for each menu item?

    • @duanas6409
      @duanas6409 Рік тому

      I think they are a grading scale he has chosen to order the items according to how much value they have to him (how much he likes them).

  • @aimene_tayebbey
    @aimene_tayebbey 6 років тому

    damn i'm hooked

  • @anhtuan171
    @anhtuan171 Рік тому

    I code excactly like in the video but when i run it, the error name “Food” is not defined in line 17 (build menu) appear. Does anyone has any ideas ?😢

  • @primorock8141
    @primorock8141 3 роки тому

    I can't believe this is for free

  • @AmanSingh-yj4ul
    @AmanSingh-yj4ul 6 місяців тому

    6:14 here should it not be objective value than a function? What am I missing? Minimum time would be a value right?

  • @Simba-mr1je
    @Simba-mr1je Рік тому

    This Parachute is a knapsack! XD

  • @jesus1519
    @jesus1519 3 роки тому

    Great!

  • @diegolainfiesta
    @diegolainfiesta 5 років тому +5

    the length of the list of names is 9, but the length of the list of values and calories is 8. Therefore, no value or calorie is asigned to the cake. But the lecture is really great...minor mistake...

  • @nermienkhalifa5997
    @nermienkhalifa5997 5 років тому

    thanks

  • @AlanWil2
    @AlanWil2 5 років тому

    Cheers!!!

  • @haruhishi5808
    @haruhishi5808 5 років тому +1

    Thank you from Algeria

  • @filippodembech7659
    @filippodembech7659 2 роки тому

    Which book is used for this course and how I can exercise on the different topics concerned the course? If there are any...

    • @mitocw
      @mitocw  2 роки тому +3

      The textbook is Guttag, John. Introduction to Computation and Programming Using Python: With Application to Understanding Data. 2nd ed. MIT Press, 2016. ISBN: 9780262529624. It is available both in hard copy and as an e-book. (mitpress.mit.edu/9780262529624). The course materials are available on MIT OpenCourseWare at: ocw.mit.edu/6-0002F16. Best wishes on your studies!

  • @mariammohamed176
    @mariammohamed176 6 років тому +1

    [36:00]
    I don't get why we get different answers in the greedy algorithms as long as we use the same items and the same key
    function
    It does local optimization, but it does not mean that local optimization is different each time we run the program given the same parameters

  • @aaditreejaisswal634
    @aaditreejaisswal634 3 роки тому

    Is there a specific order in which I should watch the different playlists for ML?

    • @sharan9993
      @sharan9993 3 роки тому

      Yes depends on wt u want to learn?

  • @adiflorense1477
    @adiflorense1477 3 роки тому

    36:06 Do you mean calories as weight, sir?

  • @mohamedtarek8514
    @mohamedtarek8514 6 років тому

    thnx MIT

  • @youvanced6593
    @youvanced6593 2 роки тому +1

    What about a genetic tournament algorithm?

  • @mohamedtarek8514
    @mohamedtarek8514 6 років тому

    28:42 what is "item" that used for ?

  • @donlansdonlans3363
    @donlansdonlans3363 5 років тому

    What are the prerequesites of this course?

    • @mitocw
      @mitocw  5 років тому +1

      6.0001 Introduction to Computer Science and Programming in Python is the prerequisite for the course. See the course (and the prerequisite) on MIT OpenCourseWare at: ocw.mit.edu/6-0002F16. Best wishes on your studies!

  • @physics8275
    @physics8275 7 років тому +2

    Excelente, ¿podrían igualmente subir vídeos de física y matemáticas con subtítulos en español o traducidos al español? Gracias.

  • @McAwesomeReaper
    @McAwesomeReaper 8 місяців тому

    Thanks for the assist Ana (heart emoji)

  • @TheJyer22
    @TheJyer22 6 років тому

    source code of that example program please.

    • @rum81
      @rum81 5 років тому +1

      ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-0002-introduction-to-computational-thinking-and-data-science-fall-2016/lecture-slides-and-files/

  • @jerrywuification
    @jerrywuification 7 років тому +5

    Where did the I[i] come from? Shouldn't it be L[i]?

    • @randiaz95
      @randiaz95 6 років тому +1

      He didnt define it in the beginning as a list but it is the list of item values and weights.

  • @Friendsshare
    @Friendsshare 6 років тому +11

    LOLLLL I love when no one can answer his questions. Omg, I feel so bad for that professor.

  • @waynelast1685
    @waynelast1685 Рік тому

    Thank you for these lectures. If I come into money I will make a large donation.

  • @user-wy6je8mn4s
    @user-wy6je8mn4s 7 років тому

    error?

  • @ArunKumar-yb2jn
    @ArunKumar-yb2jn 3 роки тому +2

    Professor knows to solve complex optimization problems but don't know what to do when the screen freezes. Calls the assistant.

  • @litoboy5
    @litoboy5 7 років тому

    cool

  • @Divyasrifood.beauty
    @Divyasrifood.beauty 3 роки тому

    👍Gud morning gud video

  • @quanquoctruong1276
    @quanquoctruong1276 10 днів тому

    32:14 i feel so bad for the prof... he's trying so hard to build a connection with his students...

  • @abstractguy9
    @abstractguy9 4 роки тому

    Dr. Anna Bell from 6.0001 pops out in this video... Did any of you guys notice???

  • @ozanayko8267
    @ozanayko8267 4 роки тому

    La Casa De Papel knows the 0/1 knapsack problems omg!

  • @shakesmctremens178
    @shakesmctremens178 6 років тому +3

    Boy, talk about your cliffhangers.

  • @axa3547
    @axa3547 3 роки тому +3

    so i have learned machine learning ,python,sql,tableue,powerbi,flask in 10months thanks to corona ugggh

    • @ArunKumar-yb2jn
      @ArunKumar-yb2jn 3 роки тому

      what have you put to practise?

    • @axa3547
      @axa3547 3 роки тому

      @@ArunKumar-yb2jn got job in business analyst role

    • @ArunKumar-yb2jn
      @ArunKumar-yb2jn 3 роки тому

      @@axa3547 What's a business analyst do? Work with Excel or coding?

    • @axa3547
      @axa3547 3 роки тому

      @@ArunKumar-yb2jn depends upon you which ever tool you wanna use , I use both

    • @GemZbabe101
      @GemZbabe101 3 роки тому

      Did you get the job without a diploma in those, simply by skill?

  • @veggeata1201
    @veggeata1201 7 років тому +6

    Quicksort worst case is O(n^2). The professor probably wanted to say average case complexity.

    • @m4ng4n
      @m4ng4n 7 років тому +1

      It probably was a white lie, having to explain the actual difference between average and worse case time complexity would drive people's attention away from the actual problem imo.
      Would've been better if he just used mergeSort which the students already knew tho

    • @mrvargarobert
      @mrvargarobert 7 років тому +2

      Maybe he was saying worst case for Timsort is O(n log(n)). en.wikipedia.org/wiki/Timsort

    • @sailormoonfan3765
      @sailormoonfan3765 6 років тому

      But timsort is not a quicksort, it is more like a mergesort.

  • @user-jj4ps5ld3z
    @user-jj4ps5ld3z 3 роки тому

    36:48 donut should have 95 in calories instead of 195 showing in the result, and apple should be 150, not 95.

  • @adracea
    @adracea 7 років тому

    Great course...but objectively speaking...we are always looking for a=b...now subjectively speaking...a=whatever the *user* wants... which brings us back to why we stick to frigging applying a linear transform on everything...

  • @amatris
    @amatris Рік тому

    32:31 really no one can answer !!

  • @adiflorense1477
    @adiflorense1477 3 роки тому

    27:11 so n = len (item) has a computation time of O (n log n) huh? I just understand now. thank you sir

    • @pfever
      @pfever 3 роки тому

      No, "itemsCopy = sorted(itmes, key = keyFunction, reverse = True)" has a complexity of O(nlogn) as the fastest sorting algorithm has that complexity. by "n = len(items)" the professor means that in O(nlogn) n is equal to the number of items we have to sort.

  • @jinruifoo7087
    @jinruifoo7087 3 роки тому

    why are there 9 names and only 8 values and claoires

    • @ArunKumar-yb2jn
      @ArunKumar-yb2jn 3 роки тому

      I think it's a minor mistake. You have to omit cake.

  • @nguyenchau6110
    @nguyenchau6110 4 роки тому

    What programming classes should I take before learning this course?
    Thanks

    • @mitocw
      @mitocw  4 роки тому +4

      The Syllabus lists the Prerequisites as "6.0001 Introduction to Computer Science and Programming in Python or permission of instructor." See the course on MIT OpenCourseWare for more info at: ocw.mit.edu/6-0002F16. Best wishes on your studies!

    • @sushio4357
      @sushio4357 Рік тому

      @@mitocw doesn't cover the math perequisites

  • @rwnorris24
    @rwnorris24 6 років тому +1

    RE: Carnegie Hall Joke.
    --> Is that where Inglorious Bastards got the line from?

  • @abderrahimelgomri1626
    @abderrahimelgomri1626 4 роки тому

    I could have got the candy reward it was so obvious that the answer is Food .

  • @swaggihomi
    @swaggihomi 4 роки тому

    One more question: Why is density function returns self.getValue() / self.getCost()

    • @DjoumyDjoums
      @DjoumyDjoums 3 роки тому

      value / cost gives you how much value is packed into 1 unit of cost for the object, and he chose to call that the density.

  • @Luna-cr2dm
    @Luna-cr2dm 10 місяців тому

    20:44

  • @TheJyer22
    @TheJyer22 6 років тому

    hey help me. is he using phyton x,y?

  • @quocvu9847
    @quocvu9847 Рік тому

    26:30

  • @Ksnieup
    @Ksnieup 2 роки тому

    😂funny when he threw the first candy

  • @mrpotatohed4
    @mrpotatohed4 6 років тому

    id fill the knapsack with raisins first. yum