data structures Flashcards
1
Q
tree and graph similarities
A
- both consist of nodes
- both connected by edges
- both non-linear data structures
- both dynamic data structures
2
Q
tree and graph differences
A
- a tree is 1-directional whereas a graph is 2-directional
- a tree has a root node whereas a graph does not