Workshop 1 Flashcards

1
Q

Data Structures - 2 parts

A

Collection of elements, either data type or another data structure.

Set of associations or relationships, involving collection of elements.

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

Algorithim

A

Sequence of steps that takes an input and and output.

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

Candidate Solutions

A

Different Algorithms.

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

Linear Structure

A

Unique predecessor and unique successor.

e.g. stack, queue

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

Hierarchal Structure

A

Unique predecessor and many successors.

eg. management structure, family tree

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

Graph Structure

A

Many predecessors and many successors.

eg. railway map, computer network.

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

Set Structure

A

No predecessors and no successors.

eg. YOU (students studying this unit)

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

ADT

A

Abstract Data Type

Data collection and associated methods stored in a single module.

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

ADT data

A

Cannot be accessed directly, data is accessed indirectly through methods.

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

ADT details

A

High Level Description.

Concerned with WHAT it can do.

Implementation Independent.

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

Data Structure Details

A

Concrete Description.

Concerned with HOW task is done.

Implementation dependent.

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

Stack ADT

A

Collection of objects where most recently inserted objects can be removed at anytime.

Linear Data Structure, Last-In First-Out.

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

Stack ADT types

A

Push - Add an item on top of stack
Pop - Remove an item on top of stack
Peek - Examine item at top of stack
Empty - Determine if stack is empty.
Full - Determine if stack is full.

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

Stack ADT will expect the ADT to throw an exception if:

A

Push operation is requested on full stack.

Pop/peek operation is requested on an empty stack.

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

Application using ADT Stack is not…

A

concerned with way storage stack is managed.

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

An ADT is not…

A

inserted in the application using the ADT.

17
Q

Stack ADT is a

A

fixed size array.

18
Q

ADT methods require

A

Push
Pop
Peek

19
Q

Application of a Stack

A

Matching bracket in arithmetic expressions.

20
Q

Queue ADT

A

collection of objects organised such that the object that has been stored in the queue the longest is the next one removed.

a queue is a linear data structure with elements.

21
Q

Probabilistic data structure

A

designed to handle large-scale or streaming data efficiently by sacrificing some accuracy for reduced space and time complexity.

e.g

22
Q

A BLANK follows the first in first out (FIFO) principle

A

A QUEUE follows the first in first out (FIFO) principle

23
Q

A BLANK follows the first in last out (FILO) principle.

A

A STACK follows the first in last out (FILO) principle.