You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: optd-mvp/DESIGN.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ of a problem.
58
58
59
59
TODO explain the fingerprinting algorithm and how it relates to group merging
60
60
61
+
Union find data structure with a circular linked list for linear iteration
62
+
61
63
When taking the fingerprint of an expression, the child groups of an expression need to be root groups. If they are not, we need to try again.
62
64
Assuming that all children are root groups, the fingerprint we make for any expression that fulfills that is valid and can be looked up for duplicates.
63
65
In order to maintain that correctness, on a merge of two sets, the smaller one requires that a new fingerprint be generated for every expression that has a group in that smaller set.
0 commit comments