Back to marketplace

Section 7 Chapter 41 - Graphs

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

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

Card preview (12)

#1
Front (Question)

Graph

Back (Answer)

A set of nodes that are connect by edges. Can be used to represent complex relationships

#2
Front (Question)

Weighted Graph

Back (Answer)

A graph where each edge has a number associated with it. This is often the ‘cost’ to move along that edge

#3
Front (Question)

Node

Back (Answer)

A point on a graph. Nodes are connected to each other by edges and can often represent locations or states.

#4
Front (Question)

Edge

Back (Answer)

An edge connects to nodes. Edges often represent a movement or a change

#5
Front (Question)

Undirected graph

Back (Answer)

Edges are all bidirectional. This means that all edges can be travelled across in both directions

#6
Front (Question)

Directed graph

Back (Answer)

All the edges are one way

#7
Front (Question)

Common uses for graphs (4)

Back (Answer)

• Showing road connections between cities • FSM • Representing a computer network • Showing links between web pages

#8
Front (Question)

Adjacency matrix

Back (Answer)

A table that can be represented with a two dimensional array. It represents the nodes of a graph and the connections between these nodes.

#9
Front (Question)

What an undirected graph adjacency matrix will look like

Back (Answer)

symmetrical

#10
Front (Question)

How to represent an unweighted graph with an adjacency matrix

Back (Answer)

0s and 1s

#11
Front (Question)

Adjacency list

Back (Answer)

A list of all nodes. Each node in the list points to a list of its adjacent nodes and the weights. Can be represented as a list of dictionaries

#12
Front (Question)

Adjacency matrix vs adjacency list

Back (Answer)

Adjacency matrix + Adding an edge is easy + Testing for the presence of an edge is easy - In a graph with lots of nodes but few edges, a adjacency matrix would have a lot of empty wasted space Adjacency list - More space efficient