Skip to content

Commit 5442066

Browse files
authored
Update Offline_Del.mdx
1 parent 9971177 commit 5442066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/6_Advanced/Offline_Del.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $\mathcal{O}(N \log^2 N)$ runtime. You _must_ use merging by rank. An explanatio
2626

2727
### Implementation
2828

29-
Adding on to usual DSU, we can store the parent
29+
Adding on to the usual DSU, we can store the parent
3030
and sizes of nodes that are being merged before each merge. This allows us revert each node to their parents before the merge so that the rollback function can use the information to undo the merges.
3131

3232
We can store each state of the DSU using an integer, captured by the snapshot function which returns the number of old merges that has not been rolled back. It's similar taking a picture of something, and years later going back into your photo album and scrolling up until you find this picture.

0 commit comments

Comments
 (0)