Algorithms Topic 1 KO

0.0(0)
studied byStudied by 5 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

What is an algorithm?

An algorithm is a sequence of ordered instructions that are followed step-by-step to solve a problem. This does not need to be on a computer.

2
New cards

What is decomposition?

Decomposition is the breaking down of a complex problem into
smaller more manageable problems that are easier to solve

3
New cards

What is abstraction?

Abstraction allows us to remove unnecessary detail from a problem
leaving us with only the relevant parts of a problem thereby making
it easier to solve.

4
New cards

What is algorithm efficiency?

More than one algorithm can be used to solve the same problem. Normally we use the algorithm that solves the problem in the quickest time with the fewest operations, or makes use of the least amount of memory.

5
New cards

What are trace tables?

The purpose of the trace tables is for the programmer to track the value of the variables and outputs at each step of the program and to track how they change throughout the running of the program.

6
New cards

Start Stop

knowt flashcard image
7
New cards

Input / Output

knowt flashcard image
8
New cards

Process

knowt flashcard image
9
New cards

Decision

knowt flashcard image
10
New cards

Arithmetic Operators

Add
Multiply
Divide
Subtract
Integer division
Modulus (remainder)

11
New cards

Relational operators

Less than
Greater than
Equal to
Not equal to
Less than or equal to
Greater than or equal
to

12
New cards

Boolean Operators

AND
OR
NOT

13
New cards

If pseudocode

knowt flashcard image
14
New cards

if else pseudocode

knowt flashcard image
15
New cards

if, else if, else pseudocode

knowt flashcard image
16
New cards

What are the three loops in pseudocode?

WHILE
FOR
REPEAT UNTIL