Lecture 19: Dynamic Programming I: Fibonacci, Shortest Paths

Sdílet
Vložit
  • čas přidán 11. 06. 2024
  • MIT 6.006 Introduction to Algorithms, Fall 2011
    View the complete course: ocw.mit.edu/6-006F11
    Instructor: Erik Demaine
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

Komentáře • 1,3K

  • @JanacMeena
    @JanacMeena Před 4 lety +1423

    The instructor, Erik Demaine, is the youngest professor of all time at MIT and a child prodigy. He has published several articles in scientifical journals, and and now has helped several students publish their own articles. He is one of the modern day geniuses of our time. We are extremely lucky to have a free video of his lecturing.

    • @lukeTHEDUUKE
      @lukeTHEDUUKE Před 2 lety +11

      he's no genius

    • @alesc3252
      @alesc3252 Před 2 lety +157

      @@lukeTHEDUUKE he was a child prodigy when he was 7, he finished college at 14 and got his phd when he was 20. He has won plenty of awards and is the youngest teacher at mit for a reason. Most people think that if someone speaks a lot and you dont undestand him then he must be smart, but actually intelligent people, like mr. Erik demaine, can take complicated concepts and explain them in a way that a lot of people like ourselves can undestand them

    • @sammyholdem2492
      @sammyholdem2492 Před 2 lety +4

      So this guy is like dumb smart? A 🐐 of numbers? I'm a dummy and have no clue what is going on in this video but guys and girls that know this stuff it blows my mind. All I'm wondering is does this really figure things out or is this just made up by some super smart people that make these things up for fun

    • @lx4302
      @lx4302 Před 2 lety +18

      ​ @sammy holdem it's not about being smart, people who have been doing one thing all their life can be extremely good at it.

    • @manmeetworld
      @manmeetworld Před 2 lety +7

      @@sammyholdem2492pretty sure it's for faster run times i.e., you're in the program and it outputs your results faster. Or in some cases you may never get the result, like the work on the processor to store all the bits gets used up to the point of failure or low mem. Because I think, what's not explained real well right off the bat is that this program is constantly looping to get to the next fib.

  • @sohntv8105
    @sohntv8105 Před 3 lety +402

    Watching this 6 years after graduation. The irony of skipping class...

    • @ShubhamSinghYoutube
      @ShubhamSinghYoutube Před 2 lety +15

      Never too late to start.

    • @Stl71
      @Stl71 Před 2 lety +1

      I was lucky enough to find out that there are a lot of videos in yt that could help me during my CS programm...And they really did help me.

    • @yanfranca8382
      @yanfranca8382 Před měsícem

      how about 11 years? kkk

  • @santosht6644
    @santosht6644 Před 6 lety +2394

    stop scrolling down listen to this guy

  • @AbhishekEkaanth
    @AbhishekEkaanth Před 4 lety +2019

    I just googled him to know that he finished his bachelor's degree at 14 years of age at Dalhousie University in Canada. damnn!!!!

    • @osmedia7239
      @osmedia7239 Před 4 lety +61

      geez. Smart guy.

    • @danielalemu3029
      @danielalemu3029 Před 4 lety +350

      When you have professors father at young age who inspires you and teach you, that helps a lot. His father is also professor at MIT.

    • @osmedia7239
      @osmedia7239 Před 4 lety +28

      @@danielalemu3029 true

    • @winrx
      @winrx Před 4 lety +63

      Daniel Alemu Having the right genes may also help I think......

    • @ikrakkentm9588
      @ikrakkentm9588 Před 4 lety +201

      @@winrx no a lot of people are actually as intelligent and perhaps even more than him. Thing is not everyone had the spark by their enviroment from a young age to get interested in specialising in a specific area. Also in other countries there is no alternative to finish high school earlier and apply to university. Also SAT is easy i can imagine back then it was way easier. Im not saying he isnt smart. Hes definetely above average for sure.

  • @sandeepmishra3972
    @sandeepmishra3972 Před 4 lety +328

    He is really putting an effort for students....these kind of teachers r very rare to find

  • @sergeykholkhunov1888
    @sergeykholkhunov1888 Před 2 lety +192

    00:58 dynamic programming (DP)
    05:06 Fibonacci numbers
    11:04 memoized DP algorithm
    23:14 bottom-up DP algorithm
    31:00 shortest paths
    41:14 example

  • @nbro5529
    @nbro5529 Před 9 lety +1193

    Introduction to Dynamic Programming: 00:21
    Fibonacci Numbers: 6:01
    Fibonacci Numbers with Memoisation: 11:11
    Fibonacci Numbers using bottom-up approach: min 23:25
    Shortest paths: 31:05

  • @riverofcustard5027
    @riverofcustard5027 Před 2 lety +25

    Not only is he knowledgeable but he’s also one of those teachers that makes you really get interested in the lesson

  • @fckdahlloff
    @fckdahlloff Před 11 lety +332

    I'm from Perú and following a Software Engineering, although we sometimes may get an overall view of these kind of topics, we tend to stay in the easy zone and never go any further from that. Having access to these many MIT real lectures just makes me so happy because, even if you don't enjoy the best education, you stil have the opportunity to learn more from reliable sources. And for me, that's what the MIT, give opportunities and hope. Thank you so much!

  • @Jason_Kang
    @Jason_Kang Před 8 lety +804

    I love this guy. I can tell he enjoys teaching.. best trait a lecturer can have :)

    • @penips
      @penips Před 8 lety +1

      +Jason Kang nice

    • @fruitjam6529
      @fruitjam6529 Před 8 lety +2

      +Jason Kang Indeed.

    • @mriegger
      @mriegger Před 8 lety +7

      +Jason Kang I know, I was struggling with Dynamic Programming until I saw this series. He's awesome.

    • @TheMasonX23
      @TheMasonX23 Před 7 lety +11

      Agreed! Erik is an amazing teacher, I love watching his lectures. He manages to make very difficult subjects relatively easy to understand and is very thorough and precise when defining things. And as you pointed out, his obvious love of teaching and the subject matter inspires an eagerness to learn.

    • @adityakulai6419
      @adityakulai6419 Před 6 lety

      Yes true!

  • @thefreakingmindistaken
    @thefreakingmindistaken Před 4 lety +32

    I watched this guys couple of old lectures quite sometime back and he made me fall in love with dynamic programming. Love this guy.

  • @Goateduzi
    @Goateduzi Před 3 lety +107

    So apparent why MIT students are industry leaders.... their teachers are amazing. My data structures and algorithms professor was trash at my university, and it is a well respected school.

    • @cmubill
      @cmubill Před 2 lety +4

      Which university you went to?

    • @M4D4F4K4.
      @M4D4F4K4. Před rokem

      @@cmubill prolly outside 100th rank unis

  • @lapipesmoker3751
    @lapipesmoker3751 Před 3 lety +59

    "This is kind of obvious"
    Me: Leaving the lecture hall with my head down.

  • @keyyyla
    @keyyyla Před 3 lety +449

    Absolutely fascinating lecture. This guy received his master of science in mathematics at the age of 16.

    • @NicolasPare
      @NicolasPare Před 3 lety +8

      Really? That's impressive.

    • @NazriB
      @NazriB Před 2 lety

      Lies again? DMP DUO

    • @brucesbanner5057
      @brucesbanner5057 Před 2 lety

      Another post on this video says 14 yrs of age which one is it 🤔

    • @Sarajboos12
      @Sarajboos12 Před 2 lety +2

      @@brucesbanner5057 he was bachelor

    • @rschmidtschmidt6810
      @rschmidtschmidt6810 Před 2 lety +17

      @@brucesbanner5057 his Bachelors at 14 and masters at 16. It matches up.

  • @Tavorath
    @Tavorath Před 8 lety +35

    Thank you for caring about the subtitles quality, they made it possible to follow up the whole class.

  • @CodeJeffo
    @CodeJeffo Před 2 lety +67

    I love how Erik is so humble and approachable. It's so great that MIT recognized him so early as a faculty member. This is so important for students and progress in education and research. MIT is really showing the way for other universities how the modern education is meant to be. Erik stay cool and keep improving this wonderful series of lectures. All the best!

  • @sujaa1000
    @sujaa1000 Před 2 lety +71

    I am 55 years old and whenever I watch a lecture from MIT or Stanford, I so wish I could study there! I feel so mesmerized.

    • @thinhnguyenvan7003
      @thinhnguyenvan7003 Před 2 lety +3

      Me too, and i am 29. Just graduated at 27 as a Mechatronic Engineerer and now do IT job

  • @pman-codes
    @pman-codes Před 5 lety +54

    Thank you guys. I am doing my masters though I couldn't get in MIT, you give me exposure to top class teaching materials.

  • @lx4302
    @lx4302 Před 4 lety +38

    My goal: binge watch mit course playlist for the whole day :)

  • @JanacMeena
    @JanacMeena Před 4 lety +23

    I've always thought of Dynamic Programming as this big, scary, complicated concept that would take forever to understand. Erik helped me understand it easily.

    • @mearaftadewos8508
      @mearaftadewos8508 Před 2 lety +1

      Teachers tend to make the same impressions they had about a course on us when its their turn.

  • @kkk3252
    @kkk3252 Před 5 lety +10

    Professor Demaine,
    I really enjoy your confident lectures.

  • @pythonprofreak7522
    @pythonprofreak7522 Před 4 lety +6

    I just want to thank you for this video and other related videos from this channel. While working fulltime and schooling at night it is hard sometimes to follow through my classes. However, I managed to earn a MS Computer Science concentration on Network and Security with a big thanks to these videos. Thank you!!

  • @rmpx2gh532
    @rmpx2gh532 Před 2 lety +1

    I love how much passion and energy the Prof got

  • @mindsauce3
    @mindsauce3 Před 5 lety +1401

    You kept on scrolling anyway, didn't you? ;)

  • @free-palestine000
    @free-palestine000 Před 3 lety +12

    i love love love Erik's teaching style. usually, i feel pretty dumb when i don't get a concept when my professor or other youtube videos explain but Erik makes it very.....accessible, and relatable.

  • @sixpooltube
    @sixpooltube Před 7 lety +8

    My favorite DP lecture yet!

  • @shirish3008
    @shirish3008 Před rokem +2

    Mannn, Sir Erik is so passionate professor I have ever seen. I just love the way he explains🙏🙏🙏

  • @aayushshah7193
    @aayushshah7193 Před 6 lety +5

    Best Algorithm lecture ever seen...Thank You MIT for this Lecture and Eric is one the best lecturer with great teaching skills.

  • @JayShankarpure
    @JayShankarpure Před rokem +5

    Really a great video 🙌
    Have fallen in love with recursion and DP with this video , Great work Erik Sir 👏

  • @justinwmusic
    @justinwmusic Před 4 lety +44

    26:10 "So is this clear what this is doing? I think so."
    [Then corrects the 2nd, 3rd, 4th and 5th typos that prevented comprehension. :) ]

  • @katkong281
    @katkong281 Před 2 lety +17

    If this guy was my professor I might have not dropped out! We need ppl like him thank you for sharing this

    • @cluckhead1913
      @cluckhead1913 Před rokem +2

      Turn on, tune in, and drop out! There is so much more to life than sitting in a room listening to someone drone on about nothing. Be your own man!

    • @coronaweeks4577
      @coronaweeks4577 Před rokem

      @@cluckhead1913 maybe so but his passion is infectious…I wish I had a real passion for something instead of slogging through life

  • @kmishy
    @kmishy Před 3 lety +2

    After following 2-3 lectures of him, He became my favorite prof

  • @c.j.dylanxu153
    @c.j.dylanxu153 Před 8 lety +253

    the best algorithm lecture i have ever seen! I prefer this "old-style" lecture using blackboard and chalks so much without any bullshit slides and whiteboards

  • @ChrisLeeX
    @ChrisLeeX Před 8 lety +19

    @26:36: "Man, so many typos" - How I feel whenever I'm coding up on the board.

  • @user-lp4kg7iv5i
    @user-lp4kg7iv5i Před 6 měsíci

    Amazing lecture from Erik Demaine. It's impressive how easy he explains a topic like dynamic programming and how he can have the attention of the students in the hall. Thank you very much to Erik for his lecture and to MIT for sharing this excellent course!!! I can't wait to see the next DP classes!!!

  • @hana-ci6ss
    @hana-ci6ss Před 3 měsíci

    I've been watching many video professor teaching in CZcams....Professor Erik Demaine definitely the best one that I've ever saw...His teaching style really on top.

  • @misteralagiz4003
    @misteralagiz4003 Před 8 lety +146

    that's genius, Erik has got some great teaching skillz, man

    • @TheMasonX23
      @TheMasonX23 Před 7 lety +12

      artem alagizov He's amazing! He's the youngest professor in MIT history, and earned his PhD when he only 20...

    • @jn3750
      @jn3750 Před 6 lety

      Former child prodigy!

  • @rakeshjoshi2306
    @rakeshjoshi2306 Před 8 lety +13

    this guy is awesome . very clear explaination..

  • @siddharthdyavanapalli4617

    What a guy he is!!! Just to say been through a lot of mit stuff but he really is matching the skills of all other professors in that place

  • @meditating010
    @meditating010 Před 11 lety +2

    Eriks lectures are awesome... pretty decent walkthrough of dynamic programming.

  • @MahdiZouch
    @MahdiZouch Před 7 lety +56

    I really love how they teach, everything becomes interesting..., i wish i could study full time there :D

    • @MahdiZouch
      @MahdiZouch Před 7 lety +1

      ha ha same here

    • @TheMasonX23
      @TheMasonX23 Před 7 lety +5

      Mahdi Zouch A large part of what makes them the best institution (in my opinion, at least one of the best though) is the quality of their instructors. And yes, I too would love to attend MIT if/when I make enough money, but at least until then they've got a lot of their courses available :)

    • @deepakmeena3874
      @deepakmeena3874 Před 6 lety +3

      yeah IIT bombay has great quality of students but quality of teaching method is very poor that's why they are so low in rankings

    • @saipanda893
      @saipanda893 Před 6 lety

      Deepak Meena yeah bro.

  • @ji3g4j6jo3p
    @ji3g4j6jo3p Před 5 lety +6

    I wish my prof taught my algo class was this excited about any of the algos, instead of sitting there hating life

  • @dackerman123
    @dackerman123 Před rokem +1

    This man is absolutely brilliant. Perhaps too brilliant for anyone in the lecture hall to understand, and certainly for me.

  • @RahulRoy-tc3lt
    @RahulRoy-tc3lt Před 2 lety +1

    That is the most computer-dude looking guy ive ever seen, very apt.

  • @karannchew2534
    @karannchew2534 Před 4 lety +4

    Love the giant eraser. Must be quite satisfiying using it.

  • @elias8294
    @elias8294 Před 4 lety +18

    I love that he writes all of his code in python

  • @carolinewilhelm7672
    @carolinewilhelm7672 Před 5 lety +1

    Great lecture! Thank you for making this topic accessible - in all senses of the word

  • @srinivastadinada3571
    @srinivastadinada3571 Před 6 lety +1

    Best tutorial on Dynamic programming I have ever seen :)

  • @espritgaronne9975
    @espritgaronne9975 Před 5 lety +4

    Great teaching! I had an algorithmic challenge this year, the solution was dynamic programming.

  • @victorrice4549
    @victorrice4549 Před 10 lety +15

    Very great lecture, super helpful. Thank you MIT.

    • @arsh99119
      @arsh99119 Před rokem

      thearshblog.blogspot.com/2022/09/beating-youtube-algorithm.html
      how to beat CZcams Algorithm 👆

  • @KimMorgan-hc3rk
    @KimMorgan-hc3rk Před 8 měsíci

    Don't know much about Dynamic Programming but do note the professor's unique and rather attractive chalkboard writing! And being a dapper hand myself at it, I salute you Prof!

  • @hiddenblade999
    @hiddenblade999 Před 7 lety +1

    Best lecture on the subject i've seen on youtube

  • @prashantsingh1096
    @prashantsingh1096 Před 5 lety +8

    I wish I could have Professor like him in my bachelor's and master's .

  • @anniekelly3698
    @anniekelly3698 Před 9 lety +15

    way better than my current algorithms professor...thanks!

  • @ScoobieSwisher7413
    @ScoobieSwisher7413 Před 2 lety

    I am amazed just at his writing on the board at the very beginning .

  • @AleksandarIvanovicTV
    @AleksandarIvanovicTV Před 3 lety +1

    Absolutely love this guy, what a great lecturer

  • @user-sd7hh8ek1c
    @user-sd7hh8ek1c Před 5 lety +13

    Dynamic programming the my favrourite thing in the world...
    in algorithms.

  • @tv..6531
    @tv..6531 Před 3 lety +3

    # for
    def fibonacci(n):
    r = [1, 0]
    for i in range(1, n+1):
    a = r[0]
    b = r[1]
    c = a + b
    r[0] = b
    r[1] = c
    return r[1]
    if __name__=="__main__":
    for n in range(1, 101):
    print(n, ": ", fibonacci(n))

  • @haneulkim4902
    @haneulkim4902 Před 4 lety +1

    Amazing lecture, Erik can really explain. Thanks!

  • @jainamkhakhra3898
    @jainamkhakhra3898 Před 6 lety +1

    I absolutely love that chalk... Kind of gets you interested in the topic...

  • @socrat33z
    @socrat33z Před 11 lety +14

    Thank you sooooo much! A lot easier than learning from the economic side.

  • @DeivitMV
    @DeivitMV Před 6 lety +35

    Extra credit for the Bob Dylan T-shirt! :D

    • @scemat
      @scemat Před 4 lety

      Warmed my heart when I noticed it!

  • @platzhersch
    @platzhersch Před 9 lety +2

    geniously simply explained! thank you! helped me a lot!

  • @bman2549
    @bman2549 Před 2 lety

    I am amazed there are actually ppl who understand and can make sense of this.

  • @rizanamatya9191
    @rizanamatya9191 Před 6 lety +25

    Algorithms Professor wearing a Bob Dylan T-shirt! Awesome!

  • @JackLe1127
    @JackLe1127 Před 8 lety +237

    This video makes me wanna apply for MIT

    • @darogajee3286
      @darogajee3286 Před 7 lety +36

      just collect enough millions..

    • @DarkLordAli95
      @DarkLordAli95 Před 7 lety +22

      and very exceptional grades.

    • @BrajeshKumar-ez8zs
      @BrajeshKumar-ez8zs Před 7 lety +12

      Jack Le you can... But you will be kicked out

    • @mlst3rg
      @mlst3rg Před 7 lety +73

      just write #blacklivesmatter on your application

    • @lambda494
      @lambda494 Před 6 lety +21

      I went there (Course 8, 2012). Trust me, getting in is the easy part. All the top students at their high schools become more or less average there. You learn a ton but it will wring the life out of you too if you aren't careful. You may spare yourself and just enjoy OCW!

  • @jakethewoz
    @jakethewoz Před 4 lety +1

    Love this guy's handwriting.

  • @vijayalagappan6119
    @vijayalagappan6119 Před 3 lety

    Lovely course! Awesome Profs.. I came here looking for help in trying to solve DP problems.. got glued to this video and the other videos in the course.. heard of the Double Rainbow for the first time and googled for it.. came to know about the Double Rainbow guy.. and read that he became one with the rainbow ... in the times of this pandemic.. strange how times fly by! ...and how time flies by!

  • @eddiesneeh4266
    @eddiesneeh4266 Před 9 lety +13

    This instructor ROCKS!

  • @JuiceGuy07
    @JuiceGuy07 Před 3 lety +16

    Is it weird that I have absolutely no idea what this class teaches, nor can I understand what it is trying to teach, yet I can't stop watching the lectures?

    • @JuiceGuy07
      @JuiceGuy07 Před 3 lety

      @Aarni lol, you could be wasting time on worse things I suppose. Hit your teacher with the old "I wanted to write my essay last night, but I just got way too caught up learning advanced algorithms. Time just got away from me."

    • @anjanvyas5820
      @anjanvyas5820 Před 3 lety +4

      hahahah im doing the same thing. Started with a video where Jelani Nelson was teaching Linear Data Structures
      I have no idea how it works and how it helps but it's oddly satisfying xD

    • @AimForMyHead81
      @AimForMyHead81 Před 2 lety

      @@anjanvyas5820 For me, it's Asmr

  • @mpataki
    @mpataki Před 3 lety +1

    at 47:06 Eric mentions, we need to make the graph acyclic,
    we don't need to make the graph acyclic, we can mark the vertex which is being computed (which is in the call stack) as present in an infinite distance and use it's TAB[v]

  • @thiagoaugustomartins3482
    @thiagoaugustomartins3482 Před 7 lety +2

    Great class ! Thanks for uploading that.

  • @alimustafa2682
    @alimustafa2682 Před 6 lety +443

    I would like to eat these chalk

    • @rj-nj3uk
      @rj-nj3uk Před 5 lety +7

      Good luck.

    • @rafatashraf3669
      @rafatashraf3669 Před 5 lety +5

      So was my feeling . Great teachers can instill such feelings ,,........

    • @msid9870
      @msid9870 Před 4 lety +5

      Those are a special type of chalk. I think they are Japanese ones

    • @taurusdev7965
      @taurusdev7965 Před 4 lety +3

      @@msid9870 indeed, they're imported from Japan

    • @Nami-wo9db
      @Nami-wo9db Před 4 lety

      Right? So velvety smooth..

  • @christoskettenis880
    @christoskettenis880 Před 6 lety +4

    I love those boards and chalk!

  • @dr.strangelove9815
    @dr.strangelove9815 Před 2 lety

    What an excellent explanation and professor. Very well done!

  • @SrSKaTiZSrS
    @SrSKaTiZSrS Před 3 lety +2

    I felt like this was a great way to explain dynamic programming. My course work on it in college was fine enough for me to understand it but this is a much easier better way to explain it to learn from.

  • @deadpiece111
    @deadpiece111 Před 10 lety +403

    This dude got his PHD in 20.. How awesome is that.. O.O

    • @RetroGenetic
      @RetroGenetic Před 10 lety +26

      And the way he presents everything is just amazing, there's many gaps in my knowledge on these topics but the way he explains helps me to either fill the gaps or at least know where to look for answers.

    • @tyrisnolam
      @tyrisnolam Před 10 lety +128

      I'm 26 and didn't even finish my undergrad course yet. And I don't give a fuck. Not every universities and colleges are as awesome as the MIT or Caltech (etc). I'm from Hungary. I feel no drive to finish it. What you see here, this lecture, is quite the opposite of the way they teach us in Hungary. There are a very few good teachers here (but they, the good ones are really just great and I respect them), the majority just make us hate what we supposed to be enthusiastic about. Who cares, I just open my laptop and BOOM, I'm an MIT student, I can learn valuable stuff and I enjoy this difficult work with algorithms (or whatever) again. Maybe I'll finish my UG course, maybe I'll just quit and start making something amazing. Having a degree is good but if you can't do it, don't push it. There are many ways to be successful in what you like to do. If you can't finish, then college was just a bad guess and you should try another path to V (see what I did here?)

    • @jeanpaulnavier6726
      @jeanpaulnavier6726 Před 9 lety +8

      ranalynamic come on man, i understand the fact that some prof aren't the greatest ones(here in italy too,same faculty) but i think it's a student problem too, isn't it?!

    • @kdub1242
      @kdub1242 Před 9 lety +9

      ranalynamic I always thought Hungary was the land of geniuses. You've had John von Neumann, Eugene Wigner, Leo Szilard, Theodore von Karman, and on and on. These guys are my scientific heroes.

    • @tyrisnolam
      @tyrisnolam Před 9 lety +5

      Keith Wald It used to be better, I guess... These days it's a shame. I feel embarrassed. Or maybe it wasn't that different at all. Today, a talented student who is actually lucky enough to get the hell out of here, probably will still do a great job pretty much anywhere where she/he is going. But not here.
      Yes, many of them are of Hungarian origins (and by the way, Jewish also). On the other hand, if you read their whole story, almost none of them achieved anything here. This is what Hungary is really good at: putting talents in an impossible situation and make them go the fuck away :)
      Anyway. I'm glad you know about these people. :)

  • @astralchemistry8732
    @astralchemistry8732 Před 3 lety +3

    34:49 The moment you stumble upon life-advice in part 19 of the programming lecture you've been watching.

  • @GeoRevilo
    @GeoRevilo Před 11 lety

    the camera work is really good on this

  • @denisthamrin3449
    @denisthamrin3449 Před 8 lety

    I gotta say, this video series helps me to understand how to solve DP problem easily.
    For people trying to learn how to solve DP , what I recommend to do is to just watch all the series to understand the pattern (observe) then try to solve some other problems on internet (practise).

  • @thecodingjournal4726
    @thecodingjournal4726 Před 3 lety +3

    When I came to know about the name story of DP, I was also very excited.
    If anyone has done the course algorithmic toolbox, you might also be knowing this story!

  • @ludvikjerabek
    @ludvikjerabek Před 3 lety +4

    This guy is a fantastic teacher with great humor.

  • @martinp.2537
    @martinp.2537 Před 5 lety

    What a great person. He is making a very complicated topic at least a bit understandable for me :)

  • @marvinlessknown3702
    @marvinlessknown3702 Před rokem

    Good job camera person. You're following the material and zooming in when relevant!

  • @mariotaz
    @mariotaz Před 8 lety +3

    Great lecture!

  • @sandipanaich
    @sandipanaich Před 4 lety +4

    23:22, hey... even I like the recursion based top-down approach over bottom up.
    Btw, very good teacher.

  • @dathyr1
    @dathyr1 Před rokem

    I used to know all this in my past life. This is way beyond my comprehension. But a great teacher.

  • @tonyjames1980
    @tonyjames1980 Před 5 lety

    Wonderful lecture, Thanks for explaining the term.

  • @geekoist
    @geekoist Před 10 lety +9

    The last remark that the algorithm can be modified to compute weights of shortest paths in graphs (possibly with cycles) was rushed a little bit. Can someone explain it in better terms? Thanks :)

  • @NitRoGenSmile
    @NitRoGenSmile Před 9 lety +7

    shortest paths 31:00

  • @AaAaAaA-mm7cc
    @AaAaAaA-mm7cc Před 2 lety +1

    Just leaving this here for someone to remind me in a couple of years, I regretted majoring in information systems instead of CS, and I cannot change my degree, but I will work hard and learn most of the needed stuff online in order to be able to learn more cs stuff on top of finishing my degree and getting a nice job that i enjoy in the future, through hard work and determination!

  • @suranaajit123456
    @suranaajit123456 Před 3 lety

    Awesome! Thanks Eric & MIT for the great content

  • @EgbertWilliams
    @EgbertWilliams Před 9 lety +236

    Two questions:
    1) How does yellow chalk write in white?
    2) What do all those squiggles he wrote mean?

    • @mitocw
      @mitocw  Před 9 lety +198

      ***** 1)The chalk is only yellow on the outside.
      2)Topological sorts. (We presume you don't mean the math.) This link on Wikipedia might help: en.wikipedia.org/wiki/Topological_sorting

    • @EgbertWilliams
      @EgbertWilliams Před 9 lety +91

      Good God, MIT himself answered. Hi, MIT! And, yes, I meant the math. Don't presume or you'll make a pres out of you and me.

    • @prodev7401
      @prodev7401 Před 9 lety +1

      this is shortest path or bellman ford ... ?

    • @bobbybob4939
      @bobbybob4939 Před 9 lety +2

      Pro Dev ILL BELLMAN FORD YOUR NAN

    • @prodev7401
      @prodev7401 Před 9 lety

      ???

  • @zeronothinghere9334
    @zeronothinghere9334 Před 3 lety +8

    Dynamic Programming AKA "Careful Brute Force" XDD I lost it. Sooo accurate

  • @brooklyna007
    @brooklyna007 Před 4 lety

    This teacher is amazing!! I loved it!

  • @lloydangelo2315
    @lloydangelo2315 Před 2 lety

    I love how he much he could do with his mind. I'm a theoretical physics major and computer science

  • @Paco1337
    @Paco1337 Před 4 lety +5

    I'm looking at this now,same as I was looking at math class when I was a kid

  • @programmer4833
    @programmer4833 Před 3 lety +5

    I would dedicate my whole life to algorithms if he was my teacher.

  • @paulthomann5544
    @paulthomann5544 Před 11 lety

    If we assume that the fibonacci calculator function will be called many times for different numbers in essentially random order, the 'top-down' memoized version has an advantage:
    When called repeatedly with the same n, it takes linear time the first time, but constant time afterwards (if the dictionary persists between calls).
    In the bottom-up version, changes are required to achieve the same:
    if n

  • @PixelPulse168
    @PixelPulse168 Před 8 lety

    Bottom-Up is an amazing way of doing things.