Chapter 2 Flashcards

Algorithm

1
Q

Algorithm

A

An EFFECTIVE procedure for solving a problem
in a FINITE number of steps.

OR

A finite list of instructions on how to perform a task

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

Properties of Algorithm

A

– The actions to be executed
– It must result in a finite series of actions.
– The order in which these actions are to be executed.
– The sequence terminates with a solution

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

Algorithm can be represented by

A

Flowchart,
Pseudocode,
Decision Table,
N-S Diagram

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

Flowchart

A

A GRAPHICAL REPRESENTATION of FINITE series of ACTIONS

OR

A graphical representation of an algorithm
or of a portion of an algorithm.

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

Basic Structures

A

Basic unit of programming language

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

Sequence (In order)

A
  • Perform actions in order

* No branching or skipping any task

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

Selection (decision)

A
  • Ask a question, take one of two actions

* Dual-alternative or single-alternative

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

Loop (Repetition)

A

• Repeat actions based on answer to a question

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

Pseudocode

A

An artificial and informal language that helps programmers to develop algorithm.

OR

A convenient informal language yet user friendly that helps programmers to develop algorithm.

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

Decision Tables

A

A precise yet compact way to model complicated logic.

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

N-S Diagram

A

A diagrammatic approach to algorithm design

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

Desk Checking

A

Process of testing can be done by execute the steps in

algorithm

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

Selection structures

A

– Single selection
– Two selections
– Multi selections

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