Data Structures and Abstract Data Types Flashcards
Data Structures
A data structure is a format used to store, organise and manage data in a way that allows efficient access and modifications for the needs of program
Arrays
A data structure for soring finite, ordered set of data of the same data type within a single identifier
Multi-Dimensional Arrays
An array where each data is located using multiple indices
Single Dimensional Arrays
An array where each data item can be located using a single index
Binary File
An organised collections 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 collections of records where data is stored in human readable characters
Dictionaries
A data structure consisting of set of keys that are mapped to their corresponding values
Graph
A data structure consisting of a set of vertices/nodes connected by a set of edges/arcs
Hash Tables
A data structure where a hashing algorithm creates a mapping between keys and values. The data item can then be directly accessed by recalculations, without any search
Queues
A first-in-first-out (FIFO) data structure. The first item is added/pushed on to the queue is the first to be removed/popped off
Stacks
a last-in-first-out (LIFO) data structure. The last item added/pushed will be the first to be removed/popped off
Static Stucture
A data structure that is allocated a fixed amount of memory space, which does not change throughout the execution of the program.
Trees
A data structure that uses a set of linked nodes to form a hierarchical structure starting at a root node, Each node is a child/sub node of a parent node