Lesson 05/05/2020 Graphs Flashcards

1
Q

What are graphs used for

A

They are used to model networks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

name 3 ways graphs can be used

A

Used to model:

  • navigation systems
  • web page links
  • Data transmissions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are graphs drawn with

A

vertex’s and edge’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly