3. Graph-theoretic Models

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • MIT 6.0002 Introduction to Computational Thinking and Data Science, Fall 2016
    View the complete course: ocw.mit.edu/6-0...
    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

КОМЕНТАРІ • 93

  • @accountname1047
    @accountname1047 3 роки тому +72

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

    • @thomasstvarnik
      @thomasstvarnik 3 роки тому +10

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

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

      ua-cam.com/video/jqWt49o7R-k/v-deo.html&ab_channel=groonfaloon

    • @dearharshmehra
      @dearharshmehra 3 роки тому +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 2 роки тому

      Australian trees :-)

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

      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 4 роки тому +11

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

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

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

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

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

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

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

  • @gustavobertolino400
    @gustavobertolino400 6 років тому +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 6 років тому +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 5 років тому +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 5 років тому

      @@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, ua-cam.com/video/mvlTSMUNQN4/v-deo.html

    • @RohitSingh-nm9wd
      @RohitSingh-nm9wd 4 роки тому +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

    • @lindgren.bjorn1
      @lindgren.bjorn1 3 роки тому +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.

  • @leixun
    @leixun 4 роки тому +11

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

  • @avtochakhnashvili5878
    @avtochakhnashvili5878 2 роки тому +2

    The most interesting lecture I've come across so far

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

    Thank you MIT! Eric is an excellent instructor!!

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

    No loops in your family trees XD

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

      @@BenedictChen or if you are a European Royal.

  • @tongwu5957
    @tongwu5957 4 роки тому +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 4 роки тому +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/

    • @물처럼-r1y
      @물처럼-r1y 4 роки тому

      @@swellapplespice thank you for sharing info.

  • @SethuIyer95
    @SethuIyer95 7 років тому +13

    Thank you MIT

  • @supercalifragilisticexpial7380
    @supercalifragilisticexpial7380 7 років тому +25

    He is the architect of the Matrix

  • @SKyrim190
    @SKyrim190 4 роки тому +42

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

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

      That was definitely a optimized observation :)

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

      .26_

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

      Are they all called Temba?

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

    Thanks Prof. Grimson and MIT.

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

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

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

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

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

    Best course yet! Love this professor!

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

    Awesome lecture! Thank you MIT!

  • @adamrubinson6875
    @adamrubinson6875 6 років тому +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 4 роки тому +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.

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

    Eric's killing it again!

  • @seungsooim2183
    @seungsooim2183 2 роки тому +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

  • @muhammadabdeltwab8255
    @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  Рік тому +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!

  • @condafarti
    @condafarti 5 місяців тому

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

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

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

  • @iurgnail
    @iurgnail 7 років тому +12

    7:20 Australian trees lmao

  • @omrikatz2107
    @omrikatz2107 7 років тому +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.

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

      Andrew Crews how come. They can prevent accidental side affects

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

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

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

    Excellent lecture, but tough crowd.

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

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

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

    what a great course this is awsome :D

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

    Amazing content

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

    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 2 роки тому +1

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

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

    Why they are not showing the transit example?

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

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

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

    thanks,mit

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

    I need more courses

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

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

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

    love this !

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

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

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

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

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

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

    • @陳俊佑-s8f
      @陳俊佑-s8f 2 роки тому

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

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

    REALLY bad camera work - barely ever shows his slides.

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

      There are slides on the site. You should prepare them on hand while watching videos.

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

      print screen helps

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

      Read the description.

  • @Heuristicpohangtomars
    @Heuristicpohangtomars 11 місяців тому

    6:59

  • @Heuristicpohangtomars
    @Heuristicpohangtomars 11 місяців тому

    20:52

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

    my family tree has cycles

  • @Heuristicpohangtomars
    @Heuristicpohangtomars 11 місяців тому

    33:16

  • @Heuristicpohangtomars
    @Heuristicpohangtomars 11 місяців тому

    9:33

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

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

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

    Not dry enough

  • @AnhTu-en9gk
    @AnhTu-en9gk 6 років тому

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

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

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

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

    I drop my knee on the ground

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

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

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

    Teacher looks like narendra modi

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

    I need video translate into Arabic Please

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

    Looks more like a New Zealand tree to me.

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

    Why do you upload course for free?

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

      About MIT OpenCourseWare: ua-cam.com/video/XUM4lLbG5UY/v-deo.html

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

    Did you move to Europe? HAHAHAHA

  • @FCEEMN-wx5qt
    @FCEEMN-wx5qt 4 роки тому

    Is this guy talking about poop?

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

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

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

    27:25

  • @Heuristicpohangtomars
    @Heuristicpohangtomars 11 місяців тому

    29:31

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

    25:27