even after two years. this remains the best proof i could find. thank you!
@KnowledgeCenter2 жыл бұрын
Glad to hear.
@theawless3 жыл бұрын
Amazing! This is the most complete proof of the algorithm I've seen. I was tired looking at wikipedia and stack-overflow. Some people made the assumption that hare will make only one loop before reaching the meeting point, but no one explained why. It seems that's the wrong logic. In your proof you mentioned that hare and tortoise can both make some number of loops.
@KnowledgeCenter3 жыл бұрын
Thanks. Glad it helped.
@AndreiSokolov-k7j8 ай бұрын
no it's wrong explanation, e.g why he thinks, that length of the loop it's 8? it's 7. and also tortoise can not do ANY number of loops
@kaifk58894 жыл бұрын
Sir the way you explained the problem was really amazing. Hoping to see more algorithm videos soon.
@KnowledgeCenter4 жыл бұрын
Thanks. Check other playlists.
@Vibedecoded Жыл бұрын
Best explanation hands down !
@abhijitdutta845826 күн бұрын
Great Explanation. Thank you!
@svalyavasvalyava98673 жыл бұрын
I'm so grateful for this explanation. Thanks a ton 😌
@KnowledgeCenter3 жыл бұрын
Happy to help!
@prabhupuredla82804 жыл бұрын
the explanation is clean and precise. Thanks for the video
@KnowledgeCenter4 жыл бұрын
Thanks.
@rohith82694 ай бұрын
Such a great explanation!
@takitazwarparthib35554 жыл бұрын
GREAT EXPLANATION SIR! HELPED ALOT.. SPECIALLY THAT LAST EXPLANATION WAS EXCELLENT
@KnowledgeCenter4 жыл бұрын
Thanks.
@zaabimahdi3 жыл бұрын
this is the best ever explanation !
@KnowledgeCenter3 жыл бұрын
Thanks.
@boladjivinou72952 жыл бұрын
Thanks a lot, this is the most logic explanation
@KnowledgeCenter2 жыл бұрын
Glad you think so!
@rohanprak4 жыл бұрын
thanks a lot for such a great explanation, this could not have been better.
@KnowledgeCenter4 жыл бұрын
Thanks. Glad you learnt something useful from the video.
@KS0607 Жыл бұрын
extremely lucid great thanks
@KnowledgeCenter Жыл бұрын
Thanks.
@Amygdala57-c8c9 ай бұрын
M = (s*C2-f*C1)*N/(f-s) - (f-s)*K So, if the slow pointer moves "s" step at a time, the first pointer will move (f-s) step to meer the beginning of the loop. Here, s=1, f=2. So slow moves 1 step and fast moves (f-s)=1 step at a time. Got it.
@DeepakKumar-wh7bv5 жыл бұрын
Thank You Very Much Sir !. This video solved my doubt. Please Keep uploading videos on problems with mathematical base. Please make a "video series" on Time Complexity Finding (without using master theorem ) . I have subscribed your channel and waiting for another videos.
@KnowledgeCenter5 жыл бұрын
Thanks Deepak. That's really encouraging. Will be creating more series on algorithms and problem solving soon.
@tsaoliam5422 Жыл бұрын
Best explanation
@kartikeydixit37433 жыл бұрын
Very clear explanation . Thankyou so much
@KnowledgeCenter3 жыл бұрын
Glad it was helpful!
@trivialnonsense Жыл бұрын
Excellent. Thank you
@KnowledgeCenter Жыл бұрын
Glad it was helpful!
@diptiprakashsinha3 жыл бұрын
Nice explanation
@KnowledgeCenter3 жыл бұрын
Thanks.
@crisag.26984 жыл бұрын
What I'm confused about is how the fast pointer could make more than 2 cycles around the loop before it meets the slow pointer. Intuitively, in my minds eye I see the fast pointer moving at 2x the speed, so I would think that the overlap would happen somewhere before the fast pointer begins its third cycle.
@KnowledgeCenter4 жыл бұрын
That can depend on the size of the loop. Lets say There are 100 nodes before cycle, and 1st node of cycle is 101th node. The cycle has lets say 10 nodes. So, after time step 50, slow pointer will be at 50th node, fast pointer will be at 100th node and touching the beginning of Cycle. after 5 more time steps, fast pointer will complete 1 round of cycle, since it has just 10 nodes. Slow pointer will reach 55th node, still far from beginning of cycle. After next 5 time steps, fast pointer will complete another round of cycle, slow pointer will be at 60th node and still far from beginning of cycyle. At time step 101, slow pointer will enter Cycle. By that time fast pointer has already completed 10 rounds of cycle. Now, chase will start between rabbit and tortoise.
@mehrabhasan57733 жыл бұрын
Great explanation. Thanks a lot.
@KnowledgeCenter3 жыл бұрын
Welcome
@umangmalhotra1222 Жыл бұрын
very good explantion.
@Its_Sunny-qe8ve Жыл бұрын
In what case, the slow pointer will complete at least 1 loop because I am getting that in every case , fast pointer will catch slow one before the loop 1 complete. Can anyone provide example in which slow pointer completing at least 1 complete circle of loop
@sunnykumarsingh70398 ай бұрын
Excatly bro!
@prakulcool4 жыл бұрын
Well explained. Thank You Sir!
@KnowledgeCenter4 жыл бұрын
Thanks.
@manishvohra19534 жыл бұрын
Awesome explanation
@KnowledgeCenter4 жыл бұрын
Thanks.
@happyhome4224 жыл бұрын
Thank you for nice explanation. 🙏upload more videos
@urmanratneshwar3 жыл бұрын
thanks a lot for this explaination...
@KnowledgeCenter3 жыл бұрын
Glad it was helpful!
@joeys8832 Жыл бұрын
Thank you!
@KnowledgeCenter Жыл бұрын
Welcome!
@shivam73042 жыл бұрын
bro the explanation was on point but you need a media player to increase your speed though...
@KnowledgeCenter2 жыл бұрын
Right. Speed has increased in later videos.
@paragroy53594 жыл бұрын
Nice explanation sir......
@SpaceExplorer2 жыл бұрын
thank you sir
@KnowledgeCenter2 жыл бұрын
Welcome.
@MyJapaneseLife4 жыл бұрын
Hey @KnowledgeCenter, Should the symbol "=>" you draw in the video be ""? Also your video are a bit slow. I have to play it at 1.25x to save my time... Anyway thanks for the video, helped me understand the algorithm. Edit: This video deserves much more views and thumb ups because it explains the algorithm in mathematical way unlike many other videos.
@KnowledgeCenter4 жыл бұрын
Thanks. My earlier videos were a bit slower as I was drawing using touch pad.. Newer videos are a bit faster. For older ones recommended speed is 1.25x at least.
@chandrasharma19514 жыл бұрын
Nice explanation. However I was searching for floyd cycle algorithm (behind the scene maths). And please speed up, I played it at 3x so that I don't get bored.
@KnowledgeCenter4 жыл бұрын
In recent videos I have speeded up a bit.
@chandrasharma19514 жыл бұрын
@@KnowledgeCenter Thank you. BTW I worked up on the maths, two pointers starting at position a and b inside loop with speed x and y respectively to meet at point t have to satisfy equation a + xt ≡ b + yt mod N, where N is loop length, but it shows that they will not meet if (x-y) is not co-prime with N. Please do add the explanation for this and whether I am wrong on this or right. Thanks in advance.
@alifrahman70994 ай бұрын
Nice proof. ❤❤
@tongl73804 жыл бұрын
nice video! helps me a lot, thank you
@KnowledgeCenter4 жыл бұрын
Great.
@tareqmahmud77602 жыл бұрын
nice, thanks
@KnowledgeCenter2 жыл бұрын
Welcome 😊
@bagasadifirdaus92783 жыл бұрын
Sir can you tell me why the slow pointer is guaranteed not to go over the full loop before meeting the fast pointer?
@udbhavvikramsingh34493 жыл бұрын
same Q !!!! did you find the answer bro. if yes then share with us.
@abhishekroy10282 жыл бұрын
It is not guaranteed. If you watch the video, he mentioned 'in most cases' it'll be one.
@payalsagar18084 жыл бұрын
wow short and crisp!🙆
@KnowledgeCenter4 жыл бұрын
Thank you 😋
@kamaninikhil713 жыл бұрын
I didnt get why we ignored numbers of loops as constant