1/62
Looks like no tags are added yet.
Elementary data type
Base level - lowest form of data.
Structured data type
Data type made of other data types.
Static data structure
Cannot change size after initialization.
Dynamic data structure
Can change size after initialization.
Array
A static data structure where all elements are the same data type.
Index
Position of an element in a data structure.
Multi-dimensional array
An array within an array.
Element
One value/item in a data structure.
Record
An immutable static data structure of mixed data types (could be a tuple, could be an object).
Tuple
An immutable static data structure of mixed data types.
Immutable
Elements cannot be changed after initialization.
Composite data type
Data type made of other data types.
Abstract data type
Data type that does not physically exist - but is constructed out of other data structures.
Queue
Abstract FIFO static data structure where items are removed from the front and added to the rear.
Circular queue
Abstract FIFO static data structure where dequeued slots are reused (using MOD to change pointer).
Priority queue
Abstract FIFO dynamic data structure where items are enqueued in order of priority.
First In, First Out (FIFO)
Items are removed in order of entry.
Enqueue
Add item to the end of a queue.
Dequeue
Remove and return item from start of queue.
isEmpty
Check if queue is empty (size == 0).
isFull
Check if queue is full (size == maxSize).
List
An abstract dynamic data structure which is mutable and contains mixed data types.
Linked list
A dynamic abstract data structure implemented using nodes (data/pointer pairs).
Append
Adds an item to the end of the list.
Push
Adds an item to the end of the list.
Pop
Remove an item from the end of a list (or by position if passed in).
Stack
Abstract LIFO data structure where items are added to and removed from the top.
Last In, First Out (LIFO)
The last item added is the first item to be removed.
Call stack
System level data structure used for calling functions and managing return addresses and parameters.
Stack frame
Parameters, return addresses and local variables of one function call.
Parameter
Value passed into a function.
Return address
Location in memory where the result of a function is stored.
Heap
Memory allocated for use by dynamic data structures.
Overflow
Attempting to push onto a stack that is full.
Underflow
Attempting to pop from a stack that is empty.
Stack overflow error
When a program tries to add a stack frame onto a full call stack (no memory left available).
Hashing
Creating an address out of a key to be placed in a hash table (typically use mod).
Hash table
Result of a hashing algorithm - abstract data structure where addresses for data are assigned by hashing.
Collision
When a hashing algorithm generates an address for a key that is already in use.
Mid-square method
Square the key, find middle two values and mod by table size.
Folding method
Divide into equal parts, add parts together, mod result by table size.
Dictionary
Data structure made up of key:value pairs.
Graph
Abstract data structure representing complex relationships.
Edge
Line that connects nodes.
Arc
Line that connects nodes.
Vertex
Data within a graph/tree.
Node
Data within a graph/tree.
Directed graph
A graph where the edges point in only one direction.
Digraph
A graph where the edges point in only one direction.
Undirected graph
A graph where the edges are bidirectional (point in both directions).
Weighted edge
An edge which has a value associated with it.
Adjacency matrix
2D list used to represent a graph.
Adjacency list
Dictionary used to represent a graph.
Tree
Abstract data structure which is a graph with no cycles.
Root
Starting node, has no parent nodes.
Child
Has a parent node.
Parent
Has a child node.
Subtree
Subsection of a larger tree.
Leaf node
Node with no further child nodes.
Binary search tree
Tree where each node can only have a maximum of two children.
Pre-order traversal
Root, left subtree, right subtree.
In-order traversal
Left subtree, root, right subtree.
Post-order traversal
Left subtree, right subtree, root.