Lecture 2: Models of Computation, Document Distance

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 310

  • @AlexiKaruna
    @AlexiKaruna 7 лет назад +671

    What I love is that they write on the blackboard. Really. So much more engaging and easy to follow than powerpoints.

  • @emo_nemo
    @emo_nemo 7 лет назад +271

    The lecture starts at 0:29.
    "What's an algorithm" : 2:16
    Python computational model : 18:09
    Document distance problem : 33:12
    Algorithm : 42:35

    • @bhabanism
      @bhabanism 7 лет назад +45

      Guy late to class 16:40

    • @Ttvmushygushy
      @Ttvmushygushy 5 лет назад +1

      MIT needs to pay you

    • @Ttvmushygushy
      @Ttvmushygushy 5 лет назад +4

      let me rephrase myself, "You need to be compensated by MIT for your amazing contributions to the comments section"

    • @tylerdurden4169
      @tylerdurden4169 4 года назад

      Amazing I see your comments through out the lecture series . Thank u 😊

  • @andre.queiroz
    @andre.queiroz 8 лет назад +438

    I'm always astonished how a genius like Erik is so likeable and is able to explain clearly topics so basic for him while no-ones from unknown universities can be such jerks and terrible at teaching...

    • @jiaqiliu9350
      @jiaqiliu9350 6 лет назад +4

      true

    • @dcmarvel3031
      @dcmarvel3031 6 лет назад +2

      No doubt

    • @dylancutler1978
      @dylancutler1978 6 лет назад +39

      The fact that they're "no-ones" and their attitude I believe are correlated. Real intelligence is careful and humble.

    • @NasifIstiak
      @NasifIstiak 6 лет назад +9

      Dunning Kruger effect?

    • @anthienvo
      @anthienvo 5 лет назад +2

      I can hear him saying "correct, my dude"

  • @shashankbajpai5659
    @shashankbajpai5659 3 года назад +18

    I regret the fact that i didnt knew about these lectures before. They are much better than what my professors teach me.

  • @akarshrastogi3682
    @akarshrastogi3682 6 лет назад +146

    Somewhere in India, I mention to my mom, do you know who this guy is? He's a prodigy, now he teaches at MIT and I can't wait to watch each of his lectures, here on my laptop.
    Thank you MIT, Eric, the Internet and Computer Science in general for existing and making all of this possible.

    • @anmolsharma9539
      @anmolsharma9539 4 года назад +6

      Absolutely right brother

    • @khushivers3
      @khushivers3 Год назад

      i wanted to go to mit oriit but was unfortunately born in an abusive househole i love my mo bu that emy dad and this channel rlly helped me redeem myself in my own eyes

  • @jainamkhakhra3898
    @jainamkhakhra3898 6 лет назад +53

    Not just the teaching!!!.I can't believe how amazing that chalk is...

  • @syd6358
    @syd6358 Год назад +6

    08:23 RAM but not Random Access Memory
    11:45 a computer word (is w bits)
    13:15 pointer machine
    20:30 list in python is linked list but it has constant time, while linked list has linear time
    20:50 poiner machine use oop (and your object has only constant amount of elements)
    22:20 l.append(x) how much it costs
    25:51 how long time does operation take: x in L
    26:22 how long time does operation take. Len(L)
    27:00 sort list (what time do computer need)
    28:10 how long does this take D[key]

  • @gauravmufc1
    @gauravmufc1 3 года назад +17

    You know how genuine a teacher is if he has implemented what he's teaching, unlike 90% of them who just read up the textbooks and don't actually have worked on the practical aspects of it.

  • @vivekmohan4271
    @vivekmohan4271 7 лет назад +292

    This guy got a bachelor's degree by age 14 and a Phd by age 20;
    mind == blown;

    • @generalqwer
      @generalqwer 7 лет назад +8

      But it was in canada so yeah

    • @94D33M
      @94D33M 5 лет назад +42

      @@generalqwer it was in canada so , what do you mean bro

    • @awise25
      @awise25 5 лет назад

      @@arsenron In what way?

    • @arsenron
      @arsenron 5 лет назад +12

      @@awise25 in pussy highway

  • @eddituss
    @eddituss 11 лет назад +13

    I teach as a profession, The best way to determine if a teacher knows the subject properly is to let him/her give the lecture without any pre-made presentations that will just "forbid" abstraction from students, besides using chalk boards is absolutely great

  • @Discoblastulae
    @Discoblastulae 10 лет назад +35

    Wasn't til I discerned what was on his shirt that I realized I saw him in "Between the Folds", that beautiful documentary on origami practitioners. He was the kid genius at the end.

  • @MatrixfanMacUser
    @MatrixfanMacUser 11 лет назад +23

    I wish my university (BUTE, Hungary, Budapest) had as good classes as MIT! These videos made me realize that completing a degree at my university is harder than MIT and my degree won't worth as much by far. And it's not because of more quality or more information. It's because a lot of our professors would only chalk up integrals and the whole Greek abc on the board, without us even knowing what are we talking about. Almost all the explanation we have to figure out ourselves at home...

    • @JM1675
      @JM1675 7 лет назад +6

      That's relatable. I have teachers like that since high school. All they did was chalk up the formulas on the board with poor explanation. A good teacher is invaluable.

    • @satyam1945
      @satyam1945 4 года назад +1

      MatrixfanMacUser come to IIT its easy for outsider to get in than natives.

    • @sujaysingh686
      @sujaysingh686 4 года назад +1

      Bro for which degree is this course? and what would possibly be the average age of the students?
      Just curious!

    • @kritgrover
      @kritgrover 2 года назад

      @@sujaysingh686 its for computer engineering or computer science. average age is about 19

  • @snk-js
    @snk-js 3 года назад +5

    the year is 2020 and I'm watching now the whole series of vídeos, I'm addicted, and I will repeat it again soon, I did never imagined that some so condensed trues are spoken by that clever guy.

  • @abdurrahimahmadov4309
    @abdurrahimahmadov4309 2 года назад +7

    Thank you MIT for making these classes available

  • @bakermrad
    @bakermrad 2 года назад +5

    it is 2022 and this is still useful thank you MIT and thanks for all the excellent professors for this.

  • @MatrixfanMacUser
    @MatrixfanMacUser 11 лет назад +20

    I just understood everything, I wish I had the time to watch all of the MIT equivalents of our classes! What really funny is that thematically our university's course is the same as MIT's, but it's all in the explanation, willingness to make students understand.

  • @El_Adelantado
    @El_Adelantado 2 года назад +2

    Fantastic humor sneaks in at the most amusing times. Great presentation.

  • @Jonathan-od5xc
    @Jonathan-od5xc 5 лет назад +4

    I had to pause the video and share my appreciation for the sophisticated explanation of the root of algorithms and their applications.
    Sorry, Professor, please continue.

  • @aseel8901
    @aseel8901 3 года назад +2

    he is AMAZING!. Thank you MIT for giving us the opportunity to watch these lectures

  • @motionmoe
    @motionmoe Год назад +1

    I don’t understand a word of these videos but I just continue watching them for some reason.

  • @andrewgrebenisan6141
    @andrewgrebenisan6141 7 лет назад +17

    I'm actually so genuinely happy watching these lectures :D

  • @shawn576
    @shawn576 9 лет назад +6

    This guy reminds me of my industrial motors teacher. He would make examples on the fly and they wouldn't always work. I thought it was fun to watch him try to think his way through it, but the people who wrote notes instead of paying attention hated it.

  • @Kerozen100
    @Kerozen100 11 лет назад +7

    Thank you MIT for making these classes available on RUclips!

  • @alisheheryar1770
    @alisheheryar1770 2 года назад +1

    Today I learned why neural nets use tensor dot products. Capture the amount of similarity by calculating a dot product(WX+b). Thanks MIT

  • @punstress
    @punstress 10 лет назад +6

    Beautiful handwriting ... He writes so fast and so well.

  • @jatinsharma1915
    @jatinsharma1915 4 года назад +3

    Al-Khwarizmi wrote "Kitab al hisab al Hindi" ( "book of Hindu numericals").
    This was translated into Latin by the name "Algorithmi de Numero Indorum" ("Al-Khwarizmi's Indian numericals").
    This book's name was abbreviated as "Algorithm".
    That is how the world knows it today
    Credit - @TIinExile

  • @ahmaurya
    @ahmaurya 9 лет назад +65

    I love his teaching! I am watching at 1.5x speed though.

  • @amanranjanverma
    @amanranjanverma 5 лет назад +6

    I am just loving these classes. Hoping for masters.

  • @PhilShnider
    @PhilShnider 7 лет назад +8

    Prof.Erik was one of the youngest professors I have ever known, PhD at the age of 21 I think.

  • @joaoneves5839
    @joaoneves5839 4 года назад +2

    This is absolute gold

  • @jesuskraisnik
    @jesuskraisnik 5 лет назад +3

    Lg = Log with a base of 2 cause Lg is only 2 letters long, mindblowing.

  • @Artificial_Intelligence_AI
    @Artificial_Intelligence_AI 4 года назад +2

    he looks like a Hollywood propotype of a smart hacker, but even better because he explains everything so well. Again reality surpasses fiction

  • @FalakShah91
    @FalakShah91 4 года назад +3

    There's a lot of features in python that use algorithms, and that's kind of why I'm telling you. Love his subtle jokes :)

    • @bprashanth9110
      @bprashanth9110 3 года назад

      Whether it's only for python programming language or it can be apply for java program?

  • @user-uz9fw2ln8p
    @user-uz9fw2ln8p 10 лет назад +15

    I think Erik is better than the other one

  • @obinnaubah9045
    @obinnaubah9045 5 лет назад +3

    If you really want to understand this series, start from the beginning!

  • @virajpatel8451
    @virajpatel8451 4 года назад

    This guy is the most programmer programmer person I've seen so far

  • @HexagonalClosePacked
    @HexagonalClosePacked 4 года назад

    I like how he wrote an example quickly to support the theory then just have a finish line with "whatever". I like these kind of "whatever"

  • @pastrop2003
    @pastrop2003 8 лет назад +3

    awesome lectures, you guys over at MIT are great

  • @websoftwaredeveloperijtiha3093

    It's so cool that these top schools release courses like this one online free of charge. I may not get a chance to go to MIT

  • @BerkayCelik
    @BerkayCelik 11 лет назад +1

    amazing videos, cannot be better, and i think it's better than powerpoint presentations. In addition they have all material (codes, lecture notes) in course web page.

  • @Fumble469
    @Fumble469 3 года назад +1

    even though he was a bit nervous he still did a great job teaching

  • @rj-nj3uk
    @rj-nj3uk 5 лет назад

    all professor should be like erik. He makes the class interesting.

  • @thepeopleofblore
    @thepeopleofblore 9 лет назад +5

    document distance program at 33:20

  • @balramtiwari1334
    @balramtiwari1334 2 года назад

    Arrays generally contain elements of the same datatype. But, lists, on the other hand, can contain elements of all datatypes.

  • @azizas9366
    @azizas9366 7 лет назад +4

    agree with him, list in python is confusing with array.

  • @getowtofheyah3161
    @getowtofheyah3161 3 года назад +1

    As someone who lectures this class is well-lectured.

  • @fleecejohnson5274
    @fleecejohnson5274 3 года назад +2

    I'd love to find a video where they apply these concepts to real programming language problems

  • @emarg0024
    @emarg0024 Год назад

    There is a lot of abstraction. Which is a way of teaching. This can be bridged,

  • @monk_mode8273
    @monk_mode8273 5 лет назад +2

    The word algorithm comes from the name of the 9th century Persian and Muslim mathematician Abu Abdullah Muhammad ibn Musa Al-Khwarizmi, he was mathematician, astronomer and geographer during the Abbasid Caliphate, a scholar in the House of Wisdom in Baghdad.also He is often considered one of the fathers of algebra. also he is the creator of the numbers which we use today.

    • @vijayshankar4645
      @vijayshankar4645 5 лет назад

      Not exactly..the numeric system evolved in India in around 1 - 4 century AD. It was adopted in Arabic by the 9th century as Indians and Arabs use to trade a lot.
      en.wikipedia.org/wiki/Hindu%E2%80%93Arabic_numeral_system

  • @osxs333__7
    @osxs333__7 4 года назад +2

    Nothing better than rolling up a wood and studying the mind of computers on a Sunday morning

  • @GoogleUser-ee8ro
    @GoogleUser-ee8ro 5 лет назад +4

    48:45 Hope he will explain what tricks implemented to get to 0.2 second later in the lectures.

  • @TheAhmedMAhmed
    @TheAhmedMAhmed 11 лет назад +2

    great course,
    MIT is the best !

  • @coolblue5929
    @coolblue5929 Год назад

    Standard terminology for natural log is ln not lg.

  • @naruto21920
    @naruto21920 7 лет назад +5

    This video is really good! Does any one know how is the difficulty level of this course compared with Google or Facebook technique interviews (algorithm part)?

  • @SaifUlIslam-db1nu
    @SaifUlIslam-db1nu 5 лет назад +6

    See you guys at the 47th video. :)

  • @AskJonJong
    @AskJonJong 5 лет назад +1

    this guy is awesome, that's all

  • @bekmurodabdukhamidov5286
    @bekmurodabdukhamidov5286 4 года назад

    Al-Kharazmiy(Al-Xorazmiy) he was from my city. Kharezem, Uzbekistan. Super proud

  • @0xAlx
    @0xAlx 4 года назад

    That teacher is freaking good.

  • @steelbrotherhoodof2359
    @steelbrotherhoodof2359 Год назад +2

    is an algorythme the same as an arythmetic ? or is the other one non repetative. ?

  • @isbestlizard
    @isbestlizard 4 года назад

    This guy is an awesome teacher :D

  • @spanish1977
    @spanish1977 5 лет назад

    Thank you, Pf, wish best for you

  • @theprince_101
    @theprince_101 Год назад

    I have to say the advertisement was effective

  • @ali51717
    @ali51717 5 лет назад +7

    2019, python still doesn't have the linked list
    I created one using OOP and it was a pain in the head.

    • @utkarshschannel8763
      @utkarshschannel8763 4 года назад +1

      that's why avoid doing ds algo in python

    • @RiazRizvi
      @RiazRizvi 4 года назад +2

      This is misleading. Python lists are arrays of PyObjects, ie references, so they are more like linked lists in some ways. Access to members of the list is O(1) but the actual interesting data you care about must still be loaded into memory, and the time to reach it depends on the data type. This is different to an array, where the size of each data type influences the allocated size of the array. Python lists, on the other hand, are all the same size for a given length, no matter what size data they hold. So I think the BDFL had a point in naming them lists.

    • @ali51717
      @ali51717 4 года назад

      @@RiazRizvi please provide a link for more info this is interesting

    • @RiazRizvi
      @RiazRizvi 4 года назад

      @@ali51717 The best place to look is in the CPython implementation on github, in the folder github.com/python/cpython/tree/3.8/Objects there is listobject.c and object.c which implement (and comment on) python's list (PyListObject) and PyObject. The Python/C API section docs.python.org/3/c-api/index.html is also useful, there is a section on memory management among other things.
      BTW I'm not sure how implementing a true linked list with a small object as the link is hard in Python. Could you explain that?

  • @Levelord92
    @Levelord92 2 года назад +1

    Too sad that the lecture has really high cohension with Python language. I'm using Golang and it behaves differently

  • @revankampf
    @revankampf 11 лет назад

    Great information - accessible to all. Suuuuuuuperb. Thnx

  • @someshwartripathi8446
    @someshwartripathi8446 4 года назад +2

    🔥🔥🔥

  • @dwangus
    @dwangus 11 лет назад

    it's not about the quality of the work, because of course, it's MIT.
    It's about the "oh come on" factor.

  • @MrCarburettor
    @MrCarburettor 4 года назад +1

    15:30 Modern languages don't call them pointers cause Pointers are scary hahahaha.
    A friend of mine told me once, do you know why Java is great???
    Because there is no Pointers!! :)))
    Even infact everything in Java is a pointer but this is straight to the point...

  • @shayscorp7849
    @shayscorp7849 2 года назад +1

    This guy's the model for David Van Driessen from Beavis and Butthead.

  • @steelbrotherhoodof2359
    @steelbrotherhoodof2359 Год назад

    i can see it as specific jargonne or abuse of daily language.

  • @fvveb2141
    @fvveb2141 6 лет назад

    He is an awesome teacher

  • @spmanc
    @spmanc 7 лет назад +2

    very useful

  • @hukunamutata
    @hukunamutata 4 года назад

    I’m learning so much

  • @bhoopendrakumar317
    @bhoopendrakumar317 7 лет назад +1

    I wish I ll have a chance to study there beauty of the study and beauty of the living.......

  • @alexanderrichardson2257
    @alexanderrichardson2257 2 года назад

    I go to a college that costs 80k per year... it's stupid that I'm basically paying for a piece of paper when I can get high quality content like this for free!

  • @esergey12
    @esergey12 2 года назад

    Very interesting lecture. I like it

  • @yumi1714
    @yumi1714 8 лет назад +9

    Why should words be at least log the size of memory.

    • @SKyrim190
      @SKyrim190 8 лет назад +32

      Because you want the word to be able to point to a memory location without any confusion.
      So, let's say you have a very small memory of 8 words. 3 bits will be enough, because you can make 000 points to space 1, 001 points to space 2, 010 points to space 3, etc...
      If you had more bits, it will be acceptable for other applications of the words, but unnecessary for pointing to memory spaces.
      If you had less bits than this minimum, you would "run out of values" before being able to point to all memory spaces. Consider the 8 spaces memory with 2 bits words. You would be able to write 00,01,10,11, so 4 memory spaces would go without a correspondent pointer.

    • @dharmpal7198
      @dharmpal7198 4 года назад

      @@SKyrim190 Great!

  • @togrulmammadbayli1382
    @togrulmammadbayli1382 5 лет назад +3

    how L = L1 + L2 takes const time if this time depends on sum of arrays size? 24:40

    • @dman10345
      @dman10345 4 года назад

      I know this was posted a while ago but for anyone who might find it useful. It’s takes constant time because accessing a field takes constant time and list have a field with their size stored in it. Simple operations on ‘words’ such as an integer take constant time so adding two integers together takes constant time.

  • @michaelchinchen
    @michaelchinchen 4 года назад +1

    No love for his feel like a nut joke? Sheesh, i was chuckling!

  • @mehappierthanu
    @mehappierthanu 11 лет назад

    this prof is awesome.

  • @w1d3r75
    @w1d3r75 4 года назад

    This guy has charisma:)

  • @jerrymahone335
    @jerrymahone335 5 лет назад

    RAM is also random access method.

  • @maheshvangala8472
    @maheshvangala8472 6 лет назад

    a bit confused
    common words will determine distance between the documents right?
    later it was clear
    nice explaination by Eric
    thank you

  • @LordMoopCow
    @LordMoopCow 2 года назад

    Thanks chief you spin a mighty yarn on them computation machines i tell u wut

  • @TheKnowledgeBase69
    @TheKnowledgeBase69 Год назад

    Thanks!

  • @emarg0024
    @emarg0024 Год назад +1

    A language can be taught, but not a culture

  • @makharsa12
    @makharsa12 7 лет назад +3

    isn't there a formula for finding the distance between two vectors ? or did he intentionally wanted the angle between two vectors

    • @jairmiranda5341
      @jairmiranda5341 3 года назад

      I would say that the Euclidean Distance was the right answer

  • @satyam1945
    @satyam1945 4 года назад +4

    I'm in my final year, it reminds me when i was in my highschool and was doing coaching classes for IITs admission and. Teacher used to give 50-100 bucks to students for correct answer (for good question only),and with that money we bunk classes to watch movies 😂.

  • @nikenuke
    @nikenuke 2 года назад

    Awesome! Thank you!

  • @arunkumarcs9191
    @arunkumarcs9191 3 года назад

    At 41:24 why is it arccos? it should be cos right? arccos gives the angle right?

    • @g.deepakkrishnaa3847
      @g.deepakkrishnaa3847 2 года назад

      Yes! And, we are looking for the angle not the cos of the angle. Hence , we should use arccos

  • @amlsakr9957
    @amlsakr9957 9 лет назад +1

    please give me an explanation about the 11 minute in video to the minute 14 . i cannot understand it

  • @MohammadrezaMemarian
    @MohammadrezaMemarian 8 лет назад +2

    why is time complexity of x+y O(|x|+|y|) and not O(max(|x|,|y|).

    • @Jiangjifeng
      @Jiangjifeng 8 лет назад +3

      I think it's because it takes |x| to read through each 'word' in x and |y| for y. Addition of two 'words' takes constant time. So it's |x| + |y| overall. I can see where your answer comes from though.

    • @abhinabacharya7398
      @abhinabacharya7398 5 лет назад

      Don't O(|x|+|y|) and O(max(|x|,|y|) both give same answer?

  • @MrRynRules
    @MrRynRules 4 года назад

    Thank you!

  • @AbhishekVerma-iz2hl
    @AbhishekVerma-iz2hl 5 лет назад

    Thank You Sir, from India. Q1. Why does python take more time to solve any problem with respect to C ?, since in python all the used inbuilt functions are standard ( standard in sense, that they are most effective ) and in C we write the same functions/algorithms manually. Does it only because of, time required in fetching that module from memory , breaking that module in its sub-parts .....or because python is interpreted where as c is compiled. Are these time constant ( i.e not varry with number of inputs ) ? Thanks Again.

  • @ashutoshchakraborty6858
    @ashutoshchakraborty6858 4 года назад

    12:54 "And you don't have to worry about it". Where have I heard that before?

  • @64standardtrickyness
    @64standardtrickyness 3 года назад

    Wait so is this the RAM or Word RAM model? and if its the latter is there basically a bunch of hidden log factors when we talk about memory?

  • @alonamaloh
    @alonamaloh 3 года назад

    I am many years late for this correction, but "algebra" does not come from "al-Khwārizmī" at all. It comes from "al-jabr", which is Arabic for "the reunion of broken parts". The Spanish word "álgebra" has a somewhat obsolete meaning in the dictionary which is something like "the art of putting dislocated bones back in their place".

    • @dalton-lima
      @dalton-lima 2 года назад

      He wasn’t referring ‘Algebra’, but ‘Algorithm’.

  • @thealchemist9781
    @thealchemist9781 2 года назад

    Linear time

  • @mattkaczmarczyk6953
    @mattkaczmarczyk6953 5 лет назад

    A pleasure

  • @Lost1nTranslation
    @Lost1nTranslation 5 лет назад

    At 45:08 why does he say 'this will never finish'? Given enough time, wouldn't it always finish despite the size?