Comp1-Problem solving(utter bs) Flashcards

1
Q

define computation?

A

the act or process of calculating or determining something by mathematical or logical or interactive methods.

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

define computability

A

measures what can and cannot be computed

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

What is abstraction?

A

USung the right level of thinking for the problem. communicating complex ideas simply How can we break up problems logically

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

what is automation?

A

automating an abstraction. a programmer turning an algorithm into a computer program for a computer to solve.

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

What is AI

A

artificial intelligence. A branch of computing that studies the use of computes to preform processes normally associated with the human intellect.

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

What is an algorithm?

A

A well defined, finite sequence of instructions designed to solve a specific problem independent of programming language

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

what is deterministically?

A

without guessing the at a solution before confirming it.

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

Whats the purpose of an algorithm

A

to communicate a computation to humans. (not computers)

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

what is a program?

A

A description in a programming language that when runs achieves something useful.

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

What is a given?

A

The initial situation

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

why are algorithms and computer programs different?

A

A algorithm is a description of a process with no programming language. This can be programmed into many different languages (programs)

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

What is a problem?

A

a give where it is not immediately obvious how to reach the goal.

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

What are resources?

A

things that can be used to real goal and impose constraints.

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

Understanding a problem means….

A

turning a ill defined problem into a well defined problem stated clearly.

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

What are the four things a well defined problem has?

A

Constraints and resources, givens , a goal and ownership.

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

What is a goal?

A

a desired outcome.

17
Q

What is defining boundary’s

A

establishing the limits or rules about what can and cannot be done when solving a problem. These limits are a type of constaint.

18
Q

What is lateral thinking?

A

used to establish facts and rules, challenge assumptions, and define the boundaries of problem solving.

19
Q

what is ownership?

A

Who is involved in planning and carrying out the solution.

20
Q

what is top down design?

A

breaking aproblem down into smaller problems that are easier to work on.

21
Q

What is a module?

A

a self contained entity that results when a problem is divided into subproblems (by top down design) . each module is a sub problem.

22
Q

What is stepwise refinement?

A

The process of breaking a problem down through successive steps into smaller problems.

23
Q

What is a structure table?

A

an indented, numbered list of steps produced by stepwise refinement.

24
Q

how would you use lateral thinking?

A

Identify the assumptions youve made and challenge them. establish the real facts.

25
Q

why is lateral thinking useful in problem solving?

A

It tells you the true facts and boundaries.

26
Q

The four steps of carrying out a plan of action?

A

-Reflect on a solved problem, how can this help? -define the problem , plan a solution -Analyse your steps and results, are there now more problems? -Stop working on it, you might need more knowledge or its unsolvable.

27
Q

how would you use step wise refinement?

A

Start with a bigger problem and break it intoi successivly smaller problems. Eq travelling from a city to another step one is which city you go though step 2 is which roads youre on between thoes citys.

28
Q

how do you plan a solution?

A
  • What strategies will u apply? -What resources will u use? -How will these be used? - what order will u use them? -Are these resources adequate enough?
29
Q

How do you make a program easy to understand?

A

Indentation, suitable variable names, procedures and functions, local variables.

30
Q

What is hand-race, desk check or dry run?

A

A careful step by step simulation on paper of how an algorithm would be executed by a computer.

31
Q

What are the three constructs of that are used to construct any algorithm ?

A

-Sequence = consecutive steps processed one after each other. -Selection= a decision making step -Repetition/iteration = a step/sequence of steps that are repeated until a condition is satisfied.

32
Q

four major steps in solving a computer problem?

A

Identify inputs identify outputs determine variables derive the algorithm

33
Q

what is psudocode?

A

code that resembles a programming language but uses less strict syntax to express an algorithm and is independent of any real programming language.

34
Q

what is assignment?

A

an operation that assigns a value to a variable.

35
Q

What are identifiers?

A

names given to variables , procedures and functions.

36
Q

What is the routine interface?

A

the part of the procedue/function that list the parameters and is used to pass data in and out the routine.

37
Q

the diagram of the systems development life cycle.

A