Data Structures Flashcards

1
Q

Abstract Data Type (ADT)

A

a data type whose properties are specified independently of any particular programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Contiguous Memory Locations

A

memory locations for consecutive blocks of memory for a file/process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Data Cube

A

another word for tuple, a three-dimensional array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data Model

A

a method of describing the data, its structure, the way it is interrelated and the constraints that apply to it for a given system or organisation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Directed Graph

A

a diagram consisting of vertices, joined by directed edges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Dot Syntax

A

involves adding a dot after the structure name, which makes the IDE display all available options

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Dynamic Data Structure

A

data structure with no fixed size, prevents memory being wasted but is harder to program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

FIFO

A

First In First Out

items are always removed from the front and added at the back

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Hash Table

A

a data structure that stores data in an associative manner, where each item maps to another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Immutable

A

where data values are fixed and cannot be changed over time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Labelled or Weighted Graph

A

graph in which the edges are labelled or given a value called its weight

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

List

A

a dynamic data structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Linear List

A

a one-dimensional list with separate entries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Linked List

A

dynamic data structure where data is not necessarily stored in order or in contiguous memory locations, a multi-dimensional list where each entry has a link to the next

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Tree

A

a hierarchical data structure used to represent and organised data in a way that is easy to navigate and search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Binary Tree

A

a tree where each node can only have two children, referred to as left child and right child

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Booking Tree

A

a tree use specifically for searching

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Hierarchical Tree

A

often more interlinked than other forms of tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Queue

A

a FIFO data structure with pointers indicating the front and back, though the rear pointer may indicate the next free space instead of the last item in the queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Circular Queue

A

a type of queue that is extended so that the first element is connected to the second element; unless full, a circular queue loops back to the beginning when the end of the queue is recorded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Linear Queue

A

generally referred to as just as queue, operates as a FIFO dynamic data structure

22
Q

Magnitude

A

also known as the absolute value, can be found by taking a negative binary number and switching all the 1s to 0s and all the 0s to 1s

23
Q

Enqueue

A

adding to a queue. Before anything can be added, queue_size must be less than max_size, then the rear pointer is moved on one

24
Q

Dequeue

A

removing from a queue. Before anything can be removed, it must first be ascertained if the queue is empty, in which case, an underflow error must be generated

25
Dot Syntax
involves adding a dot after the structure name, which makes the IDE display all available options
26
Multi-Dimensional Array
array with many dimensions
27
List
one-dimensional array
28
Table
two-dimensional array
29
Tuple
three-dimensional array
30
Series
a set of instructions or data with no specific order
31
Sequence
a set of instructions or data with a specific order
32
Stack
a dynamic data structure operating Last In First Out
33
Static Data Structure
have a fixed size, cannot change whilst program runs, should use constants
34
Array
used to store a collection of related information in contiguous memory locations when all data is of the same type, must be declared so space can be reserved in memory and the name, data type and maximum size must be declared
35
Record
a static data structure which contains a collection of related data items, an be fixed or variable length, can contain data of different types and are accessed using dot syntax
36
Heap
data structure used when it is necessary to repeatedly remove the object with the highest priority
37
Monolithic Array
a self-contained application that handles all aspects of that particular application from the user interface
38
Pointer
a variable that contains a memory address by pointing to the memory location with that address
39
Pointer Type
variable of pointer type that stores an address of a data value
40
Popping
removing items from a top, always from a top
41
Priority Queue
queue with items in priority order as the queue sorts items into priority order before executing
42
Pushing
adding items to a stack, always at the top
43
Semi-Structured Data
data that does not follow conventional structures, but is structured
44
Stack Pointer
points to the top of the stack, is incremented when items are pushed onto the stack or decremented when items are popped off the stack, when the stack is empty, the pointer equals -1 or null
45
Structured Data
data in established record formats
46
Tabular Data
refers to data that is organized in a table with rows and columns
47
Traveller's Problem
solution finds a route that visits each city exactly once before returning to the starting point
48
Unstructured Data
data that is not within an established record format, includes comments on social media, images within a video stream
49
User Space
refers to all code that runs outside the operating system’s kernel
50
Volumetrics
measurement or assessment of the volume of data that a system will be required to process and store
51
Nodes
items in a list containing data and a pointer to the next item