Fundamentals of Data Structures- Definitions Flashcards

1
Q

Data Structures

A

A format used to store, organise and manage data in a way that allows efficient access and modification for the needs of the program

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

Arrays

A

A data strucuture for storing a finite, ordered set of data of the same data type within a single identifier.

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

Multi-Dimensional Array

A

An array where each data item is located using multiple indices

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

Single-Dimensional Array

A

An array where each data item can be located using a single index

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

Binary file

A

An organised collection of records where data is stored in binary

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

Fields

A

A single item of data

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

Records

A

A data structure that stores multiple fields, organised based on attributes, within a single line of a file

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

Text file

A

An organised collection of records where data is stored in human readable characters

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

Dictionaries

A

A data structure consisting of set of keys that mapped to their corresponding values

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

Dynamic Structures

A

A data structure whose memory allocation size canchange throughout the executuion of the program

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

Graphs

A

A data strucuture consisting of a set of vertices/modes by a set of edges/arcs

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

Hash Table

A

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.

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

Queues

A

A FIFO data structure. The first item added pushed on to the queue is the first to be removed/ popped off

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

Stacks

A

A LIFO data structure. The last item added is the first to be removed.

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

Static structures

A

A data structure that is aloocated a fixed amount of memory space

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

Trees

A

A data structure that usese a set of linked nodes to form a hierarchical structure starting at a root node. Each node is a sub node/ child of the parent node

17
Q

Vectors

A

A data strucuter representing a quantity with both magnitude and direction. It can be represented as a list, function or geometric point.

18
Q

Peek/Top

A

An operation that allows the user to view the top element of the stack without modifying it

19
Q

Pop

A

An operation that removed the most recently added element that was not yet removed from the stack

20
Q

Push

A

An operation that adds an element to the top of the stack

21
Q

Adjacency Matrix

A

A matrix representation of a graph that stores the edges connecting all possible nodes

22
Q

Adjancency List

A

A representation of a graph by storing a list of connected nodes to each node

23
Q

Directed graphs

A

A graph where the order of the vertices paired in an edge matter. The edges are one way

24
Q

Edge/Arc

A

A connection that represents a relationship between two nodes

25
Q

Undirected graph

A

A graph where the order of the vertices paires in an edge does not matter. The edges and bidirectional

26
Q

Vertex/ Node

A

The representation of an object on a graph that is capable of being related to other such objects

27
Q

Weighted graphs

A

Where each edge/arc has an associated value (known as its weight)

28
Q

Binary Trees

A

A rooted tree in which each node has, at most, 2 children

29
Q

Rooted Trees

A

A tree in which one node has been designated as the root

30
Q

Root Node

A

The only node in a rooted tree withot a parent

31
Q

Trees

A

A connected, undirected graph with no cycles

32
Q

Collisions

A

The phenomenon when two key values compute to the same hash

33
Q

Hashing Algorithm

A

An algorithm that calculates a value to determine the unique index where a data item is to be stored in a hash table

34
Q

Rehashing

A

The process of rerunning the hashibg algorithm in the event of a collision