CC4 Mid 1, 2, 3 Flashcards

1
Q

Get me from home to work​

Balance my checkbook​

Simulate a jet engine​

Graduate from SPU

A

Solving Problems

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

Designing programs (architecture, algorithms)​

Writing programs​

Verifying programs​

Documenting programs​

A

Using a computer to help solve problems

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

Data Structure and Algorithm Design Goals

A

Correctness
Efficiency
Robustness
Reusability
Adaptability

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

A computer is a machine that manipulates data.​

The prime aim of data structure includes to study how data is organized in a computer, how it is manipulated, how it is retrieved, and how it can be utilized, resulting in more efficient programs.​

A

Data Representation

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

the concealing of the implementation details of data object from the outside world​

A

Data Encapsulation or Information Hiding

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

the SEPARATION between specification of a data object and its implementation​

A

Data Abstraction

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

a collection of objects and set of operations that act on those objects​

Primitive ​

Composite​

A

Data Type

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

Data may be organized in many different ways, the logical or mathematical model of a particular organization of data in memory or on disk is called

A

Data Structure

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

are used for manipulation of data.​

A

Algorithms

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

Accessing each record exactly once so that certain items in the record may be processed.(This accessing or processing is sometimes called ‘visiting” the records.)​

A

Traversing

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

FINDING the location of the record with a given key value, or finding the locations of all records, which satisfy one or more conditions.​

A

Searching

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

Adding new records to the structure.​

A

Inserting/Append

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

Removing a record from the structure.​

A

Deleting

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

Used by OS, compilers, DBMS, data communications​

Image processing, digital signal processing, simulations, numerical computations, cryptography, data compressions and genetic studies​

A

Usage of Data Structures / Data Structures +Algorithm

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

Mainly to represent data containing a hierarchical relationship between elements

A

Tree
Graph

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

Its elements form a sequence or in other words a linear list.

A

Array
Stack
Queue
Linked List

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

Quick insertion, very fast access if index is known

A

Arrays

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

Quicker search than unsorted array.

A

Ordered Array

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

Provides last in first out access

A

Stack

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

Provides first in first out access

A

Queue

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

Quick insertion and quick deletion

A

Linked List

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

Quick search, insertion and deletion if tree remains balance

A

Binary Trees

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

Very fast access if key known, Fast insertion

A

Hash Table

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

Fast insertion, deletion. Access to largest item

A

Heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Models real world situation
Graph
26
Zero or more quantities are externally supplied
Input
27
At least one quantity is produced​
Output
28
Each instruction is clear and unambiguous
Definiteness
29
If we trace out the instructions of an algorithm, then, for all cases, the algorithm terminates after a FINITE number of steps​
Finiteness
30
every instruction must be basic enough to be carried out, in principle, by a person using only pencil and paper. Its not enough that each operation be definite as in (3): it also must be feasible.​
Effectiveness
31
must be well defined and unambiguous (what about portability?)​
Natural Language
32
flowcharts (only for small and simple algorithms)​
Graphic Representation
33
low level implementation must be ​ removed and replaced by natural language​
Programming languages
34
'Any program that can be written using assignment,​ the if else statement and the while statement can also be written using assignment, if-­else and recursion.'' ​
Theorem
35
the amount of memory needed by a program to​ run to completion​
Space Complexity
36
the amount of computer time needed by a ​ program to run to completion ​
Time complexity
37
a PRIORI estimates; ​
Performance Analysis
38
a POSTERIORI testing.​
Performance Measurement
39
This is a THEORITICAL analysis of an algorithm. Efficiency of an algorithm is measured by assuming that all other factors, for example, processor speed, are constant and have no effect on the implementation.​
A Priori Analysis
40
This is an EMPIRICAL analysis of an algorithm. The selected algorithm is implemented using programming language. This is then executed on target computer machine. In this analysis, actual statistics like running time and space required, are collected.
A Posterior Analysis
41
independent of the characteristics (e.g. number, size) of ​ the inputs and outputs ​ instruction space (space of the code itself) ​ space for constants, ... –​
Fixed Part
42
dependent on the particular problem instance being ​ solved, hence on the inputs and outputs characteristics​ variables whose size depends on inputs/outputs, ​ recursion stacks (when it depends on inputs/outputs).​
Variable Part
43
Types of Analysis
Worst Case Running Time Average Case Running Time Best Case Running Time
44
is the longest running time for any input of size n​
Worst Case Running
45
Often it is assumed that all inputs of a given size are equally likely.​
Average Running Time
46
rarely occurs in practice comparatively with the first and second case.
Best Case Running Time
47
is a way of solving a problem or calculation in less time by using more storage space (or memory), or by solving a problem in very little space by spending a longtime.​
Time Space Tradeoff
48
Is a conclusion of homogenous, ordered, and finite set of elements
Array
49
Implies all elements must be off the SAME TYPE and have the same structure
Homogenous
50
Means that elements are organized in sequence
Finite
51
Are BUILT into a programming language with no extra definition needed in the part of the programmer
Primitive data type
52
T or F An array uses a single variable to represent a large set of homogenous data collection
True
53
T or F An array provides direct access to a storage area for an element
True
54
T or F The elements on an array can be manipulated easily using an index
True
55
T or F It is easy to create and initialize an array
True
56
T or F Arrays are good at implementing iterative algorithms
True
57
T or F Number dimensional arrays facilitate grouping of data collection into hierarchical structure
True
58
T or F Array size cannot be undressed or decreased during runtime
True
59
T or F Insertion and deletion in arrays are not efficient
True
60
For every large data sets the may run out of the storage space
True
61
In an array the position of an element is identified by a variable called
Index
62
The range of values is for the INDEX is referred to as
Index Set
63
Smallest value in of index is called ____ and largest ____
Lower bound, Upper bound
64
Individual elements of an array are identified by an ____ and _____
Array name, array index
65
Represents arrangement of data elements in the MEMORY
Storage structure
66
ADDRESS of the first elements is called
Base address
67
Retrieving, it is also called
Accessing
68
The last element points to
NULL
69
removes all elements of the list (disposes the list)​
Delete List
70
returns the NUMBER of elements in the list​
Count
71
also called as growable array, resizable array, DYNAMIC table, or array list
Dynamic Array
72
Advantage of linked lists is that they can​ be expanded in
constant time
73
Disadvantage of linked lists is 
access time to individual elements
74
function takes a linked list as input and counts the number of nodes in the LIST.​
List Length
75