Lecture 2: Models of Computation, Document Distance

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

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

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

    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 лет назад +273

    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 лет назад +46

      Guy late to class 16:40

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

      MIT needs to pay you

    • @Ttvmushygushy
      @Ttvmushygushy 6 лет назад +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 😊

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

    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.

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

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

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

    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 7 лет назад +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 6 лет назад +2

      I can hear him saying "correct, my dude"

  • @snk-js
    @snk-js 4 года назад +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.

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

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

    Thank you MIT for making these classes available

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

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

  • @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 12 лет назад +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 8 лет назад +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

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

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

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

    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

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

      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

  • @MatrixfanMacUser
    @MatrixfanMacUser 12 лет назад +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.

  • @Discoblastulae
    @Discoblastulae 11 лет назад +36

    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.

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

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

  • @El_Adelantado
    @El_Adelantado 3 года назад +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.

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

    Thank you MIT for making these classes available on RUclips!

  • @alisheheryar1770
    @alisheheryar1770 3 года назад +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

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

    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 6 лет назад +43

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

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

      @@arsenron In what way?

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

      @@awise25 in pussy highway

  • @shawn576
    @shawn576 10 лет назад +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.

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

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

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

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

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

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

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

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

    I am just loving these classes. Hoping for masters.

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

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

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

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

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

    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

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

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

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

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

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

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

  • @真中合歓-y1e
    @真中合歓-y1e 10 лет назад +15

    I think Erik is better than the other one

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

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

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

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

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

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

  • @SphereofTime
    @SphereofTime Месяц назад

    0:48 document distance for learning algorithm

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

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

    This is absolute gold

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

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

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

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

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

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

    awesome lectures, you guys over at MIT are great

  • @monk_mode8273
    @monk_mode8273 6 лет назад +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 6 лет назад

      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

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

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

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

    document distance program at 33:20

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

  • @0xAlx
    @0xAlx 5 лет назад

    That teacher is freaking good.

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

    This guy has charisma:)

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

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

    Thank you, Pf, wish best for you

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

    great course,
    MIT is the best !

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

    I’m learning so much

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

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

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

    this guy is awesome, that's all

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

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

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

    A language can be taught, but not a culture

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

    This guy is an awesome teacher :D

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

    I have to say the advertisement was effective

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

    He is an awesome teacher

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

    Standard terminology for natural log is ln not lg.

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

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

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

    Very interesting lecture. I like it

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

    RAM is also random access method.

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

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

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

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

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

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

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

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

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

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

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

    See you guys at the 47th video. :)

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

    this prof is awesome.

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

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

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

    Great information - accessible to all. Suuuuuuuperb. Thnx

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

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

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

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

    very useful

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

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

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

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

  • @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 4 года назад

      I would say that the Euclidean Distance was the right answer

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

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

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

    Awesome! 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.

  • @300zxster
    @300zxster 6 лет назад

    couldn't he just make slides before the lecture? Makes the lecture clearer and faster and not so fragmented?

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

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

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

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

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

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

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

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

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

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

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

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

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

  • @deepak3303
    @deepak3303 7 лет назад

    Can we use stop words to remove commonly occurring prepositions before calculating document distance?

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

  • @nanoc.2103
    @nanoc.2103 5 лет назад

    So do students take notes on paper or actively use their computers to code what is being lectured on the board?

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

    Thanks!

  • @IcyClench
    @IcyClench 7 лет назад

    So does the document distance problem not take into account the order that the words appear?