-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree with parent pointers VS zippers #11
Comments
82c2345 still has the Tree with parent pointers design |
Zippers are nice so far |
See also #20 and readme |
Everyone uses zippers or red-green trees |
Neato, we could have constant time comparisons for zipper equality (given non-pathological trees)
There's a smarter way of doing it, see #30 |
Now I'm thinking about redesigning this in Rust. |
Having parent references (including the zipper or red-green node types) is much easier when you have a homogeneous tree. Then you don't have to deal with cases like "this table cell node can only have a table as its parent". (See also #21 (comment) ) As such, not giving a table some funny "table-row" and "table-cell-elements" makes it easier to deal with. |
I think zippers are neater, see also https://blog.yaakov.online/red-green-trees/
The text was updated successfully, but these errors were encountered: