Fundamentals of data structures Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a one-dimensional array?

A

An indexed set of related elements all of the same data type.

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

What is a two-dimensional array?

A

An array that has rows as well as columns of elements

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

What is a dynamic data structure?

A

A data structure that changes size according to how much data is in it

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

What is a static data structure?

A

A data structure that has a fixed size

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

What is a stack?

A

A data structure that follows the LIFO system

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

What is a queue?

A

A data structure that follows a FIFO system

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

What is a circular queue?

A

A queue that the front and rear pointers can move over the two ends of the queue.

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

What is a priority queue?

A

A queue in which items are assigned a priority.

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

What is a graph?

A

An abstract data structure used to represent complex relationships between items in datasets

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

What are nodes on a graph?

A

A node contains the actual data being stored

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

What are vertices on a graph?

A

A vertice connects nodes on a graph

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

What is the difference between an adjacency list and an adjacency matrix?

A

An adjacency matrix details each and every single connection on a graph (including unconnected ones) whereas an adjacency list only records existing connections.

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

What is a tree?

A

A tree is a connected, undirected graph with no cycles

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

What is a binary tree?

A

A binary tree is a tree that only has 2 children per node.

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

What is a hashing algorithm?

A

An algorithm that takes an input and returns a hash. The hash is unique and cannot be reversed.

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

What is a dictionary?

A

A collection of key-value pairs in which the value is accessed by its associated key.