Lesson 1: Overview of Data Structures Flashcards

1
Q

Most used in defining algorithms which is an English-like representation of the algorithm logic

A

Pseudocode

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

Can be used to represent both data structures and code

A

Pseudocode

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

Used to describe an algorithm

A

Pseudocode

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

A set of instructions designed to perform a specific task

A

Algorithm

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

In computer programming, these are often created as functions. These functions serve as small programs that can be referenced by a larger program.

A

Algorithm

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

What are the components of an algorithm? (clue: HPRNVCA)

A

Algorithm HEADER
PURPOSE, Conditions and Return
Statement NUMBERS
VARIABLES
Statement CONSTRUCTS
Algorithm ANALYSIS

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

What are the uses of algorithm? (clue: RPM)

A

Real-world data storage
Programmer’s tools
Modelling

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

A set of instances or values

A

Data Objects

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

Examples of Data Objects (clue: LDBNIS)

A

Letter
Digit
Boolean
Natural Number
Integer
String

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

[Data Objects] A, B, C, …, Z, a, b, c, …, z

A

Letter

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

[Data Objects] 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,

A

Digit

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

[Data Objects] true, false

A

Boolean

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

[Data Objects] 0, 1, 2, 3, …

A

Natural Number

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

[Data Objects] 0, ±1, ±2, ±3, …

A

Integer

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

[Data Objects] a, b, …, aa, ab, ac, …

A

String

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

Types of Data (clue: PC)

A

Primitive (Atomic) Data
Composite Data

17
Q

[Types of Data] Each instance of the data object cannot be further be decomposed

A

Primitive (Atomic) Data

18
Q

Individual instances of a data object called as ______

A

Elements

19
Q

[Types of Data] Can be broken out into subfields but still have meaning

A

Composite Data

20
Q

Two Parts of Data Type (clue: SO)

A

a SET of data
the OPERATIONS that can be performed on the data

21
Q

Three basic data types that can be found in all systems (clue: IFC)

A

Integer
Floating Point
Character

22
Q

A data object together with the relationships that exist among the instances and among the individual elements which compose an instance

A

Data Structure

23
Q

An aggregation of atomic and composite data into a set with defined relationships

A

Data Structure

24
Q

_____ means a set of rules that holds the data together

A

Structure

25
Q

Example of data structure:

A

array
record

26
Q

For the most data structures, it must know to do the following: (clue: ISDTSR)

A

INSERT a new data element
SEARCH for a specified element
DELETE a specified element
TRAVERSE through all the elements
SORT elements
RECURSION

27
Q

A special kind of data type whose behavior is defined by a set of values and set of operations

A

Abstract Data Type (ADT)

28
Q

A declaration packaged together with the operations that are meaningful for the data type which encapsulate the data and the operations on the data, then hide from the user

A

Abstract Data Type (ADT)

29
Q

ADT Implementations (clue: AL)

A

Array Implementation
Linked List Implementation

30
Q

the sequentiality of a list is maintained by the order structure of elements in the array, also known as indexes

A

Array Implementation

31
Q

an ordered collection of data in which an element contains the location of the next element or elements

A

Linked List Implementation

32
Q

Two parts of an element in a linked list (clue: DL)

A

DATA
one or more LINKS