Back to marketplace

Graphs

No description yet. This curated deck is ready for daily study.

Total cards: 10•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (10)

#1
Front (Question)

What is a Breadth-First Search?

Back (Answer)

Starts at the root and explores all nodes at the present depth, then moving on to the next depth level

#2
Front (Question)

What is a Depth-First Search

Back (Answer)

Starts at the root node and explores as far as possible along each branch before backtracking.

#3
Front (Question)

What is the advantage of an adjacency matrix?

Back (Answer)

They are time efficient, since each edge can be specifically queried very quickly using rows and columns.

#4
Front (Question)

What is the disadvantage of an adjacency matrix?

Back (Answer)

They are memory inefficient, as each edge between nodes are stored, even if they don’t exist.

#5
Front (Question)

When would you use an adjacency matrix?

Back (Answer)

For a dense graph with a large number of edges.

#6
Front (Question)

What is the advantage of an adjacency list?

Back (Answer)

They are memory efficient, as they only store edges that exist in the graph.

#7
Front (Question)

What is the disadvantage of an adjacency list?

Back (Answer)

They are time inefficient, as each item in a list must be searched sequentially until the desired edge is found.

#8
Front (Question)

When would you use an adjacency list?

Back (Answer)

For a sparse graph with few edges.

#9
Front (Question)

What are the 3 characteristics of a Tree?

Back (Answer)

• Connected • No cycles • Undirected

#10
Front (Question)

What does it mean when a graph is weighted?

Back (Answer)

It’s edges are assigned a value that can represent values such as time, distance or cost.