Data structure expansion Flashcards
1
Q
Step one of data structure expansion
A
Pick an existing known data structure as the base
2
Q
Step two of data structure expansion
A
Decide on an extra data field that will help you accomplish the task
3
Q
Step three of data structure expansion
A
Make sure you can maintain that field using the existing methods of the data structure
4
Q
Step four of data structure expansion
A
Create the new functionality (methods) using the new fields.
5
Q
AVL tree expansion term
A
If f is an expansion field in AVL tree that can be calculated for a node using the data in it’s left and right children, than it can be maintained in insertion and deletion without affecting runtime