Introduction to Graphs Flashcards
1
Q
What are the conditions for a tree?
A
- V-1 connected edges with no cycles
- Removing edge disconnects
- Acyclic, adding edge creates cycle
- One simple path connects each pair of vertices
2
Q
When is a graph sparse/ dense?
A
- Sparse when few of possible edges present
- Dense when few edges are missing
3
Q
What is the space-time of Kruskal’s algorithm?
A
Space: E
Time: E log E