What is an array?
an ordered, finite set of elements of the same type
What type of array is a linear array?
a one-dimensional array
How can you visualise a two-dimensional array?
as a spreadsheet or table
How can you visualise a three dimensional array?
as a multi-page spreadsheet
What is a record also known as?
a row in a file
What is a record made up of?
fields
How can you select a field from a record using pseudocode?
recordName.FieldName
What is the defenition of a list?
a data structure, consisting of a number of items, where the items can occur more than once, mutable, dynamic, non-continguous
What are 2 differences between arrays and lists?
What is a tuple?
an immutable, ordered set of values of any type
What is the difference between a tuple and an array?
tuples are initialised using regular brackets instead of square brackets, tuple is immutable wheras array is mutable
What is a linked list?
a dynamic data structure, used to store an ordered set of items, in non-contiguous locations
What is the name given to the items in a linked list?
nodes
What does each item in a linked list contain?
a data field, and an address field called a pointer
What is a data field in a linked list?
a field that stores the actual data
What is a pointer field in a linked list?
a field that contains the address of the next item in the list
What is a graph?
a data structure consisting of a set of nodes connected by edges
What is a directed graph?
a graph where the edges can only be traversed in one direction
What is an undirected graph?
a graph where the edges can be traversed in both directions
What is a weighted graph?
a graph where the edges have a cost to traverse
Give 2 ways of representing graphs so that they can be understood by computers.
What is an advantage of using an adjacency matrix?
easy to add new nodes
quicker look up time
What is an advantage of using an adjacency list compared to an adjecency matrix?
space efficient for large sparse networks
What is a stack?
a LIFO data structure, where items can only be removed and added to the top of the stack