3. Graph-theoretic Models

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ค. 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

ความคิดเห็น • 95

  • @accountname1047
    @accountname1047 3 ปีที่แล้ว +69

    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 2 ปีที่แล้ว

      th-cam.com/video/jqWt49o7R-k/w-d-xo.html&ab_channel=groonfaloon

    • @dearharshmehra
      @dearharshmehra 2 ปีที่แล้ว +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 ปีที่แล้ว

      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 3 ปีที่แล้ว +11

    This is amongst the more fascinating diamonds in the massive TH-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

  • @masterchief1520
    @masterchief1520 5 ปีที่แล้ว +73

    No loops in your family trees XD

    • @maggiejetson7904
      @maggiejetson7904 2 ปีที่แล้ว +2

      @@BenedictChen or if you are a European Royal.

  • @jatinvashisht4293
    @jatinvashisht4293 2 ปีที่แล้ว +1

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

  • @nathanielsabanski3882
    @nathanielsabanski3882 5 ปีที่แล้ว +7

    Thank you MIT! Eric is an excellent instructor!!

  • @aaronshed
    @aaronshed 6 ปีที่แล้ว +2

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

  • @ABMMONIRUZZAMANKHAN
    @ABMMONIRUZZAMANKHAN 6 ปีที่แล้ว +4

    Thanks Prof. Grimson and MIT.

  • @lyf8
    @lyf8 3 ปีที่แล้ว +2

    Best course yet! Love this professor!

  • @avtochakhnashvili5878
    @avtochakhnashvili5878 2 ปีที่แล้ว +2

    The most interesting lecture I've come across so far

  • @SKyrim190
    @SKyrim190 3 ปีที่แล้ว +41

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

    • @Debjit625
      @Debjit625 3 ปีที่แล้ว +4

      That was definitely a optimized observation :)

    • @michaellewis7861
      @michaellewis7861 3 ปีที่แล้ว

      .26_

    • @LemoUtan
      @LemoUtan 2 ปีที่แล้ว +1

      Are they all called Temba?

  • @terryliu3635
    @terryliu3635 3 ปีที่แล้ว +2

    Awesome lecture! Thank you MIT!

  • @SethuIyer95
    @SethuIyer95 7 ปีที่แล้ว +13

    Thank you MIT

  • @ebateru
    @ebateru 3 ปีที่แล้ว

    Eric's killing it again!

  • @supercalifragilisticexpial7380
    @supercalifragilisticexpial7380 6 ปีที่แล้ว +25

    He is the architect of the Matrix

  • @bengbeng2005
    @bengbeng2005 6 ปีที่แล้ว +2

    what a great course this is awsome :D

  • @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: th-cam.com/play/PLUl4u3cNGP619EG1wp0kT-7rDE_Az5TNd.html. Best wishes on your studies!

  • @UrgeidoitNet
    @UrgeidoitNet 7 ปีที่แล้ว

    love this !

  • @BrianPondiGeoGeek
    @BrianPondiGeoGeek 3 ปีที่แล้ว

    Amazing content

  • @akbarrauf2741
    @akbarrauf2741 7 ปีที่แล้ว

    thanks,mit

  • @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 5 ปีที่แล้ว +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, th-cam.com/video/mvlTSMUNQN4/w-d-xo.html

    • @RohitSingh-nm9wd
      @RohitSingh-nm9wd 3 ปีที่แล้ว +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 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.

  • @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

  • @leixun
    @leixun 3 ปีที่แล้ว +11

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

  • @minnyanlin2051
    @minnyanlin2051 2 ปีที่แล้ว

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

  • @anonviewerciv
    @anonviewerciv 3 ปีที่แล้ว +2

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

  • @iurgnail
    @iurgnail 7 ปีที่แล้ว +12

    7:20 Australian trees lmao

  • @abdelkarimaths
    @abdelkarimaths 5 ปีที่แล้ว

    I need more courses

  • @tongwu5957
    @tongwu5957 3 ปีที่แล้ว +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 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@swellapplespice thank you for sharing info.

  • @hizkiaedwarsinaga3738
    @hizkiaedwarsinaga3738 4 ปีที่แล้ว

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

  • @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!

  • @manvir4864
    @manvir4864 3 ปีที่แล้ว

    Why they are not showing the transit example?

  • @leandrocfg1
    @leandrocfg1 2 ปีที่แล้ว +1

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

  • @ackinito
    @ackinito 2 ปีที่แล้ว

    Excellent lecture, but tough crowd.

  • @condafarti
    @condafarti หลายเดือนก่อน

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

  • @manvir4864
    @manvir4864 3 ปีที่แล้ว

    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 ปีที่แล้ว +1

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

  • @adamrubinson6875
    @adamrubinson6875 5 ปีที่แล้ว +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.

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 7 หลายเดือนก่อน

    6:59

  • @ArunKumar-yb2jn
    @ArunKumar-yb2jn 3 ปีที่แล้ว

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

    • @user-tl4hm5gx7o
      @user-tl4hm5gx7o 2 ปีที่แล้ว

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

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 7 หลายเดือนก่อน

    20:52

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 7 หลายเดือนก่อน

    33:16

  • @FranciscoCosta123
    @FranciscoCosta123 2 ปีที่แล้ว

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

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 7 หลายเดือนก่อน

    9:33

  • @theshreyansjain
    @theshreyansjain ปีที่แล้ว

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

  • @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.

    • @myselfremade
      @myselfremade 5 ปีที่แล้ว

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

    • @studywithjosh5109
      @studywithjosh5109 3 ปีที่แล้ว

      Andrew Crews how come. They can prevent accidental side affects

    • @ArunKumar-yb2jn
      @ArunKumar-yb2jn 3 ปีที่แล้ว +1

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

    • @myselfremade
      @myselfremade 3 ปีที่แล้ว

      @@studywithjosh5109 Because they require an additional lookup

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 7 หลายเดือนก่อน

    29:31

  • @crocopie
    @crocopie 5 ปีที่แล้ว +3

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

  • @Duquelicious360
    @Duquelicious360 2 ปีที่แล้ว +1

    my family tree has cycles

  • @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.

  • @masterchief1520
    @masterchief1520 5 ปีที่แล้ว

    Why do you upload course for free?

    • @mitocw
      @mitocw  5 ปีที่แล้ว +8

      About MIT OpenCourseWare: th-cam.com/video/XUM4lLbG5UY/w-d-xo.html

  • @rasraster
    @rasraster 6 ปีที่แล้ว +18

    REALLY bad camera work - barely ever shows his slides.

    • @davidlee8536
      @davidlee8536 5 ปีที่แล้ว +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.

  • @jackhsien2002
    @jackhsien2002 4 ปีที่แล้ว +1

    I drop my knee on the ground

  • @Shurrupak
    @Shurrupak 3 ปีที่แล้ว

    Not dry enough

  • @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.

  • @mrvzhao
    @mrvzhao 6 ปีที่แล้ว +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 8 หลายเดือนก่อน

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

  • @markh872
    @markh872 5 ปีที่แล้ว +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

  • @jatinvashisht4293
    @jatinvashisht4293 2 ปีที่แล้ว

    25:27