Mercurial > hg > Papers > 2024 > matac-master
view Paper/src/CopyRedBlackTree.h @ 46:9baf70df56fa
copy algo
author | matac42 <matac@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 29 Jan 2024 13:41:22 +0900 |
parents | |
children |
line wrap: on
line source
typedef struct RedBlackTree <> impl Tree { struct Node* root; struct Node* current; // reading node of original tree; struct Node* previous; // parent of reading node of original tree; struct Node* newNode; // writing node of new tree; struct Node* parent; struct Node* grandparent; struct Stack* nodeStack; struct Stack* toStack; __code findNodeNext(...); int result; int copied; } RedBlackTree;