Graph Representation

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

6 Terms

1
New cards

What is an adjacency list?

An adjacency list shows which vertices each vertex is connected to, typically using lists.

2
New cards

What is an adjacency matrix?

An adjacency matrix is a table that shows 1 if two vertices are connected and 0 if not.

3
New cards

What is an incidence matrix?

An incidence matrix represents which vertices are incident (connected) to which edges.

4
New cards

Why do we use different graph representations?

To make it easier to store, visualize, and perform algorithms on graphs, depending on the situation.

5
New cards

Which graph representation is best for sparse graphs?

The adjacency list, because it stores fewer unused connections.

6
New cards

Which graph representation is best for dense graphs?

The adjacency matrix, because it allows fast checking of whether two vertices are connected.