1.4.2 Data Structures & in Paper 2 Flashcards
What is a Graph?
An abstract data structure used to show relationships between items.
What is the definition for Node/Vertex?
An item, or piece of data
What is an Edge/Arc?
A relationship between nodes.
Describe a Weighted Graph
Each edge has a value, or a cost to travel.
Describe an unweighted graph
Edges have no values or costs.
What is a Directed Graph?
Edges can only be traversed in one direction.
What is an Adjacency Matrix?
A table to show the relationships in a graph.
What is an Undirected Graph?
Edges can be traversed in any direction.
What is an Adjacency List?
A space-efficient way to store the relationships in a graph.
What is the definition of Static?
Structures with a fixed length.
What is the definition of Dynamic?
Structures with a changeable length.
What is the definition of Array?
A static, ordered set of elements of the same type
What is the definition of Tuple?
- A static, ordered set of elements of any type.
- Immutable.
What is a 2D array?
- An array that contains other arrays.
- Often used to store tables
What is a Linked List?
- An abstract, dynamic data structure…
- Which holds ordered data from different locations