Algorithms Flashcards

1
Q

What is an algorithm?

A

Definition: An algorithm is a step-by-step procedure or set of instructions designed to solve a specific problem or accomplish a particular task.

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

What is an algorithm?

A

Example: Recipe for baking a cake, instructions for solving a math problem.

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

How can an algorithm be represented?

A

Representation: Algorithms can be represented using various methods, including written instructions, flowcharts, pseudocode, or programming languages.

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

How can an algorithm be represented?

A

Example: Writing a set of instructions for making a sandwich, drawing a flowchart for a simple game.

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

When are algorithms used?

A

Usage: Algorithms are used in various fields, including computer science, mathematics, cooking, and problem-solving.

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

When are algorithms used?

A

Example: Sorting algorithms in computer science, following a recipe in cooking

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

What is a flowchart?

A

Definition: A flowchart is a graphical representation of an algorithm or process, using different shapes and arrows to depict the flow of control.

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

What is a flowchart?

A

Example: Flowchart for a simple game, flowchart for a decision-making process.

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

Iteration

A

Repeating a set of instructions multiple times until a specific condition is met or for a certain number of times.
Sequence: Executing instructions or steps in a specific order, one after another, without any branching or repetition.

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

Selection

A

Making decisions based on certain conditions, where different paths or actions are taken depending on the outcome of those conditions.

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

Sequence

A

Executing instructions or steps in a specific order, one after another, without any branching or repetition.

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

Start/End Symbol:

A

Indicates the beginning or end of a flowchart. Usually represented by an oval shape.

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

Process Symbol:

A

Represents a step or action to be performed. Usually depicted by a rectangle.

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

Decision Symbol:

A

Represents a decision point where a condition is evaluated, and different paths are followed based on the outcome. Often depicted by a diamond shape.

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

Input/Output Symbol:

A

Represents input or output operations, such as reading data or displaying results. Typically shown as a parallelogram.

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