Nakano, Shin-ichi. “A Simple Algorithm for $r$-Gatherings on the Line”. Journal of Graph Algorithms and Applications, vol. 23, no. 5, Oct. 2019, pp. 837-45, doi:10.7155/jgaa.00514.