CS-4 (LESSON 1) Flashcards

1
Q

Problem Solving: Main Steps

A

Problem definition

Algorithm design / Algorithm specification

Algorithm analysis

Implementation

Testing

[Maintenance]

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

What is the task to be accomplished?

What are the time / space / speed / performance requirements ?

A

Problem Definition

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

Describe: in natural language / pseudo-code / diagrams / etc.

A

Algorithm Design / Specifications

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

Finite set of instructions that, if followed, accomplishes a particular task.

A

Algorithm

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

Space complexity

Time complexity

Often, we deal with estimates!

A

Algorithm Analysis

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

How much space is required

A

Space complexity

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

How much time does it take to run the algorithm

A

Time complexity

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

is a procedure (a finite set of well-defined instructions) for accomplishing some tasks which,
given an initial state
terminate in a defined end-state

A

algorithm

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

The computational complexity and efficient implementation of the algorithm are important in computing, and this depends on suitable data structures.

A

Computer Algorithms

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

Decide on the programming language to use
C, C++, Lisp, Java, Perl, Prolog, assembly, etc. , etc.
Write clean, well documented code

A

Implementation

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

Integrate feedback from users, fix bugs, ensure compatibility across different versions

A

Maintenance

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

Criteria to follow:

A

Input

Output

Definiteness

Finiteness

Effectiveness

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

Zero or more quantities (externally produced)

A

Input

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

One or more quantities

A

Output

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

Clarity, precision of each instruction

A

Definiteness

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

The algorithm has to stop after a finite (may be very large) number of steps

A

Finiteness

17
Q

Each instruction has to be basic enough and feasible

A

Effectiveness