I'm not sure if they are directly related.
In the linked list discovery algorithm, we try to detect the possibility of a loop in a linked list by choosing a scheme that causes two pointers to collide if there is a list.
In a circular buffer, a pointer collision means that the buffer is full or empty.
My assumption of the only connection that we can make here is that circular data structures can be detected by certain conditions, with only two pointers moving locally, and not a more “global” algorithm. For example, a loop search in a linked list can also be done through DFS.
source share