Тёмный

Interval Partitioning ( Greedy Algorithm ) - Algorithms 

MisterCode
Подписаться 4,2 тыс.
Просмотров 49 тыс.
50% 1

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

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@chenf480
@chenf480 8 лет назад
I wish all of my professors could watch youtube first and then explain things to class.
@nkauvmeaern10121989
@nkauvmeaern10121989 3 года назад
I am a teacher and I am watching it right now
@Ali-ck2zu
@Ali-ck2zu 27 дней назад
If they new how to really design algorithm, they would never work for a university at an instructor!
@firstdbzmaker
@firstdbzmaker 3 года назад
at 5:06 why does interval 8 go to room 2 instead of room 1?
@loveCricket404
@loveCricket404 Год назад
that's completely arbitrary as we had 3 choices so we can chose any lecture hall .. :)
@ReverseGuy
@ReverseGuy Год назад
@@loveCricket404 that's not how it works :)
@farhaanjum824
@farhaanjum824 6 лет назад
I have a question. Why did not you schedule lecture 8 in hall 1?
@4869shk
@4869shk 6 лет назад
Farha A Because the currently occupied lecture halls are put inside a priority queue on the basis of time when they become available. Since hall 2 becomes available earlier than halls 1 and 2, we schedule the next lecture in hall 2.
@rafeedrahman2870
@rafeedrahman2870 6 лет назад
Nice answer
@onori6812
@onori6812 5 лет назад
@@4869shk what if 2 lecture halls are available at the same time?
@SajidurRahman25
@SajidurRahman25 5 лет назад
@@onori6812 Then you can break the tie whatever way you like, e.g. choose the first one.
@haipa_
@haipa_ 4 года назад
I have a question, how can we implementing greedy in order to optimize/decide total group class based on the resource (slot that available for each classroom)?
@abhishekbhatta7050
@abhishekbhatta7050 Год назад
can we put lecture no 8 in hall 1?
@xiuyuanwang-n6m
@xiuyuanwang-n6m 3 месяца назад
thank u
@kailashkumawat8763
@kailashkumawat8763 4 года назад
Sir, it would be helpfull to complete this discussion of room allotment, if you elborate on what will be the greedy approach for "how to maximize number of lecture out of N given intervals for fixed given K rooms?".
@vaibhavagarwal620
@vaibhavagarwal620 7 лет назад
This lecture is very good.
@daniarukhsar3940
@daniarukhsar3940 4 года назад
Why we use partition of interval? I mean why we have to use concept of partition? What is the purpose? Can you plz explain it.
@Muhammad_Huzaifa_Shahab
@Muhammad_Huzaifa_Shahab 5 месяцев назад
Why lecture 8 is compatible with lecture 2, although it is compatible with lecture 7 because lecture 8 start after end of lecture 7
@alantrammel7179
@alantrammel7179 6 лет назад
Very well done, sir.
@thezanycosmophile
@thezanycosmophile 4 года назад
What class does this problem belong to? NP or NP complete?
@pablodavico
@pablodavico 3 года назад
Sorry for the late answer. This problem belongs to class P since it is solvable in polynomial runtime (O(n log n)). P is a subset of NP so it also belongs to NP. It is not in NPC, unless P=NP.
@sahayayush987
@sahayayush987 8 лет назад
thank you it was really helpful
@fernandoguirao3748
@fernandoguirao3748 Год назад
what is epsilon?
@efstathiosmolyvas1102
@efstathiosmolyvas1102 5 лет назад
Perfect sir!
@Arpi10ta
@Arpi10ta 10 месяцев назад
Thank you so muchhh
@4869shk
@4869shk 6 лет назад
Amazing videos! Helped a lot, thanks! :)
@jyl4990
@jyl4990 6 лет назад
you are a life saver:)
@김영환-b4y
@김영환-b4y 7 лет назад
Thanks you!
@vikasgrajzz
@vikasgrajzz 5 лет назад
can anyone give the code for this problem plz.?
@施家謙
@施家謙 7 лет назад
really useful!
@gb7586
@gb7586 5 лет назад
ebed squad
@iremnurcolak620
@iremnurcolak620 4 года назад
Далее
Greedy Stays Ahead (Algorithms 08)
25:24
Просмотров 14 тыс.
Handsoms😍💕
00:15
Просмотров 7 млн
How I would learn Leetcode if I could start over
18:03
Просмотров 625 тыс.
Fast Inverse Square Root - A Quake III Algorithm
20:08
WHY IS THE HEAP SO SLOW?
17:53
Просмотров 253 тыс.
Think Fast, Talk Smart: Communication Techniques
58:20
Greedy Algorithms for Time-Slot Interval Optimization
11:51
Hashing Algorithms and Security - Computerphile
8:12