Problem Solving Flashcards

1
Q

Define problem

A

A problem can be regarded as a difference between a desired situation and reality

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

Define problem solving

A

the process of finding a solution for a problem

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

Define algorithm

A

a set of instructions written in a logical sequence that produces a solution to a problem.

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

The 2 phases of problem solving

A

problem solving phase (algorithm phase) and implementation phase

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

Steps in problem solving

A

identify/define the problem -> propose and evaluate solution -> determine the most efficient solution -> develop and represent algorithm -> test and validate solution

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

Divide and conquer approache

A

divide the problem into subproblems and conquer each subproblem before combining the solutions to a solution for the original problem

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

Ways to represent an algorithm

A

narrative, pseudocode, flowchart

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

Characteristics of an algorithm

A

concise, unambiguous, must terminate, unique, receives inputt, produces output, effective

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

Variables

A

can be changed eg: num1, age, product, total, length

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

Constant

A

does not change eg: pi, avogadro law, tax

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

Data types

A

specifies which type of value is stored in a variable eg: integer, float/real, string, character, boolean

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

Defining diagrams

A

a table with 3 columns: Input, processing, output

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

Input

A

The source of data provided. Can be identified by: given, read, accept

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

Processing

A

A list of actions to be performed to achieve required output (includes input and output)

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

Output

A

The end result which can be identified by: print, display, output

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

Implementation Phase

A

translate algorithm into a programming language, execute program on computer, maintain program