Fundamentals of Data Structures Flashcards

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

How many pointers do linear queues have?

A

Two: Front and rear

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

What is FIFO?

A

First in, first out

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

What does LIFO mean?

A

Last in, first out

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

What data structures are queues based on?

A

Arrays

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

Which abstract data structure uses FIFO?

A

Stacks

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

Which abstract data structure uses LIFO?

A

Queues

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

What is an abstract data structure?

A

Data structures that don’t exist as data structures in their own right, they make use of other data structures to form a new way of storing data

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

What is an array?

A

A finite, indexed set of related elements of the same data type

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

If two items in a priority queue have the same priority, what order are they removed in?

A

FIFO

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

A = [4,5]
B = [5,3]
What is ab?

A

(4x5) + (5x3) = 35

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

What procedure adds an item onto a stack?

A

Push

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

What procedure removes an item from a stack?

A

Pop

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

How many pointers do stacks have?

A

One: at the top

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

What is best suited for dense graphs:
Adjacency matrices or adjacency lists?

A

Adjacency matrices

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

What is meant by a tree?

A

A connected, undirected graph with NO cycles

17
Q

If viewed as a list of numbers, which data structure can represent a vector?

A

1D Array

18
Q

What occurs when two values produce the same hash?

A

Clustering (Preferred word by AQA)
OR
A collision

19
Q

What is a dictionary?

A

A collection of key-value pairs

20
Q

What type of data structures are fixed in size?

A

Static data structures

21
Q

How is the translation of vectors achieved?

A

Vector addition