data structures Flashcards

You may prefer our related Brainscape-certified 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly