Fundamentals of Data Structures- Definitions Flashcards
Data Structures
A format used to store, organise and manage data in a way that allows efficient access and modification for the needs of the program
Arrays
A data strucuture for storing a finite, ordered set of data of the same data type within a single identifier.
Multi-Dimensional Array
An array where each data item is located using multiple indices
Single-Dimensional Array
An array where each data item can be located using a single index
Binary file
An organised collection of records where data is stored in binary
Fields
A single item of data
Records
A data structure that stores multiple fields, organised based on attributes, within a single line of a file
Text file
An organised collection of records where data is stored in human readable characters
Dictionaries
A data structure consisting of set of keys that mapped to their corresponding values
Dynamic Structures
A data structure whose memory allocation size canchange throughout the executuion of the program
Graphs
A data strucuture consisting of a set of vertices/modes by a set of edges/arcs
Hash Table
A data structure where a hashing algorithm creates a mapping between keys and values. The data item can then be directly accessed by recalculation, without any search.
Queues
A FIFO data structure. The first item added pushed on to the queue is the first to be removed/ popped off
Stacks
A LIFO data structure. The last item added is the first to be removed.
Static structures
A data structure that is aloocated a fixed amount of memory space