3. Graph-theoretic Models

Sdílet
Vložit
  • čas přidán 18. 05. 2017
  • MIT 6.0002 Introduction to Computational Thinking and Data Science, Fall 2016
    View the complete course: ocw.mit.edu/6-0002F16
    Instructor: Eric Grimson
    Prof. Grimson discusses graph models and depth-first and breadth-first search algorithms.
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

Komentáře • 95

  • @accountname1047
    @accountname1047 Před 3 lety +69

    His students didn't give this guy enough love for his jokes, he's hilarious

    • @thomasstvarnik
      @thomasstvarnik Před 3 lety +10

      he is miced up, we cant hear if they laugh.

    • @nilskaizen5653
      @nilskaizen5653 Před 2 lety

      czcams.com/video/jqWt49o7R-k/video.html&ab_channel=groonfaloon

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

      He has been the Chancellor of MIT
      So they might be a but nervous to disturb him in any way or just conscious

    • @kanaipathak4426
      @kanaipathak4426 Před 2 lety

      Australian trees :-)

    • @prestigious5s23
      @prestigious5s23 Před rokem

      This has nothing to do with them being nervous or the lecturer using a mic, because when I started computer science in 2013 in a university, I was a mature student over 10 years older than most of the class and I saw fist hand that most didn't have a sense of humour or simply get most of the jokes. Even for the brightest of students, the jokes would go straight over their heads. Sometimes it would of been just me and the lecturer laughing at something he said, because the joke was like a dad joke but was too much for the class. Many students were like introverts so was always a tough crowd to please. Even myself when trying to have a bit of fun with some of the class, it was incredible to see what could annoy them and I'd have to explain the joke to them because they would easily take offence to things. Even more hilarious was as quiet as many the class were, I was surprised how many would happily take ecstasy on a weekly basis lol.

  • @espositogregory
    @espositogregory Před 3 lety +11

    This is amongst the more fascinating diamonds in the massive CZcams rough. While not fully comparable to attending, lectures from the likes of MIT & such for free are quite worthwhile! Thank you and great content

  • @masterchief1520
    @masterchief1520 Před 5 lety +73

    No loops in your family trees XD

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

    Adding a little humor in lectures just takes it to next level

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

    Thank you MIT! Eric is an excellent instructor!!

  • @aaronshed
    @aaronshed Před 6 lety +2

    Helps when an assignment is due and you havn't attended any lectures. Thanks!

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

    Thanks Prof. Grimson and MIT.

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

    Best course yet! Love this professor!

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

    The most interesting lecture I've come across so far

  • @SKyrim190
    @SKyrim190 Před 3 lety +41

    40% of the thumbnails for this course are the professors opening their arms widely

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

    Awesome lecture! Thank you MIT!

  • @SethuIyer95
    @SethuIyer95 Před 7 lety +13

    Thank you MIT

  • @ebateru
    @ebateru Před 3 lety

    Eric's killing it again!

  • @supercalifragilisticexpial7380

    He is the architect of the Matrix

  • @bengbeng2005
    @bengbeng2005 Před 6 lety +2

    what a great course this is awsome :D

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

    Can you put the courses into one serie? They are amazing and I'm having difficulties to find the all. Thanks

    • @mitocw
      @mitocw  Před 5 lety +20

      Here is the 6.0002 playlist: czcams.com/play/PLUl4u3cNGP619EG1wp0kT-7rDE_Az5TNd.html. Best wishes on your studies!

  • @UrgeidoitNet
    @UrgeidoitNet Před 7 lety

    love this !

  • @BrianPondiGeoGeek
    @BrianPondiGeoGeek Před 3 lety

    Amazing content

  • @akbarrauf2741
    @akbarrauf2741 Před 7 lety

    thanks,mit

  • @gustavobertolino400
    @gustavobertolino400 Před 5 lety +14

    Amazing lecture. This one and the earlier are pieces of excellent work and the reason why MIT has been recognized for doing it so well. But the explanations about the implementations of the algorithms are a bit faster than my ability to grasp them. Above all, MIT continues to be a reference in teaching.

    • @erinsam7821
      @erinsam7821 Před 5 lety +2

      Does anyone grasp it this fast? I mean people who are this new to programming and the python language. Do they get it that fast?
      I find myself having to pause the video and view the lecture slides to piece it together. I haven't developed the nerd's eye yet (nerd's eye = ability to read & understand code at the pace you would interpret a passage normally).
      If I'm not mistaken, this is, for the majority sitting in that classroom (correct me if I'm wrong) the second course they have ever taken in programming. I've learnt, to some degree, OOP in C++ in school, but shit, not this fast! How do the students handle there?
      MIT for a reason I guess...

    • @frannnnx
      @frannnnx Před 5 lety +2

      @@erinsam7821 I doubt all the students there understood everything taught during the lecture. They probably have access to the recorded lectures which they can watch to recap.

    • @jeffschlarb4965
      @jeffschlarb4965 Před 5 lety

      @@erinsam7821 I think they have recitation class, in addition to lecture, where grad students give you more detailed examples and answer questions. Some OCW classes have those video's as well. Or I know there is one for Python for Harvard CS 50, czcams.com/video/mvlTSMUNQN4/video.html

    • @RohitSingh-nm9wd
      @RohitSingh-nm9wd Před 3 lety +2

      There's only one way practice. Listen to the lecture go to your machine and try to do yourself. Whenever a doubt arises return to video and clarify

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

      In addition to what has been said in the other comments, there is also the relevant reading from the textbook for each lecture. I assume the students are supposed to read that before the lecture, to help them grasp the material.

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

    Theres one issue with the code that is given. Nowhere in the lecture notes or in the video defines the printPath() function. Also how does he print out in that format when the only way to do it is by calling on the Edge class method to print? especially when he is appending nodes and not edges. I am guessing it is done in the printPath() function

  • @leixun
    @leixun Před 3 lety +11

    *My takeaways:*
    1. What is a graph 2:30
    2. Coding examples 12:41

  • @minnyanlin2051
    @minnyanlin2051 Před 2 lety

    it's can help me a lot to connect algorithm and python

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

    Points connected by lines.
    35:10 Depth-first search.
    43:15 Breadth-first search.

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

    7:20 Australian trees lmao

  • @abdelkarimaths
    @abdelkarimaths Před 5 lety

    I need more courses

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

    Hi, amazing lectures. I have one suggestion for future recordings, especially for something code heavy: if we could be showing the slides longer than showing the professor talking most of the times, it would be much more helpful. Thank you for considering.

    • @swellapplespice
      @swellapplespice Před 3 lety +7

      Hi Tong Wu, the slides for the course are available here. I like to go through them myself while running the video in the background. Hope it helps.
      ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-0002-introduction-to-computational-thinking-and-data-science-fall-2016/lecture-slides-and-files/

    • @user-nr5zg6dk8z
      @user-nr5zg6dk8z Před 3 lety

      @@swellapplespice thank you for sharing info.

  • @hizkiaedwarsinaga3738
    @hizkiaedwarsinaga3738 Před 4 lety

    Dalam Graph bentuk Tree,tidak diperbolehkan adanya loop atau circuit
    mengapa pada contoh tree yang disajikan memiliki loop ?

  • @muhammadabdeltwab8255

    What a wonderful piece of art!
    But may I ask how far should I be aware of Python in order to fully understand the code?

    • @mitocw
      @mitocw  Před rokem +1

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

  • @manvir4864
    @manvir4864 Před 3 lety

    Why they are not showing the transit example?

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

    Have I missed something or he didn't defined printPath anywhere?

  • @ackinito
    @ackinito Před 2 lety

    Excellent lecture, but tough crowd.

  • @condafarti
    @condafarti Před 28 dny

    Actually the DFS function doesn't return the shortest path at the end, just saying.

  • @manvir4864
    @manvir4864 Před 3 lety

    Shouldn't there be an "or" instead of "and" at 24.33 in the last third line of code? Even if one is missing, we shouldn't be able to add an edge.

    • @luanvieira7580
      @luanvieira7580 Před rokem +1

      When we negate "and" it becomes "or". not(source and desnation) is the same as not source or not destination.

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

    I think at 29:00 it should say, "anything that works for a graph will also work for a digraph", not the other way round.

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

      No, technically all graphs are digraphs(in reality, not in our program), so a (client) program written for a digraph will work for a graph, but if a program is written for a graph it assumes that there is no directionality associated with edges, i.e., they go both ways, this is not true for a digraph.

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 Před 7 měsíci

    6:59

  • @ArunKumar-yb2jn
    @ArunKumar-yb2jn Před 3 lety

    32:57 I am getting a NameError in the code. Anyone else too getting error?

    • @user-tl4hm5gx7o
      @user-tl4hm5gx7o Před 2 lety

      I’m getting the error too. Have you found out why?

  • @FranciscoCosta123
    @FranciscoCosta123 Před 2 lety

    "We leave this is an easy exercise for the reader". LOL

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 Před 7 měsíci

    9:33

  • @theshreyansjain
    @theshreyansjain Před rokem

    no need to inherit from 'object' class in python 3

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

    A bit silly to define a __str__ method for an Edge class then instead of using it in __str__ of the Digraph class, they just repeat the same logic instead of printing the Edge instance and appending it to the result.
    great lecture regardless, what an awesome teacher.

    • @myselfremade
      @myselfremade Před 5 lety

      In general, his python code is not great. For example, you should not use getters and setters in python.

    • @studywithjosh5109
      @studywithjosh5109 Před 3 lety

      Andrew Crews how come. They can prevent accidental side affects

    • @ArunKumar-yb2jn
      @ArunKumar-yb2jn Před 3 lety +1

      @@myselfremade Also Key in Dictionary works, instead of looping over each key name and testing its equality.

    • @myselfremade
      @myselfremade Před 3 lety

      @@studywithjosh5109 Because they require an additional lookup

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

    I wish data science could show me how to study more efficiently

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

    my family tree has cycles

  • @AnhTu-en9gk
    @AnhTu-en9gk Před 6 lety

    Thank you , but can anyone give me the github link of this code?

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

      Any materials we have for the course are available for free on MIT OpenCourseWare at: ocw.mit.edu/6-0002F16.

  • @masterchief1520
    @masterchief1520 Před 5 lety

    Why do you upload course for free?

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

      About MIT OpenCourseWare: czcams.com/video/XUM4lLbG5UY/video.html

  • @rasraster
    @rasraster Před 6 lety +18

    REALLY bad camera work - barely ever shows his slides.

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

    I drop my knee on the ground

  • @Shurrupak
    @Shurrupak Před 3 lety

    Not dry enough

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

    Teacher looks like narendra modi

  • @omarkhaled9072
    @omarkhaled9072 Před 4 lety

    I need video translate into Arabic Please

  • @stephenadams2397
    @stephenadams2397 Před 4 lety

    Looks more like a New Zealand tree to me.

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

    "After November 8th, I might really want to take an European vacation. " Hmm... he saw it coming. Better listen to the scientists, POTUS.

  • @McAwesomeReaper
    @McAwesomeReaper Před 8 měsíci

    Preposterous to think that anyone would be friends with someone who went to Stanford.

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

    Did you move to Europe? HAHAHAHA

  • @FCEEMN-wx5qt
    @FCEEMN-wx5qt Před 4 lety

    Is this guy talking about poop?

  • @germanarrowood2748
    @germanarrowood2748 Před 2 lety

    The hard-to-find craftsman preferentially wish because jet individually scatter through a ten innocent. woebegone, handsome billboard

  • @quocvu9847
    @quocvu9847 Před rokem

    27:25