Тёмный

Closest pair of points 

Design and Analysis of Algorithms
Подписаться 10 тыс.
Просмотров 67 тыс.
50% 1

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

 

10 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@malharjajoo7393
@malharjajoo7393 4 года назад
Cant believe how a seemingly harmless question has such a complicated solution.
@rakshitkathawate8838
@rakshitkathawate8838 6 лет назад
I have searched almost 5 books and may be 10 to 15 online resources to understand that concept of "one point at max in a square". Thank you, sir for explanation.
@vidhikumar1664
@vidhikumar1664 5 лет назад
Amazing explanation....explained something none of the other sources I went through did
@dohyun0047
@dohyun0047 4 года назад
i had to watch this multiple time to understand it was worthy thank you!!!!!
@lupitasahu
@lupitasahu 4 года назад
Why do we need to compare within 15 squares? Shouldn't it be 11 instead? There is no point comparing with squares which are 2 squares above the point. Can you please explain?
@xunweiye8067
@xunweiye8067 4 года назад
you are right
@piyushbhatia234
@piyushbhatia234 3 года назад
actually it should be only 7 points. if we are taking about 2d
@rahulsharma5030
@rahulsharma5030 4 года назад
after dividing in to halfs ,we take the points at distance d and sort them according to y?But why according to y only and not according to x?if i sort by x again and i can give same argument that only at max 15 points will be accessed.Please clear this query.@13:25 ,the first line,why is has to be sorted by y?Will sot by x give wrong results?
@AciertoHombre
@AciertoHombre 5 лет назад
Really good explanation
@keshavparihar2304
@keshavparihar2304 3 года назад
Amazing explanation 💖💖
@tsndiffopera
@tsndiffopera 4 года назад
15 is too optimistic. We can have a better lower bound of 7.
@danielredcliff235
@danielredcliff235 13 часов назад
No it should be atleast 11 as we have to check the layer of the point and the two layers above it.
@toekneema
@toekneema 3 года назад
Imagine having to solve this in an interview in nlogn
@mistryhitenbharatkumar36
@mistryhitenbharatkumar36 3 года назад
😂😂 exit
@a3393962
@a3393962 4 года назад
if some point falls on the split line, you will get wrong (you can't just split x by half-half, some of the point are on split line)
@sabujjana2860
@sabujjana2860 6 лет назад
Nice
@elijaheinstein160
@elijaheinstein160 5 лет назад
Nice explanation! How to modify this algorithm when the x and y coordinates are not guaranteed to be distinct?
@ras6746
@ras6746 4 года назад
make them distinct first :)
@hoomaneshghi253
@hoomaneshghi253 6 лет назад
there is no need to check against 15 others, only 7 points of the other side is enough
@TRPixel
@TRPixel 6 лет назад
if it is 3d dimensinal , we need to check 15 ?
@rakshitkathawate8838
@rakshitkathawate8838 6 лет назад
Yes that's good, small refinement in the problem.
@mrsjain1419
@mrsjain1419 5 лет назад
@@TRPixel look at the distance formula it is for 2 d not 3d
@farhanhaikhan7307
@farhanhaikhan7307 4 года назад
Are you sure?
@anujdhoot7804
@anujdhoot7804 4 года назад
Lucid. Thank you so much :)
@nahidx
@nahidx 4 года назад
I don't still understand "one point at max in a square". Does anyone has a better explaination?
@studyonline3236
@studyonline3236 4 года назад
I've had way too much free time during this quarantine. Here's the explanation of what you wanted with proof. Once you've found out the LD(minimum distance on the left side of the separator line L) and RD(...........right side of..........), you'd find delta which is the minimum of the aforementioned distances(DELTA=min(LD,RD)). Now, its time for finding the distance b/w the points lying on the EITHER SIDE of the line L. So you'd now construct the strip (of length 2*Delta) across L and search for the points lying within the strip and distanced < DELTA. We will now build a square(assume its either on the left or right side of the line L just for simplicity) with side=DELTA and see how many points fit in it conforming to our requirement that minD
@iJamesGuo
@iJamesGuo 4 года назад
@@studyonline3236 Are you sure all the 8 points in the two squares need to be calculated? I read somewhere you actually only need check 3 points, as long as the points are y coordinates non-decreasing ordered .
@studyonline3236
@studyonline3236 4 года назад
@@iJamesGuo can you share the source link? Btw there isn't much computational time difference between them as long as the computations are done in linear fashion. O(8n) ~=O(3n)~=O(n)
@iJamesGuo
@iJamesGuo 4 года назад
@@studyonline3236 Yes, I know it's linear. Just for the life of me can't figure why we only need to check 3. Your explanation helps, but I am still unclear of the magic number 3.
@ІванМанчур-е7з
@ІванМанчур-е7з 4 года назад
very good explanation!
@haniahania6941
@haniahania6941 2 года назад
Can you please help me to write c++ source codes for different programs
@mxkep
@mxkep 5 лет назад
Very good!
@hoomaneshghi253
@hoomaneshghi253 6 лет назад
Thanks
@PramodKumar-bu2uf
@PramodKumar-bu2uf Год назад
anyone can share the code of this problem
@PramodKumar-bu2uf
@PramodKumar-bu2uf Год назад
in c++
@b-33neelranka65
@b-33neelranka65 4 года назад
hi
@LearnPythoninPashto
@LearnPythoninPashto Год назад
we say to it ratalogist it means to memorize something but in practical quality is zero please don't waste time in such video
@gauravmishra2888
@gauravmishra2888 4 года назад
Yeah this tutorial is copied from tim
@coolmagictrickwithapple7513
@coolmagictrickwithapple7513 4 года назад
Nah, you couldn't be more wrong..
@brajeshmohanty2558
@brajeshmohanty2558 Год назад
Can you provide the channel name
Далее
ПОНТОРЕЗКА САША BELAIR / ОБЗОР
27:43
Dragon Blood Whitening Cream
00:35
Просмотров 3 млн
Обыкновенное чудо
00:48
Просмотров 540 тыс.
BRUTAL STREET FIGHT KNOCK OUT
00:20
Просмотров 1,1 млн
Quantifying efficiency: O( ), Omega( ), Theta( )
18:02
Merge sort - analysis
15:11
Просмотров 37 тыс.
Quicksort - analysis
12:18
Просмотров 28 тыс.
Introduction and motivation
18:35
Просмотров 118 тыс.
Dijkstras algorithm: analysis
14:22
Просмотров 35 тыс.
Counting inversions
17:58
Просмотров 24 тыс.
ПОНТОРЕЗКА САША BELAIR / ОБЗОР
27:43