General Flashcards

1
Q

What is the term for groups of similar data?

A

Compound Data

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

What are the two types of Access principles for Data Structures?

A
  1. Random Access

2. Sequential Access

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

Define Random Access.

A

Where each element can be accessed directly and in constant time. E.g Accessing an element in an array. The other elements of the array do not play a role in the access function.

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

Define Sequential Access.

A

Elements can only be accessed in a particular order. Each element is dependent on the others and may only be obtainable though those other elements. E.g. Accessing an element in a Tree structure. You must navigate through parent nodes in order to get to the desired element. This means most of the time access operations will NOT be instantaneous.

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

Provide a real-life analogy of Random Access.

A

A book. Getting the information from a certain page doesn’t depend on all the other pages within that book.

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

Provide a real-life analogy of Sequential Access.

A

A tape measure. To get to inch 72 you first have to go through inches 1 through 71 first.

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

What is another name for Sequential Access Data Structures.

A

Limited Access Data Structures.

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

What is the LIFO access principle? And give an example of a Data Structure that uses it.

A

Last In, First Out. Stack

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

What is the FIFO access principle? And give an example of a Data Structure that uses it.

A

First In, First Out. Queue.

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