Data structures - paper 1 Flashcards
What is an array?
An array is an ordered, finite set of elements of a single data type. They are zero indexed
When searching arrays do you go down and across or across and down?
Down the rows then across the columns
What is a record?
A row in a file and is made up of fields
What is a list?
A data structure containing a number of ordered items where the items can occur more than once.
What is a tuple?
An ordered set of values of any type is called a tuple. A tuple cannot be changed - nothing can be added or removed once created.
What is a stack?
A last in first out data structure
Items can only be added or removed from the top of the stack.
Can be static or dynamic
What is a queue?
A first in first out data structure
Items are added to the end of the queue and removed from the front.