Тёмный

Recitation 1: Asymptotic Complexity, Peak Finding 

MIT OpenCourseWare
Подписаться 5 млн
Просмотров 178 тыс.
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 152   
@GoogleUser-ee8ro
@GoogleUser-ee8ro 5 лет назад
I just love those recitation sessions (not just for this course, almost all EECS courses have them). They fill in more concrete examples and/or mathematical details to the original lecture. Well done MIT.
@arketos
@arketos Год назад
i can't agree more. Sometimes I can't learn in the lectures but i can always learn in the recitations. Because it's gives you solid interaction, not observation
@insightful2074
@insightful2074 3 года назад
I swear, he is the coolest TA I've ever seen in my life!
@TheRealSaintNickNorthside
@TheRealSaintNickNorthside 4 года назад
Crazy to think that I was flipping pizzas at Little Caesars and taking college algebra in fall 2011, and here I am learning about algorithm complexity 9 years later when this was recorded way back then. Life takes us on a weird journey.
@6lack5ushi
@6lack5ushi 3 года назад
bruh idk what I was doing in 2021 but definitely not enjoying a video on asymptotic complexity at 4am on a Sunday morning.... wonder where we end up.
@ba2tripleO
@ba2tripleO 3 года назад
Why were you flipping a pizza dude?
@sibsaurabh
@sibsaurabh 4 года назад
This recitation class is very helpful and is a necessary supplement to lecture for in-depth understanding. Thanks Victor
@dve845
@dve845 5 лет назад
@25:00 A much simpler solution is the fact that (n n/2) is picking half the elements out of N elements ... so 2^N must be an upper bound to that, hence O(log(2^n)) = O(nlog(2)) = O(n)
@artificiyal
@artificiyal Год назад
How? Can you explain a bit more?
@楊洵-y1e
@楊洵-y1e 4 месяца назад
When it comes to (n n-2), 2^N is an upper bound for sure, but there is a tighter upper bound. I don't think this way is great enough in all (n i) case.
@waynechang1206
@waynechang1206 2 года назад
thank you MIT for sharing all sessions for free. Learned a lot from it.
@bkboggy
@bkboggy 8 лет назад
Great TA. Thanks for the presentation.
@MajedDalain
@MajedDalain 4 года назад
so good, It helped to understand the omega, theta and O. thank u so much
@crypticamalgam9695
@crypticamalgam9695 9 лет назад
These MIT videos are great, but I hate it when someone in class asks or answers a question and it's inaudible in the closed caption
@gauravmufc1
@gauravmufc1 3 года назад
The TA in mit is much more educated and versed in the subject than the head of department in my college.
@blo0mfilter868
@blo0mfilter868 2 года назад
same bro
@benwade647
@benwade647 Год назад
Same😓
@dylancutler1978
@dylancutler1978 6 лет назад
Victor is a good educator
@RUIKAISU-z7y
@RUIKAISU-z7y Год назад
super helpful recitation. It solve me many confusions from the class
@scottzeta3067
@scottzeta3067 3 года назад
When he is asking everyone whether following I really want to anwser I am. This lesson really has magic can let me keep attention on it, compare with my university.
@free-palestine000
@free-palestine000 3 года назад
victor is OUR ta now
@justinbieber9656
@justinbieber9656 5 лет назад
Istg he is pretty good for a TA. Grab a tub of popcorn and it is pretty fun to watch over weekends. :')
@roylee3196
@roylee3196 9 лет назад
is there a channel for us to improve the subtitles? I've noticed a couple of mistakes, for example at 39:32 , its supposed be T(n/2^i) instead of T(n/2^n).
@mitocw
@mitocw 9 лет назад
+Roy lee You can send an email with subtitle correction(s) via the Contact Us form at ocw.mit.edu/jsp/feedback.jsp?Referer=. Depending on how much you want to do, the subtitle files (.srt) are available on our site at ocw.mit.edu/6-006F11. We welcome corrections to them. :)
@BroscoWankston
@BroscoWankston 6 лет назад
Good explanations from the future phd
@veramentegina
@veramentegina 4 года назад
thank you MIT!! excellence in everything!
@edward7282
@edward7282 Год назад
this guy explains better than my professors at uni, wow
@samratroy1234
@samratroy1234 11 лет назад
"No answer means yes..." reminds me of my profs ...
@veipuniilana1842
@veipuniilana1842 3 года назад
I will take that as Yes
@DivinityStripes
@DivinityStripes 10 лет назад
At the end did they say the algorithm using the variation would be faster? I swear it would be incorrect and wouldn't be able to return a peak.
@erichlf
@erichlf 6 лет назад
DivinityStripes he said that we would look at complexity forest because of it isn't faster then who cares if it works or not. If out works then we will check if it is correct.
@stevenzhao6647
@stevenzhao6647 6 лет назад
Yeah, I agree - the algorithm will not guarantee that the result would be a 2D peak. The TA should have clarified that it is efficient but incorrect.
@manaspeshwe8297
@manaspeshwe8297 5 лет назад
He says good question in a sarcastic way LOL.
@nalinitamilmani
@nalinitamilmani Год назад
Excellent....Awesome...You really explained well...Kudos to you guy.
@yassergaber6428
@yassergaber6428 4 года назад
Session Notes: ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-fall-2011/recitation-videos/MIT6_006F11_rec01.pdf
@garychan4845
@garychan4845 6 лет назад
at 53:30, TA said M in the original equation will be replaced by lg(m) if 1-D peak is used instead. But I think not only that M is changed, the M in the recurrence (i.e. the M in T(N/2,M)) and the base case are also changed to lg(M) as well. Am I correct?
@spacesuitred3839
@spacesuitred3839 6 лет назад
victor THE CHALKBREAKER :) 7:35 30:41
@ShubhamSinghYoutube
@ShubhamSinghYoutube 3 года назад
His name was Victor sin, but he changed it to costan.
@markwilliamsphl
@markwilliamsphl 3 года назад
How many hours does MIT EECS meet their students in these recitation sessions per week? Is it always 1 hour lecture, 1 hour recitation? Do they have a lab session in this class?
@mitocw
@mitocw 3 года назад
Lectures: 2 sessions / week, 1 hour / session Recitations: 2 sessions / week, 1 hour / session See ocw.mit.edu/6-006F11 for more info. Best wishes on your studies!
@lilyyeh8607
@lilyyeh8607 9 месяцев назад
thank you
@gauravdjgm
@gauravdjgm 4 года назад
I am surprised that the person who transcribed this lecture could not make out that Victor is saying Srini, who happens to be the course professor, but instead transcribes as [INAUDIBLE].
@mitocw
@mitocw 4 года назад
These captions were generated by a third party. They did not know who the instructor was, when they did these.
@gauravdjgm
@gauravdjgm 4 года назад
@@mitocw Oh
@susguy4469
@susguy4469 8 лет назад
Can the Big Theta of a function have the same upper bound and lower bound(same constant factor)? For example: the function n^2 = Big-Theta(n^2) could mean n^2
@ramiyer6810
@ramiyer6810 6 лет назад
I guess you could but that wont be useful because it represents a very specific case of g(n) = theta(g(n)). This is true but whats the point of the asymptotic notation if it is not making your life simpler.
@funyunonion37732
@funyunonion37732 2 года назад
This dude is hilarious, I would be dieing in this class
@vedchoudhary9519
@vedchoudhary9519 3 года назад
31:15 How did it become Theta(n) ? Yeah, it has an upper bound of order n, O(n), but what about lower bound?🤷🏻‍♂️
@xiaoweidu4667
@xiaoweidu4667 3 года назад
very good quality recitation !
@boluaygepong5920
@boluaygepong5920 4 года назад
@26:40 "Factorials grow exponentially". Hmmm, I wonder what the answer is?
@brngylni
@brngylni 3 года назад
This is really perfect.
@malharjadhav8404
@malharjadhav8404 3 года назад
@2:29 6006 was intentional
@punstress
@punstress 10 лет назад
Is the algorithm being applied correctly, or described correctly, or am I not getting it? Start in middle, look at neighbors, if local peak halt, else recurse T(n/2), is what he wrote. Recurse T(n/2) means to me, start in the middle of one of the halves, and I guess it doesn't matter which one, and check its neighbors, if local peak halt, else recurse by starting in the middle, n/4. What I'm seeing him do follows that up to the recurse T(n/2). He doesn't start in the middle of one of the halves, he starts at the beginning, i.e., the larger neighbor of n/2. It makes more sense to do it that way but it's not the way he wrote out the algorithm, is it?
@purleedef
@purleedef 4 года назад
How come he can get rid of the base at 23:31? I thought he did it at 22:11 because when n gets larger, log(ln(5)) is just a trivial number that doesn't have much impact on the result. But at 23:11 it affects the calculation itself before we make that assumption about the scalability Couldnt you do the same strategy as the earlier problem without getting rid of it? I end up with: log(100 log(n)) / log(ln(5))
@ananyakumar
@ananyakumar 3 года назад
It's not about whether it has an impact or not, log(ln(5)) is a constant value that does not affect the upper or lower bounds. Hence, we can eliminate it from our final solution. What you've suspect to be the reason log(ln(5)) was dropped in the first example is actually true for any function that contains n. For example, look at 31:09 - we reject log(n)/2 because it exponentially smaller than 2^n. In this case, the reasoning that log(n)/2 is just a trivial number that doesn't have much impact on the result as n increases is correct. Hope this helps!
@LordMoopCow
@LordMoopCow 2 года назад
i see i am not the only one who purchased every shirt from the pure pwnage web shop. Hello my brother
@LynnLe-ky6rf
@LynnLe-ky6rf Месяц назад
loving the log jokes in between 😂 Amazing lecture
@jeanjean6739
@jeanjean6739 3 года назад
I know it's quick but I love you
@ashutoshtiwari4398
@ashutoshtiwari4398 4 года назад
the problem of log( ( n n/2 ) ) would be much simpler if you wouldn't use approximation formula. Just open the factorials and check the highest power of n.
@victoriajiang892
@victoriajiang892 3 года назад
the log() won't go away if you just simplify what's in the parenthesis
@mahmoudihocine2837
@mahmoudihocine2837 Год назад
Can any one explain how the simplification work in the log ? how were ln 5 in the base and power of 100 thrown away? @22:13
@kevinryzack5712
@kevinryzack5712 6 лет назад
The professor is wrong at the 13:00 mark. It's not a big deal but it's still theta of x^1.5 as x^1.5 is clearly also a lower bound to the equation: (1+sin(x))x^1.5 + x^1.4
@user-tk2jy8xr8b
@user-tk2jy8xr8b 5 лет назад
Probably he should have used sin(x)*x^1.5 + x^1.4
@rfrost4708
@rfrost4708 4 года назад
No he is correct because when sinx becomes -1, the x^1.5 term disappears and we have only the x^1.4 term remaining. x^1.5 cannot be the lower bound as it's greater than x^1.4 in this case.
@fernandofuentes7617
@fernandofuentes7617 3 года назад
@@rfrost4708 wut? -1 and disappears?
@edenender
@edenender 2 года назад
What is the practical aplication for all this discussion ?
@samanthabrady6498
@samanthabrady6498 11 лет назад
This kid is adorable.
@nguoikechuyenlichsu6472
@nguoikechuyenlichsu6472 5 лет назад
It is so great, I love exercise class
@florentynastone3673
@florentynastone3673 8 лет назад
Thanks, great (and very cute :D) TA!
@ayyashC
@ayyashC 9 лет назад
Can someone please explain the 21:48 reduction ? why did the exponent got simplified ?
@roylee3196
@roylee3196 9 лет назад
+Ahmad Ayyash (Ash) it's because in log-arithmetics, log(n^2) = 2 log(n), you can bring down that exponential as a multiply, and since its a constant, hence it's non-significant and neglect-able.
@ministryoftruth596
@ministryoftruth596 6 лет назад
Yes, but what happens when you have log(n)^2?
@zeronothinghere9334
@zeronothinghere9334 4 года назад
@@ministryoftruth596 That is the same as log(n) log (n) so you can add them to log(n*n) = log(n^2) = 2 log(n)
@victoriajiang892
@victoriajiang892 3 года назад
@@zeronothinghere9334 why is log(n)*log(n) equivalent to log(n^2)?
@zeronothinghere9334
@zeronothinghere9334 3 года назад
@@victoriajiang892 Was my mistake.
@damyant_jain
@damyant_jain Год назад
Can someone please explain the difference between (log n)^100 and log (100)^n. This was during 22:10.
@ritik5356
@ritik5356 Год назад
(log n)^100 = (logn)*(logn)*... 100 times, log (100)^n = log (100 *100 *100 *... n times) = n*log(100)
@Draven1334
@Draven1334 3 года назад
SIMPLY THANK YOU
@mond2440
@mond2440 6 лет назад
i dont get it when the sub array becomes 1 element its more like the worst case of that algorithm instead of theta
@ajai.a2374
@ajai.a2374 7 лет назад
Thank you!
@murtazahamid6141
@murtazahamid6141 4 года назад
What would happen if there was more than one peak?? The algorithm would simply find one peak and leave it at that
@luojihencha
@luojihencha 4 года назад
agree
@golubhai1910
@golubhai1910 4 года назад
question is to find a peak, so its ok to have multiple peaks because we are only searching for a peak. watch 6.006 ist lecture then come to this video you will understand
@punstress
@punstress 11 лет назад
It looks like he is writing x^(1.4) but it sounds like he says "x to the one fourth". Maybe I'm not seeing or hearing him correctly? 11:25 Also he switches between N and n as if they are the same... Sloppy.
@spartacusche
@spartacusche 4 года назад
minute 36, why did he uses theta in the analysis of the peak find instead of Big-O
@julian92
@julian92 3 года назад
Because in some cases O is the same as Theta
@NovaMenteMedia
@NovaMenteMedia 10 лет назад
I'm sorry at 24:56 why N is over N / 2 isn't (N ^ N)/2 ?
@AbhimanyuAryan
@AbhimanyuAryan 10 лет назад
don't wry he solved it wrong way
@GianLucaDegani
@GianLucaDegani 10 лет назад
no, because it's a binomial coefficent
@c.d.premkumar6867
@c.d.premkumar6867 3 года назад
15:11: if BigO (log N) is > BigO (1) then the minimum value of N must be equal to 10. I have always had this doubt. Can anyone please clarify.
@shasankaborah2700
@shasankaborah2700 8 лет назад
actually i don't exactly understand what is complexity in algorithms and how to find them?
@Quisl
@Quisl 7 лет назад
Its the number of steps (for example CPU cycles or time spent calculating) that are required to run and finish an algorithm.
@MehulKumar_m3huL
@MehulKumar_m3huL 6 лет назад
Dominant portion of function which depends on input size. Everything else is moh maya ;-}
@kind03cn
@kind03cn 9 лет назад
In 2:23, the part of the function he is writing is "Sin(x+1)" not "Sim(x+1) " right?
@christopherbuja1027
@christopherbuja1027 5 лет назад
yes, it is sin. The reason why is that the sin function ranges from -1 to 1, so it adds noise to to the function
@ikram3105
@ikram3105 3 года назад
28:34 *how does the root in denominator cancels out when the exponential is only N ???*
@puravhs36
@puravhs36 3 года назад
The denominator gets squared(and the square(^2) removed from the previous step)
@mohamedtarek8899
@mohamedtarek8899 4 года назад
I am still not convinced as to how recursing on the side with the larger number guarantees us the solution.
@serhatuyanmis1493
@serhatuyanmis1493 4 года назад
I suggest you to go look for calculus 1 and if you have time go for calculus 2. There are some expression that you can find the answer of the question.
@userdejjek6243
@userdejjek6243 5 лет назад
Wow. I am not related to this major but. I watched this for 25 minutes and I thought this is little bit hard and The ta is little bit hot.
@stefantoljic5013
@stefantoljic5013 8 лет назад
Beautiful! :D
@arpitagarwal016
@arpitagarwal016 6 лет назад
Why did he multiplied O(M) in the end? how did that come?
@horriblefate
@horriblefate 6 лет назад
Find maximum element in just one column = M The (maximum) number of column that you need to check = log N Total = for the (log N) number of columns, you check all M elements on each column = M * log N
@wazaabazaa
@wazaabazaa 4 года назад
rows*columns where M was the columns
@DrewIsFail
@DrewIsFail 11 лет назад
poor chalk :(
@oishikachaudhury5519
@oishikachaudhury5519 5 лет назад
How are we just canceling out the base?
@sapnokiranii
@sapnokiranii 5 лет назад
I want to know this too, did you figure out?
@sweatysweatson9399
@sweatysweatson9399 5 лет назад
which time frame are you asking about? 20:00 ?
@riccardosven
@riccardosven 4 года назад
It's a long time past, but answering for future reference: log_a(b) = log(b)/log(a) so a constant base becomes just a constant multiplicative factor that you can disregard.
@Ankit9296
@Ankit9296 9 лет назад
what if no. of array is even how can we decide middle
@Aziz-wl1xf
@Aziz-wl1xf 5 лет назад
You round the quotient.
@kaliabsurde6215
@kaliabsurde6215 8 лет назад
hi. thank you for this courses. what is the difference between lectures and recitation lectures?
@heaven101010
@heaven101010 8 лет назад
Hi, you can ask google the exact same question and get a very nice and clear answer from MIT (1st link).
@unev
@unev 8 лет назад
Recitation is a complement to lecture. Whereas lectures are filled with far too many students and far too much material to have ample opportunity for individualized engagement and specific questions, recitation holds smaller numbers of students and is aimed to address anything covered during lecture or individualized studying that is unclear. Recitation is a safe space in which asking questions for cla
@tarunkushwaha3922
@tarunkushwaha3922 6 лет назад
he is cool at words. :D
@odgiiv1
@odgiiv1 4 года назад
Why does exponent goes out at 22:11
@ikram3105
@ikram3105 3 года назад
it was a constant. Would have come before log and then not considered because *a constant.*
@unknownunknown8699
@unknownunknown8699 2 года назад
This dude looks younger than all my colleagues :)
@AyushBhattfe
@AyushBhattfe 7 лет назад
got the whole thing
@mathematicalcoffee2750
@mathematicalcoffee2750 7 лет назад
Ayush Bhat no one cares
@AyushBhattfe
@AyushBhattfe 7 лет назад
MathematicalCoffee you do :')
@AbhimanyuAryan
@AbhimanyuAryan 10 лет назад
this guy is so cool & his writing is OK i have seen people with more miserable handwriting & he sits exactly at back of me in exams......n great thing is i have to cheat from his answer sheet.....in chemistry, electrical, physics exams :p
@wpelfeta
@wpelfeta 10 лет назад
Wait. I don't understand the log log log log joke he says at 22:15. I feel like I'm missing something funny. :(
@apathyonastick
@apathyonastick 9 лет назад
Q:What does a theory student say when they're drowning? A: Log log log log. Sounds like "glug" or the noise of bubbles in water.
@AldarionTheMariner
@AldarionTheMariner 9 лет назад
apathyonastick And I thought he cries for a log to float on it or something.
@muratzhankyranbay6427
@muratzhankyranbay6427 5 лет назад
sweet
@alexanderle1610
@alexanderle1610 4 года назад
❤️
@Juan-dc6yf
@Juan-dc6yf Год назад
Tough crowd
@sniperkyle6152
@sniperkyle6152 3 года назад
9:43
@priyanksharma1124
@priyanksharma1124 6 лет назад
LOG LOG LOG LOG ......drowning
@flyfast3837
@flyfast3837 2 года назад
what is this O instead of Theta shit?! it's messing with my brain!
@GutsofEclipse
@GutsofEclipse 3 года назад
People who say that monetary profit is just a corrupting factor should think about what he said here. Why does google care about giving you a fast service? Because in a capitalist system, you have a right to not help them make money. Without a capitalist system of accountability to customers, they'd be okay with making you wait for results, just like the DMV (who should be more efficient according to socialist theory), because there's no penalty to them for doing so. >Just go full Soviet and torture them if they don't get 200 milliseconds! And now you understand why putting leftists in charge of humans rights is like putting child molesters in charge of CPS.
@DanielPage
@DanielPage 11 лет назад
I am calm, I am just telling you as a mathematician and computer scientist (both) I found his comments to be very inappropriate to a course in this subject. I would appreciate you not inferring false statements about my feelings. As somebody who has taught this subject numerous times (in analysis) and at the university level myself as an instructor that is not the way to present oneself with this subject. The point is to emphasize the importance of mathematics in computation as it is required
@TheMasterfulcreator
@TheMasterfulcreator 5 лет назад
He's making the distinction between math and computer science conventions using a little bit of humor. Honestly the fact that you aren't used to this makes it seem like you are in fact not both a mathematician and computer scientist.
@swapnildadamode662
@swapnildadamode662 4 года назад
people cant read victors handwriting. And he thinks he teaches good.
@DanielPage
@DanielPage 11 лет назад
I find this TAs jokes to be incredibly arrogant. To segregate your students between the "maths" students and the "CS" students is ridiculous. There is no line to draw when they are one in the same.
@r17v1
@r17v1 5 лет назад
its a fucking JOKE.
@troooooper100
@troooooper100 5 лет назад
i work as a software developer i dont even know how to do calculus 1 whats your point. i dropped cal 2, i forgot cal 1.
@surajbiswas256
@surajbiswas256 2 года назад
1:01 that guy gives me some hope that even mit students can forget 3 yeas past topics...🥹🥹🥹 i am so glad to hear that
Далее
Recitation 2: Python Cost Model, Document Distance
52:21
Introduction to Poker Theory
30:49
Просмотров 1,4 млн
Richard Feynman: Can Machines Think?
18:27
Просмотров 1,5 млн
16. Portfolio Management
1:28:38
Просмотров 6 млн
10. Understanding Program Efficiency, Part 1
51:26
Просмотров 236 тыс.
20. Savings
1:14:29
Просмотров 911 тыс.
Fast Inverse Square Root - A Quake III Algorithm
20:08
MIT Introduction to Deep Learning | 6.S191
1:09:58
Просмотров 660 тыс.