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

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
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 data structure separated by commas

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

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
Q

Dot Syntax

A

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

26
Q

Multi-Dimensional Array

A

array with many dimensions

27
Q

List

A

one-dimensional array

28
Q

Table

A

two-dimensional array

29
Q

Tuple

A

three-dimensional array

30
Q

Series

A

a set of instructions or data with no specific order

31
Q

Sequence

A

a set of instructions or data with a specific order

32
Q

Stack

A

a collection of independent components that work together to support the execution of an application

33
Q

Static Data Structure

A

have a fixed size, cannot change whilst program runs, should use constants

34
Q

Array

A

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
Q

Record

A

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
Q

Heap

A

data structure used when it is necessary to repeatedly remove the object with the highest priority

37
Q

Monolithic Array

A

a self-contained application that handles all aspects of that particular application from the user interface

38
Q

Pointer

A

a variable that contains a memory address by pointing to the memory location with that address

39
Q

Pointer Type

A

variable of pointer type that stores an address of a data value

40
Q

Popping

A

removing items from a top, always from a top

41
Q

Priority Queue

A

queue with items in priority order as the queue sorts items into priority order before executing

42
Q

Pushing

A

adding items to a stack, always at the top

43
Q

Stack Pointer

A

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

44
Q

Tabular Data

A

refers to data that is organized in a table with rows and columns

45
Q

Traveller’s Problem

A

solution finds a route that visits each city exactly once before returning to the starting point

46
Q

User Space

A

refers to all code that runs outside the operating system’s kernel

47
Q

Volumetrics

A

measurement or assessment of the volume of data that a system will be required to process and store

48
Q

Nodes

A

items in a list containing data and a pointer to the next item