Updated URL to Tarjan set union paper.

pull/13171/head
Josh Haberman 9 years ago
parent d0c2479920
commit e16ed470be
  1. 2
      upb/refcounted.c

@ -709,7 +709,7 @@ static void merge(upb_refcounted *r, upb_refcounted *from) {
* TODO(haberman): this linear algorithm can result in an overall O(n^2) bound
* if the user continuously extends a group by one object. Prevent this by
* using one of the techniques in this paper:
* ftp://www.ncedc.org/outgoing/geomorph/dino/orals/p245-tarjan.pdf */
* http://bioinfo.ict.ac.cn/~dbu/AlgorithmCourses/Lectures/Union-Find-Tarjan.pdf */
do { from->group = r->group; } while ((from = from->next) != base);
/* Merge the two circularly linked lists by swapping their next pointers. */

Loading…
Cancel
Save