Besides struggling with some of the initial assignments, this has given me the most trouble so far... gonna take a lot of effort to get through this one
I encourage anyone to have a look at the channel: thenewboston if you're struggling with this... This is a more general programming and computer science course, where it's expected that the students do quite a bit extra work to keep up with the course load. thenewboston's Python tutorial is 47 short videos long which can be covered in a few days and covers much of the basic syntax in Python.
Is it just me, or is the TOH algorithm way more difficult than the others? Was I supposed to figure this one out by myself? Even now, knowing the solution, I still have trouble getting my head around it. Until this point I was able to follow everything in this course rather easily ...
I am more confused than a chameleon in a bag of skittles trying to understand the recursion process of Towers(). The multiple returns is what's really getting me.
@randomlettersasdfg thats why this is an MIT course and not a community college course. MIT is not going to take it slow. get it the first time, or dont get it. (or in youtubes case, rewind XD). not to mention, you have to remember that the instructors assign homework for a reason. it helps your understanding of the course so you are better prepared for the lectures. and you my friend, i would guess, are not doing the homework. so if you have no background programming experience, its no surprise
@randomlettersasdfg The assignments are really important in getting the content. Programming needs to be practised a lot to be gotten. Reading and following lectures are not even half the job
The code in exp3 has an error. The line if(b%2) * 2 == b will almost never evaluate to true. What was meant was either if(b/2)*2 == b using integer division, or if(b%2)==0. The intent is to find out if b is an even number. The original code did not accomplish that.
@apiitg No it shouldn't. This is *supposed* to check if b is even or not. Let's try it with b=8. (8%2)*2 = 0*2 = 0. Since 0 != 8, it will return false, despite b being even.
Besides struggling with some of the initial assignments, this has given me the most trouble so far... gonna take a lot of effort to get through this one
PoisonedV 2 weeks ago
Are the handouts available somewhere?
theVex97 3 weeks ago
I encourage anyone to have a look at the channel: thenewboston if you're struggling with this... This is a more general programming and computer science course, where it's expected that the students do quite a bit extra work to keep up with the course load. thenewboston's Python tutorial is 47 short videos long which can be covered in a few days and covers much of the basic syntax in Python.
Geebsee 4 weeks ago
That girl or guy in down-right corner spent half a class on facebook! :D
OverG88 1 month ago in playlist Favorite videos
Comment removed
OverG88 1 month ago in playlist Favorite videos
This guy is a boss
alotan2acs 2 months ago
anyone unclear about big O, either google it or read this, took me 10mins to understand this lec
watch?v=4p1WqREIJq8
thanks
callmejon 2 months ago
I take breaks to go study what the hell the guys just said, i suck at math.
nj20baller 2 months ago
That awasome moment when you know the answer of a question Eric asked.
Belgarath 2 months ago
lol bin so lieb
RandyManaqr317 3 months ago
I saw the colored rings and immediately got excited about this lecture.
DustinTROM 3 months ago
Is it just me, or is the TOH algorithm way more difficult than the others? Was I supposed to figure this one out by myself? Even now, knowing the solution, I still have trouble getting my head around it. Until this point I was able to follow everything in this course rather easily ...
phnaargos 3 months ago
Fantastic lecture. I wanna be as brainy as him.
agapitoflores001 3 months ago
In the binary search, where they calculate mid he uses the line:
mid = (first - last)/2 + first
Isn't that the exact same as:
mid = (fist + last)/2
I'm not sure I like how this guy's mind works. lol
SunflashMace 4 months ago
@SunflashMace it's not the same.
Ex: let's say first = 5 and last = 3
(5-3)/2 + 5 = 9 for the first equation
(5+3)/2 = 4 for the second
lightninggodzeus 3 months ago
@lightninggodzeus but the list is sorted, first is never bigger than last, right?
MrBTie 3 months ago in playlist MIT 6.00 Intro to Computer Science & Programming, Fall 2008
I am more confused than a chameleon in a bag of skittles trying to understand the recursion process of Towers(). The multiple returns is what's really getting me.
crwilliams88 5 months ago
Prof makes error at 28:54 "As Emeril would say, Pow!"
This is wrong. Emeril says "Bam!" not "Pow!"
ldb579932 7 months ago
the search algorithm only works when the integers are in ascending order
>>> b = [1, 8, 7, 20, 100, 200, 3]
>>> search(b, 3)
False 2
matthewkevinpowers 8 months ago
As someone without any background in programming, im basically completely lost by this point.
randomlettersasdfg 9 months ago 10
@randomlettersasdfg He barley touched the language, only thing he went over was the logic to some mathematic concepts.
onlyoneskiez 5 months ago
@randomlettersasdfg thats why this is an MIT course and not a community college course. MIT is not going to take it slow. get it the first time, or dont get it. (or in youtubes case, rewind XD). not to mention, you have to remember that the instructors assign homework for a reason. it helps your understanding of the course so you are better prepared for the lectures. and you my friend, i would guess, are not doing the homework. so if you have no background programming experience, its no surprise
DanielWayne329 4 months ago in playlist MIT 6.00 Intro to Computer Science & Programming, Fall 2008
@randomlettersasdfg The assignments are really important in getting the content. Programming needs to be practised a lot to be gotten. Reading and following lectures are not even half the job
TheMartingull 3 months ago
17 people bothered to comment :)
loko95ftp 10 months ago
great lecture. I really enjoyed the class and felt like sitting in the class after 8 years! now I'm really brushed up algorithm complexity lessons!
csarath 1 year ago
Why does he hand out candy... creapy
kristianjensendk 1 year ago
This has been flagged as spam show
Free Energy is real and it's here but the coverup is strong, if u r interested in a REAL free energy magnet motor
just go to LT-MAGNET-MOTORdotCOM and download the blueprints ,it's probably the ONLY working magnet
motor out there. Join the free energy revolution!!
graywackeknifebdr 1 year ago
Finally I feel comfortable with complexity ..
The last part about access time was something I wasn't considering in my implementations. Great Lecture..
ahmadnraja 1 year ago 4
Awesomeness. MIT's seal of quality, for sure.
leozzord 1 year ago
In Python 3, in bsearch() the line should be:
mid = math.floor(first + (last-first)/2)
If you don't, it returns and error that mid shouldn't be an int, not a float. You'll also need to import math as well.
computersguy13 1 year ago
Eric Grimson is the man.
MrDogbert2 2 years ago 3
Comment removed
jdtbruck 2 years ago
When he says binary search, he actually means "bisection search" refer to lecture 6.
jdtbruck 2 years ago
The code in exp3 has an error. The line if(b%2) * 2 == b will almost never evaluate to true. What was meant was either if(b/2)*2 == b using integer division, or if(b%2)==0. The intent is to find out if b is an even number. The original code did not accomplish that.
tkearn5000 2 years ago 36
I also found that. With the original code, the iteration of exp3 is same as exp 2.
TakaSuzukiJP 2 years ago
@tkearn5000 Agree, wanted to post it myself)
sanGuziy 1 year ago
@tkearn5000 I am a new programmer and I just assumed I wasn't getting something because these are MIT people
matthewkevinpowers 8 months ago
@tkearn5000 Professor says that he is assuming integers rt before he shows exp3 so it should work.
apiitg 5 months ago
@apiitg No it shouldn't. This is *supposed* to check if b is even or not. Let's try it with b=8. (8%2)*2 = 0*2 = 0. Since 0 != 8, it will return false, despite b being even.
sivius 5 months ago
The % finds the remainder in integer addition.
7%3 = 1
eliotball 2 years ago
fantastic
ronny22 2 years ago
what is the modulo doing in exp3?
mademedoit 2 years ago