Lesson 05/05/2020 Graphs Flashcards
1
Q
What are graphs used for
A
They are used to model networks
2
Q
name 3 ways graphs can be used
A
Used to model:
- navigation systems
- web page links
- Data transmissions
3
Q
what are graphs drawn with
A
vertex’s and edge’s
4
Q
how can graphs be represented
A
- like this: {a,b,c,d,e}
- as a adjacent matrix graph
- as a adjacency list graph
5
Q
pros and cons of a adjacent matrix
A
pros: -easy and quick to work with -adding new edges is easier cons: -hard to delete individual nodes -takes up memory with empty space