Graphs and Trees (AQA A-Level Computer Science): Flashcards

📚Flashcards
Graphs and Trees
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Graph

Structure modelling how objects relate to one another

Vertices (nodes)

Objects or points in a graph

Edges (arcs)

Connections between vertices in a graph

Weighted graph

Graph with numerical values (weights) on edges

Directed graph

Graph with one-way relationships shown by arrows

Undirected graph

Graph with relationships working in both directions equally

Adjacency list

Stores each vertex with its connected vertices

Adjacency matrix

2D array showing if edges exist between vertex pairs

Tree

Connected, undirected graph with no cycles

Binary tree

Tree where each node has max two children

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.