4.1 Graph representations Flashcards

1
Q

What is the space complexity of an adjacency matrix. And time complexity of an adjacency + neighbourhood query

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

How to store a graph as an adjacency matrix

A

i, j = row, column

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

How to store a graph as an adjacency list

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

What is the space complexity of an adjacency list. And time complexity of an adjanceny + neighbourhood query

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

Compare adjacency matrices to adjacency lists

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

How does Google page rank use adjacency lists

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

What are 2 examples of multi-graphs

A

Knowing we won’t cover these may help on the exam

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