Topic 4 Flashcards

1
Q

What is the role of sub-procedures in problem solving?

A

Sub-procedures help break down complex problems into manageable parts.

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

When is decision making required in a specified situation?

A

When there are multiple options or paths to consider.

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

What decisions are required for the solution to a specified problem?

A

Decisions related to the steps and methods to be used in solving the problem.

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

What does the term ‘condition’ refer to in decision-making?

A

The specific circumstances or criteria that must be met for a decision to be valid.

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

What is the relationship between decisions and conditions in a system?

A

Decisions depend on conditions being met to proceed.

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

What are logical rules in real-world situations?

A

Rules deduced from observations that guide decision-making.

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

What are inputs and outputs in a solution?

A

Inputs are the data required to process, and outputs are the results produced.

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

What is pre-planning in problem solving?

A

Identifying necessary steps before executing a solution.

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

What is the difference between sequential and concurrent tasks?

A

Sequential tasks occur one after another, while concurrent tasks happen simultaneously.

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

What is a Gantt chart?

A

A tool used to track events and schedules.

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

Give an example of pre-planning in real life.

A

Pre-ordering a game before its actual release.

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

Why are pre-conditions important when executing an algorithm?

A

They ensure that necessary requirements are met before execution.

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

What are pre-conditions and post-conditions in a problem?

A

Constraints that define the state of the system before and after execution.

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

What is an example of an exception to consider in a problem solution?

A

Calculating the end-of-year bonus when not all employees have worked the entire year.

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

What does it mean for parts of a solution to be implemented concurrently?

A

It means two or more processes occur at the same time.

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

How can concurrent processing solve a problem?

A

By increasing computation speed and allowing simultaneous task handling.

17
Q

What factors should be evaluated when deciding on concurrent processing?

A

1) Time savings
2) Cost implications
3) Physical feasibility
4) Consequences of non-concurrency

18
Q

What is the definition of abstraction in computer science?

A

The process of simplifying complex systems by focusing on essential characteristics.

19
Q

Why is abstraction necessary in computational solutions?

A

It helps manage complexity and allows focus on essential aspects of a problem.

20
Q

What are the four key standard algorithms for linear arrays?

A

1) Sequential search
2) Binary search
3) Bubble sort
4) Selection sort

21
Q

What is a sequential search?

A

An algorithm that finds an item in a list by checking each element in order.

22
Q

Describe how a binary search works.

A

It compares the target value to the middle element and eliminates half the array.

23
Q

What is bubble sort?

A

An algorithm that repeatedly steps through a list, swapping adjacent items if they are in the wrong order.

24
Q

What is selection sort?

A

An algorithm that divides the list into sorted and unsorted sublists, finding the smallest element to place in the sorted list.

25
Q

What should be discussed when analyzing an algorithm?

A

The differences between standard and novel algorithms, including their advantages and disadvantages.

26
Q

What does it mean to analyze an algorithm presented as a flow chart?

A

It involves tracing the algorithm and assessing its correctness.

27
Q

What is the definition of algorithm complexity?

A

A measure of the time and/or space required by an algorithm for a given input size.

28
Q

What is the difference between best case, worst case, and average case in algorithm analysis?

A

Worst Case: Maximum run time
Best Case: Optimistic scenario
Average Case: General behavior measure

29
Q

What are iterations in the context of algorithms?

A

The number of times a particular step in an algorithm is performed.