Sad that I am studying in Italy, this university in america costs 30.000 dollars per year, but if I see the difference is not that MIT is harder thatn other universisties.The difference is that they explain well the same things that are explained with other universisties.
In my university all professors are messy, it totally sucks.The problem is not the difficulty of the problems itself, but understanding what the hell professors are doing.From this lesson I have understood everything,it's clear
Extremely clear, articulate and concise; I prefer this learning style and teaching methodology. Enhances one's understanding and further minimizes complications in learning the subject matter. Dr. Ricky L. Johansen, Jr., Ph.D.
@SuperKittyPancake Work hard; it can happen. I was accepted to MIT even though my family is forced to live on government assistance and my father is disabled. Due to a perennial hospitalization, I am not currently attending, but I was accepted and had a full scholarship. Don't give up the dream man.
good thing about the internet: I can pause this lesson, go learn (re-learn) statistics and come back exactly where i left off. see you all in a few weeks
@TheTharinduTube Yes O(n^2) is more efficient than O(n^3). Quadratic time is closer to constant time than cubic time. With big O being the upper bound time and Ω (Omega) being the lower bound. Quadratic time isn't bad but logarithmic is better.
Sorry but the guy is not a good teacher. in 35 minutes or so talking about sorting numbers he starts at the 2nd number? but doesnt use his algorithm! he just looks at them and sorts them reading his paper, not teaching about the algorithm, DUH
how is that using the key? he mentions nothing about how the sort takes place, a 1st grader could sort the numbers. he seems to be very smart but is not good at teaching
looks hopeful, but 4 minutes into the lecture and the "uhhh"s and "umm"s are SO ANNOYING, why doesnt someone tell him how annoying the uhhhs and ummms are?
Yes, I like to watch this kind of videos. So far the ones i've seen are mathematics lectures (I'll be graduating today (receiving my math B Sc) but I also enjoy watching computer science lectures.
@tattoconga i've always been interested in finding out why people study math i like math just as a hobby m 15 and do intergel calculus for fun but i dont see what future reference mathematics will give me so i was hoping you can tell me why you chose a degree in math instead of physics or biology or even computer science.
@fashanu1000 Arthur Benjamin gives a useful answer to your question by going over the ABCs of math: A for applications, e.g. math is crucial and foundational for the fields you listed (less so biology but in certain sub-fields dramatically so), B for beauty, e.g. deriving Euler's identity or Euclid's proof of root-2's irrationality, and C for certainty.
@iiiaxel Before the inner loop, you can see the statement 'i-j-1' and then in the inner while loop you see that it doesn't halt until i<=0. It means the the while loop (in the worst case) will be runing j times since it depends on i and i goes from j-1 to 0. Inside the while loop there's only a constant number of operations, which means the running time of the whole while loop will depend linearly on j i.e will grow proportionally to j. continue in next coment
@iiiaxel since we're working with asymptotic notation, you can drop the constants and just notice that it grows proportionally to j i.e you have theta(j). I hope this was of any help. I understand it but i find it hard to explain stuff, especially because english is not my mother language (btw Im not from india as most viewers XD, my country is crazy light green)
@tattoconga Yes it does :) Thanks for that, Your english is great :) I used to lived in a country that covers with green too, btw are you doing/following similar course as this one?
@sim2k Well, watch from 00:27 again. He talks about that it's an SMA course (Singapore MIT Alliance course). So, I'm not surprised at the idea that a big fraction of the views are from India.
"fortunately you all have a strong probability background...so if you don't, maybe it's time to say 'gee maybe i should take that probability class that's a PREREQUISITE for this class'" lol harshhh
His explanation on insertion sort was bad. He forgot to mention that it must compare itself to the previous number. It doesn't just "move" there magically.
Interesting to see how a lesson is going on the MIT. Basically I would say I like it except it takes a bit more math than really need for an introduction to algorithms. Evens so, unfortunately it is not even mentioned at 1:00:35 that Theta is an additive function. Which is very important property, without that SUM(j=2;n)Theta(j)=Theta(n^2) could not stand.
The teacher calculated the height of tree as log(n) but if there is only one element in array to be sorted that is n=1 then log(n) =log(1)=0 which means that the height of tree is zero which is not true as n=1 so it should be log(n)+1 for calculating height of tree.
If there's only one element in the array to be sorted, then it returns n because the element is already sorted. Besides that, the height of a node (in this situation the root) it's the longest downward path to a leaf from that node, therefore if you have a tree with only one node, which is the root and at the same time it is a leaf, then the height of the tree is 0, which is log(1).
I like this theacher a lot so much fun to his lesson!I am not in MIT so one the students there please confirm. The metaphor of Performance ~ Money so to have other features was brilliant!
He is one of the authors of the book that suggested.A classic one
@AMDNiels Yeah, the answer to T(n) = T(n-1) + 1 is c+n-1 or n, and secondly, while you can look at a loop as recursive (just as a Sum is recursive), it's easier not to do so. If you wanted to do it that way, you'd have to account for the second inner loop as well. However, this would be much more complicated, so recursive is only used when a function is calling itself, not a loop iteration.
In Sweden it´s free to studie .. no I was wrong .. you get like 2800 monthly.. to just studie... sooo.. hahaha love and hate this country. That teatcher is nerves like a mother fu*ker.
This was awesome. I study Computer Science in Italy and this was very helpful, I really appreciate you putting this on the web, this embodies the idea of free culture that I hope everyone will one day agree about.
Another solution for the worst case analysis of insertion sort: Recursive equation for T(n) = T(n-1) + 1. This gives the closed form of n * (n+1)/2 + 1, so this means 1/2*n^2 + 1/2*n +1, so in Theta notation: Theta(n^2).
@cchampio ... it's clear you maybe don't know what the term recursive means but, iterative algorithms can be written as recursive algorithms... All you do is change the iterator into recursive branching that has a growth related to the count of iterations. The growth is polynomial (for this case) but, the problem can be written in more than one way.
@AMDNiels your recurence is wrong too. it's theta(n). I tried to post the solution but youtube keeps giving me error and won't let me post it. something it dont' like about the text.
its easy for one to get lost on how the elements are being sorted for mergesort. its important to understand how mergesort divides the workspace and sorts each half and finally merges it. once this is done, one will always know why mergesort is O(nlgn)
this is a great intro. but as a student, I think the insertion and mergesort implementation details have been scrificed. even tho its just a few lines of code, the mergesort implementation is a beast. for an array of 10 elements, the number of stacks and variable versions generated by the recursive calls is quite large.
this is a great intro. but as a student, I think the implementation details for the ins and mergesort algos were sacrificed. even though its just a few lines of code, the mergesort implementation is beast. for sorting 10 elements the number of stacks and variable versions generated by the recursive calls is quiet large.
anyone know any real Intro to Algo's videos? I have to learn a little about a few programming languages and write some basic algos and simple programs. I have only done web programming with a little Php so I understand the basic idea but this was too complex for me.
go for C/C++ then, this is best and easiest to implement algorithms, infact now a days, algorithms are more written in C/C++ fashion. php is almost similar to C/C++...
Why does MIT always have these LOOOONG introductions where they explain homework and stuff... Just give them a fucking handout for fucks sake, who's gonna remember the intro when told verbally anyway....
It's just as bad at my uni! They spend more time telling you about the structure of the course and what you're going to learn than actually teaching you the stuff!! Then when it comes to teaching you the stuff they blabber on with little or no visual aids!
wait!! i mean h=logarithm in base 2 of n that mean lg n/lg 2 or ln n / ln 2 but thats the idea of asymtotic it's not important for you what's the base if you had a tree with 3 children for each node execpt the leaves on the last level it will be log in base 3 of n but the complexity is log n like it was in the example for 2 children so infinity
= log(1,n)>log(2,n)=log(3,n)=...>log(n,n)=1 not nice i know but this is the idea
so to conclude, (just to be sure i understood it well)
h equals to (log n) / (log 2) , but since n equals infinity in our performance calculations - that has no effect in comparing growth because log 2 is a const. ?
@miketwo345 Lester C. Thorow, Dean, Sloan School of Mgmt., MIT -- is a member of the Trilateral Commission and knows 33rd degree secret is the 1899 Alaska Earthquake - British Association record No. 333, at Shide. Isle of Wight on September 3 at three o' three.
This comment has received too many negative votesshow
Well i think i know where my hard earned tax dollars are going. Um and Ahhh is his perequisit for the course! This reminds me of an orientation i once attended. It was long and boring as well. They will never post an actual intelligent training video, one in which you can actually learn from.
taking the this exact course at my university. This helps a lot for getting ahead and reviewing.
k24bfan 1 day ago
Just a dream, from Vietnam.
ndduy1995 1 day ago
Sad that I am studying in Italy, this university in america costs 30.000 dollars per year, but if I see the difference is not that MIT is harder thatn other universisties.The difference is that they explain well the same things that are explained with other universisties.
In my university all professors are messy, it totally sucks.The problem is not the difficulty of the problems itself, but understanding what the hell professors are doing.From this lesson I have understood everything,it's clear
SpitTanker 1 week ago
OKAY! :|
spellnisharwaseque 1 week ago
just kidding. I meant the explanation of why people like stuff better than performance...
maidwithluv 2 weeks ago
omg its worse than precalculus...
maidwithluv 2 weeks ago
i dont have prerequisites but i can get it hahaha
ollobrains1 1 month ago
Yummmmy!
meditating010 1 month ago
This is so much more interesting then frech
iemandmetgeenhoofd 1 month ago
so is ja lustig
NanceyAnissaxe668 1 month ago
Extremely clear, articulate and concise; I prefer this learning style and teaching methodology. Enhances one's understanding and further minimizes complications in learning the subject matter. Dr. Ricky L. Johansen, Jr., Ph.D.
bigrickjr57 2 months ago in playlist More videos from MIT
Doesanyone actually use this in their job
thecomanche1 2 months ago
@thecomanche1 He mentioned how frequently this is used in programming. It's an optimization thing.
keez1994 2 weeks ago
this lecture is very easy to interpret..nothing special
FightTheSystem1492 2 months ago
This has been flagged as spam show
IMIT videos also good for improove listening-cos of interactive transcript-thanks MIT ))
curiouselvin 3 months ago
Comment removed
curiouselvin 3 months ago
Comment removed
curiouselvin 3 months ago
I just wish to get into MIT.
Boys can dream can they?
SuperKittyPancake 3 months ago
@SuperKittyPancake Work hard; it can happen. I was accepted to MIT even though my family is forced to live on government assistance and my father is disabled. Due to a perennial hospitalization, I am not currently attending, but I was accepted and had a full scholarship. Don't give up the dream man.
TheDawigginton 2 months ago 3
@TheDawigginton if you can make it into MIT with a scholarship you can probably do good regardless!
webDes33 2 months ago
Comment removed
SteveSparx 2 months ago
This has been flagged as spam show
good thing about the internet: I can pause this lesson, go learn (re-learn) statistics and come back exactly where i left off. see you all in a few weeks
usergroupX 3 months ago
Comment removed
usergroupX 3 months ago
My god these students are dull!
MrChimei 4 months ago
Lecture Summary - Insertion sort is n^2 time(quadratic), while Recursive Merge sort is nlog(n) (log time - MUCH faster).
alb12345672 4 months ago
What are the prerequested courses?
massinamas 5 months ago
@massinamas discrete math and a basic intro into programing course.
gomunkul 4 months ago
This has been flagged as spam show
why singapore chinese are smarter than American generally!
excsa62 5 months ago
Comment removed
ThePlatitudeMan 5 months ago
he actually wrote a single-line comment on the whiteboard, brilliant :P
CasperBHansen 5 months ago
what was so funny at 28:20 ??
digital111x 6 months ago 2
@digital111x I'm wondering the same thing. Must've been something that happened off camera
BrainRotMenacer 1 month ago
Ahhh I got it ... it's the stereotype "beats" which fooled me.....
TheTharinduTube 7 months ago
@hrseif but here the comparison is between O(n^2) and O(n^3 ) .... :(
please make that clear for me..........
TheTharinduTube 7 months ago
This has been flagged as spam show
it's correct .
O(n^2) makes smaller running time than O(n^3), so it's better,actually faster
hrseif 7 months ago
damn... didnt take the probability class...
Omegaroth 7 months ago
This has been flagged as spam show
at 53.45, he says that as n gets bigger, O(n^2) algo always beats a O(n^3).Is this the correct thing or the other way round ???
TheTharinduTube 7 months ago
at 53.45, he says thatas n gets bigger, O(n^2) algo always beats a O(n^3).Is this the correct thing or the other way round ???
TheTharinduTube 7 months ago
it's correct .
O(n^2) makes smaller running time than O(n^2), so it's better
hrseif 7 months ago
@TheTharinduTube Yes O(n^2) is more efficient than O(n^3). Quadratic time is closer to constant time than cubic time. With big O being the upper bound time and Ω (Omega) being the lower bound. Quadratic time isn't bad but logarithmic is better.
johnthegr8 7 months ago
should a person wishing to learn computer programming learn about algorithms BEFORE or AFTER actual computer programming?
MichaelisOnYourtube 7 months ago
@MichaelisOnYourtube You won't be able to grasp the concept of algorithms until you are fluent in programming.
VerbalMechanics 4 months ago
Sorry but the guy is not a good teacher. in 35 minutes or so talking about sorting numbers he starts at the 2nd number? but doesnt use his algorithm! he just looks at them and sorts them reading his paper, not teaching about the algorithm, DUH
how is that using the key? he mentions nothing about how the sort takes place, a 1st grader could sort the numbers. he seems to be very smart but is not good at teaching
iBradleyAllen 7 months ago
looks hopeful, but 4 minutes into the lecture and the "uhhh"s and "umm"s are SO ANNOYING, why doesnt someone tell him how annoying the uhhhs and ummms are?
iBradleyAllen 7 months ago
You know guys, it's perfectly acceptable to edit.
I half expect to see a 20 minute fire drill in the middle of a lesson.
TheBilly 8 months ago
This has been flagged as spam show
I get this is great video.
flowewritharoma 8 months ago
Can I get it HD ?
85Damix 8 months ago
@85Damix No. 240p MPEG-4 is the best available for download on their site.
TheBilly 8 months ago
i wish all, or at least my uni would tape our lectures
shebotnov 8 months ago
wow this course is actually available for free here? nice..
elcanful 9 months ago
Thank you!
aperezNWO 9 months ago
Comment removed
numericx 10 months ago
what math background was he refrerriing to is it specifically discrete mathematics? or is there more involved?
ooMatttyooo 10 months ago
58:02 LOL looking at it from 30,000ft compared to 3mm, lol we gonna be up on planes?!? J/k
deonteCsewell1445 10 months ago
interesting stuff
fashanu1000 10 months ago
Mergesort @1:03
Gr33nAv3ng3r 10 months ago
34:13
fuentes83 10 months ago
Please, help me!! What does 'SMA course' mean? I know maths but I am Russian and so I am hesitating with translation. thank you so much in advance!
Shursharochka 11 months ago
@Shursharochka Singapore-MIT Alliance (SMA)
MrFloce 11 months ago
@MrFloce Thank you!! :) You are soo nice!! :)
Shursharochka 11 months ago
@Shursharochka You are welcome :) Good luck!!!
Shursharochka 10 months ago
17:00 for the actual leason
CSryoh 11 months ago 144
@CSryoh Thanks man.
sas1ni69 9 months ago
@CSryoh thank you!
Karmakameleeon 6 months ago
@CSryoh thanks
epicnidhogg 6 months ago
Yes, I like to watch this kind of videos. So far the ones i've seen are mathematics lectures (I'll be graduating today (receiving my math B Sc) but I also enjoy watching computer science lectures.
tattoconga 11 months ago
@tattoconga i've always been interested in finding out why people study math i like math just as a hobby m 15 and do intergel calculus for fun but i dont see what future reference mathematics will give me so i was hoping you can tell me why you chose a degree in math instead of physics or biology or even computer science.
fashanu1000 10 months ago
@fashanu1000 Arthur Benjamin gives a useful answer to your question by going over the ABCs of math: A for applications, e.g. math is crucial and foundational for the fields you listed (less so biology but in certain sub-fields dramatically so), B for beauty, e.g. deriving Euler's identity or Euclid's proof of root-2's irrationality, and C for certainty.
eatme690808 10 months ago
Hey does anyone know how did he get theta (j) to define the worst case asymotic analysis formulation of insertion sort, I'm lost on that part...
iiiaxel 11 months ago
@iiiaxel Before the inner loop, you can see the statement 'i-j-1' and then in the inner while loop you see that it doesn't halt until i<=0. It means the the while loop (in the worst case) will be runing j times since it depends on i and i goes from j-1 to 0. Inside the while loop there's only a constant number of operations, which means the running time of the whole while loop will depend linearly on j i.e will grow proportionally to j. continue in next coment
tattoconga 11 months ago
Comment removed
tattoconga 11 months ago
@iiiaxel since we're working with asymptotic notation, you can drop the constants and just notice that it grows proportionally to j i.e you have theta(j). I hope this was of any help. I understand it but i find it hard to explain stuff, especially because english is not my mother language (btw Im not from india as most viewers XD, my country is crazy light green)
tattoconga 11 months ago
@tattoconga Yes it does :) Thanks for that, Your english is great :) I used to lived in a country that covers with green too, btw are you doing/following similar course as this one?
iiiaxel 11 months ago
Comment removed
iiiaxel 11 months ago
Comment removed
iiiaxel 11 months ago
capooooooooooooo!! veni a la fing! :P
kurco19 1 year ago
hm, ok?
Qualia 1 year ago
that is leiserson, he is one of the authors of the bible of algorithms... amazing book
chinbnm 1 year ago
wow, have a look on the map, the most of the 186k viewers are from india :O
sim2k 1 year ago 36
@sim2k LOL.The India map is dark green like crazy.
bahramg82 1 year ago
Comment removed
ubaidarshad 2 months ago
@sim2k Well, watch from 00:27 again. He talks about that it's an SMA course (Singapore MIT Alliance course). So, I'm not surprised at the idea that a big fraction of the views are from India.
Ghaiyst 3 weeks ago
@Ghaiyst what does Singapore gotta do with India?
jasonofthel33t 3 weeks ago
just do it
kkkk888896 1 year ago
humm, 240p
it was a challenge, but i got through it :)
Brucy6666 1 year ago
thanks for the vid useful
pthanhkim 1 year ago
the older guy is better, the hippy guy is to fast and analytical
shooterman13 1 year ago
Liked it. I'm from the UK...where is MIT? The lecturer was great but I found myself counting how many times he said "ok". Ok.
magnet101 1 year ago
@magnet101 Cambridge, Massachusetts, United States (MIT stands for Massachusetts Institute of Technology)
systemnate 1 year ago
@systemnate Thanks for that! :)
magnet101 1 year ago
Liked it. I'm from the UK...where is MIT? The lecturer was great but I found myself counting how many times he saod "ok". Ok.
magnet101 1 year ago
12 people aren't sorting their bits correctly.
leokelly3 1 year ago
"fortunately you all have a strong probability background...so if you don't, maybe it's time to say 'gee maybe i should take that probability class that's a PREREQUISITE for this class'" lol harshhh
bballr09 1 year ago
This is amazing
protegy100 1 year ago
Why is performance important... hardware isn't out-pacing programmer incompetence, whoo flash games going slower than Crysis.
HWGuyEG 1 year ago
far better instructor than my algo lecturer back at my university. his explanation makes sense and was easy to follow.
keithyw 1 year ago
His explanation on insertion sort was bad. He forgot to mention that it must compare itself to the previous number. It doesn't just "move" there magically.
sisudo21 1 year ago
Ahora estaba estudiando algoritmos, por mi cuenta, wow !!! solo eso puedo decir
darkyto 1 year ago
not explicit
ratatulsuprem1 1 year ago
Hi is this undergraduate or graduate course ? thanx !
so2murad 1 year ago
@hypoxide you just had to mention that and ruin it for everyone lols =P
ike353 1 year ago
I never considered how distracting ending every sentence with "k" could be.
hypoxide 1 year ago
ok ok ok
manconoo 1 year ago 2
Interesting to see how a lesson is going on the MIT. Basically I would say I like it except it takes a bit more math than really need for an introduction to algorithms. Evens so, unfortunately it is not even mentioned at 1:00:35 that Theta is an additive function. Which is very important property, without that SUM(j=2;n)Theta(j)=Theta(n^2) could not stand.
csjpeter 1 year ago
eric = hippy
BlueWaffleMan9000 1 year ago
I'm not pretty much into maths and informatics but this was quite understandable and interesting. thank you.
Octobre1986 1 year ago
The teacher calculated the height of tree as log(n) but if there is only one element in array to be sorted that is n=1 then log(n) =log(1)=0 which means that the height of tree is zero which is not true as n=1 so it should be log(n)+1 for calculating height of tree.
ThePakistaniMuslim 1 year ago
@ThePakistaniMuslim
If there's only one element in the array to be sorted, then it returns n because the element is already sorted. Besides that, the height of a node (in this situation the root) it's the longest downward path to a leaf from that node, therefore if you have a tree with only one node, which is the root and at the same time it is a leaf, then the height of the tree is 0, which is log(1).
hassamu 1 year ago 2
@hassamu Yes i've mistaken. Hieght of tree will be zero. But total levels of tree should be log(n)+1 because at n=1 there exist atlest one level.
ThePakistaniMuslim 1 year ago
I like this theacher a lot so much fun to his lesson!I am not in MIT so one the students there please confirm. The metaphor of Performance ~ Money so to have other features was brilliant!
He is one of the authors of the book that suggested.A classic one
mpatso8klotsia 1 year ago
awsumm i want for admission in MIT. . .
sim0332 1 year ago
HAH..@ ~36:00
"Lets take a look at running time"
*looks at watch*
syntaxerorr 1 year ago
This has been flagged as spam show
@AMDNiels Yeah, the answer to T(n) = T(n-1) + 1 is c+n-1 or n, and secondly, while you can look at a loop as recursive (just as a Sum is recursive), it's easier not to do so. If you wanted to do it that way, you'd have to account for the second inner loop as well. However, this would be much more complicated, so recursive is only used when a function is calling itself, not a loop iteration.
AlphaNorcalli 1 year ago
wish I found these before I finished my masters or during my bachelors.
sreekanthbhagavatula 1 year ago
Damn!, should've went to MIT when I had the chance!, Freaking Harvard, worst choice ever!!, Fuckking professors self-study excuses...
bone009 1 year ago
@bone009
have mercy on U
nbjsw 1 year ago
its very help full and worth while...
TheRahulon 1 year ago
In Sweden it´s free to studie .. no I was wrong .. you get like 2800 monthly.. to just studie... sooo.. hahaha love and hate this country. That teatcher is nerves like a mother fu*ker.
kelbiiiz 1 year ago
This was awesome. I study Computer Science in Italy and this was very helpful, I really appreciate you putting this on the web, this embodies the idea of free culture that I hope everyone will one day agree about.
fiffo 1 year ago
Comment removed
gniemeyer 1 year ago
Can someone tell me if this is correct:
Another solution for the worst case analysis of insertion sort: Recursive equation for T(n) = T(n-1) + 1. This gives the closed form of n * (n+1)/2 + 1, so this means 1/2*n^2 + 1/2*n +1, so in Theta notation: Theta(n^2).
AMDNiels 1 year ago
@AMDNiels Insertion sort is not recursive, so it has no recurence relation.
cchampio 1 year ago
@cchampio I'm talking about the relation of how many times it has to
call up a value, thats 0 times for 0 items, its 0 times for 1 item, its 1 time
for 2 items, its 1 + 2 times for 3 items, its 1+2+3 times for 4 items, etc..
Seems like recurrence to me.
AMDNiels 1 year ago
@cchampio ... it's clear you maybe don't know what the term recursive means but, iterative algorithms can be written as recursive algorithms... All you do is change the iterator into recursive branching that has a growth related to the count of iterations. The growth is polynomial (for this case) but, the problem can be written in more than one way.
Entertainmentwf 1 year ago
@AMDNiels your recurence is wrong too. it's theta(n). I tried to post the solution but youtube keeps giving me error and won't let me post it. something it dont' like about the text.
cchampio 1 year ago
i'd like to know the rationale why in asymptotic notation we can drop the lower terms (that's harsh!) and ignore leading constants (rude!)
otherwise i claim this lecture is bogus....i mean... this guy calling the student who gets the best grade in his lecture cheating!
kingbrocklesnar 1 year ago
a third world country Singapore (a tiny island) is teaching America about maths?
samgee2007 1 year ago
@samgee2007
Singapore = third world country, I guess not, ever heard of the HDI of Singapore?
marturz 1 year ago
It is very nice that MIT runs the OpenCourseWare Programm
Other Universities should look forward to copy that type of enabling free education for everyone ! I'm definitely supporting this..
DonEddy89 1 year ago 3
I love class on the web. You never get called on.
ProjectJava 1 year ago 53
its easy for one to get lost on how the elements are being sorted for mergesort. its important to understand how mergesort divides the workspace and sorts each half and finally merges it. once this is done, one will always know why mergesort is O(nlgn)
a4avaiz 1 year ago 3
this is a great intro. but as a student, I think the insertion and mergesort implementation details have been scrificed. even tho its just a few lines of code, the mergesort implementation is a beast. for an array of 10 elements, the number of stacks and variable versions generated by the recursive calls is quite large.
a4avaiz 1 year ago
this is a great intro. but as a student, I think the implementation details for the ins and mergesort algos were sacrificed. even though its just a few lines of code, the mergesort implementation is beast. for sorting 10 elements the number of stacks and variable versions generated by the recursive calls is quiet large.
a4avaiz 1 year ago
Great lecture, algos start at 28th minute
GuruOfComedy 1 year ago
ok hahhaha i passed the course by saying ok -ok -ok -ok ... irritating heheh
AJSwisgirl 1 year ago
Your teachers still writing to blackboard speeches that would speaking. And your lessons are so simple even at mit.
predatora 1 year ago
This class is rad!
mobbindag 1 year ago
do you know of a good book that a can consult while i attend this lectures?
interted 1 year ago
"Introduction to algorithms"
Thomas H. Cormen
Charles E. Leirson
1tahirrauf 1 year ago 10
@1tahirrauf thx
interted 1 year ago
@interted yes there is a book called "introduction to algorithms" ebook, google it
Waranle 1 year ago
This has been flagged as spam show
1-Copy and Paste this message to 8 other videos
2-Go to your channel and look at you background.
It might freak you out
orangeunicorn2009 1 year ago
Cool!!
hades1088 2 years ago
WOW, zot intresant en al...
MrDrixos 2 years ago
This comment has received too many negative votes show
this is quite 9th grade stuff at the best high school in Bucharest , Romania
unknownliviu 2 years ago
Comment removed
AJSwisgirl 2 years ago
@AJSwisgirl
hiss orospu bak bu sarki sana geliyor. kafani kirarim kopek. benim favorilerimde var bak cok sevecen.
jarjar2b 2 years ago
Comment removed
AJSwisgirl 2 years ago
anyone know any real Intro to Algo's videos? I have to learn a little about a few programming languages and write some basic algos and simple programs. I have only done web programming with a little Php so I understand the basic idea but this was too complex for me.
philabyebye 2 years ago
go for C/C++ then, this is best and easiest to implement algorithms, infact now a days, algorithms are more written in C/C++ fashion. php is almost similar to C/C++...
zobayer1 2 years ago
m'kayyy
sutton513 2 years ago 5
This guys says OK way to much. But the class seems pretty good.
WolfmansBrother321 2 years ago
This comment has received too many negative votes show
this is re-donk-uls!
GreenWave68 2 years ago
This has been flagged as spam show
Why does MIT always have these LOOOONG introductions where they explain homework and stuff... Just give them a fucking handout for fucks sake, who's gonna remember the intro when told verbally anyway....
Alkoholtest 2 years ago
It's just as bad at my uni! They spend more time telling you about the structure of the course and what you're going to learn than actually teaching you the stuff!! Then when it comes to teaching you the stuff they blabber on with little or no visual aids!
Astrosisphere 2 years ago
I have a feel for what you're saying.
Good comment.
BlakeVII 2 years ago
This comment has received too many negative votes show
I have a question regarding the lesson-
Why did the lecturer wrote "log n" (1:15:45) ?
As much as i understand it should have been (log n)/(log 2),
because the tree is divided each time by 2 and natural log could work only if the tree was divided by 10 each time.
123adideutsch 2 years ago
because if the last level will be complete and the number of leaves will be n it will be 2^h just look at the tree for level 1(h=0) n=2^0=1,
for level 2(h=1) n=2^1=2, for level 3 n=2^2=4,for level 4 n=2^3=8
FlagstoneFiend 2 years ago 2
but that is exactly what i say:
you say that n equals 2^h.
according to that h should be (log n)/(log2).
123adideutsch 2 years ago
wait!! i mean h=logarithm in base 2 of n that mean lg n/lg 2 or ln n / ln 2 but thats the idea of asymtotic it's not important for you what's the base if you had a tree with 3 children for each node execpt the leaves on the last level it will be log in base 3 of n but the complexity is log n like it was in the example for 2 children so infinity
= log(1,n)>log(2,n)=log(3,n)=...>log(n,n)=1 not nice i know but this is the idea
FlagstoneFiend 2 years ago
so to conclude, (just to be sure i understood it well)
h equals to (log n) / (log 2) , but since n equals infinity in our performance calculations - that has no effect in comparing growth because log 2 is a const. ?
123adideutsch 2 years ago
yes. that's the idea
FlagstoneFiend 2 years ago
Comment removed
DarkTrunksGeorgeSim 2 years ago
why do they have to write too much on the blackboard...serously that's why we have books.
DarkTrunksGeorgeSim 2 years ago
Thank you for making this available!
Aiden057 2 years ago 8
FYI: The Lecture starts at 17:10
miketwo345 2 years ago 214
thanks
lani0 2 years ago
@miketwo345 Lester C. Thorow, Dean, Sloan School of Mgmt., MIT -- is a member of the Trilateral Commission and knows 33rd degree secret is the 1899 Alaska Earthquake - British Association record No. 333, at Shide. Isle of Wight on September 3 at three o' three.
insightllc 1 year ago
@miketwo345 Thank you.
Vindex27 1 year ago
@miketwo345 Haha thx m8 i noticed your comment at about 2 mins in, you saved me 15 mins :) thumbs up :P
colmoneill83 1 year ago
@miketwo345 thanks :)
I got 6:00 in and thought... wait a sec, im not attending the course, when does the lecture start :P
Brucy6666 1 year ago
What were they laughing at at 0:28:21?
sharperguy 2 years ago 2
He shook his head, so I'm thinking a student was goofing off behind him or something.
GoukiTehPwner 2 years ago
This comment has received too many negative votes show
i did the first algorithm when i was 17 at school at Greece ,i thought MIT things would be harder
tsatsa12 2 years ago
So you want them to start right away by explaining NP-completeness??
This is an introductory course.
LearningAutomata 2 years ago 10
This guy doesn't seem too friendly...
mpleportals 2 years ago 11
This comment has received too many negative votes show
Well i think i know where my hard earned tax dollars are going. Um and Ahhh is his perequisit for the course! This reminds me of an orientation i once attended. It was long and boring as well. They will never post an actual intelligent training video, one in which you can actually learn from.
John4660 2 years ago
wow cant believe I'm not paying to see this O.O
dwgila 2 years ago 110
every "AAAAHM" before each sentence is really annoying... but I like the whole idea of spreading lessons on the web.
Hurze 2 years ago 8
So jealous of the 80 min video upload!!!!