2.1 Algorithm

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:49 PM on 5/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

34 Terms

1
New cards

Decomposition

The process of breaking down a problem into smaller, more manageable sub-problems that each accomplish a specific task.

2
New cards

Abstraction

The process of removing unnecessary details to focus on the essential parts of a problem.

3
New cards

Algorithmic Thinking

The ability to create a clear set of instructions (algorithms) to find the solution to a problem.

4
New cards

Pattern Recognition

The process of identifying similarities or recurring features in problems and solutions.

5
New cards

Inputs

What data the algorithm receives.

6
New cards

Processing

How the data is transformed or calculated during the algorithm.

7
New cards

Outputs

The result or outcome produced by the algorithm, often presented to the user.

8
New cards

Trace Tables

A trace table is used to track the value of variables and how they change as the algorithm runs step by step.

9
New cards

Pseudo-code

A simplified, informal way of describing an algorithm that is closer to human language than programming code, but structured like code.

10
New cards

Program Code

High level programming languages, such as Python.

11
New cards

Flowcharts

Diagrams that use symbols / shapes to represent the steps and decision-making processes of an algorithm.

12
New cards

Line

Used to connect flowchart symbols and determine the flow of the algorithm.

13
New cards

Input / Output

Represented by a parallelogram - used when data is entered or printed out.

14
New cards

Process

Represented by a rectangle - shows an operation being performed, such as a calculation.

15
New cards

Decision

Represented by a diamond - used when a yes/no or True/False question is asked, leading to different paths.

16
New cards

Sub-program

Represented by a rectangle with two vertical lines - refers to a predefined procedure or function.

17
New cards

Terminal (Start / Stop)

Represented by an oval - used at the beginning and end of a flowchart.

18
New cards

Syntax Error

Breaks the rules of the language (won't run) - Example: Missing colon in Python.

19
New cards

Logic Error

Code runs but produces the wrong result (harder to spot).

20
New cards

Searching Algorithms

Step-by-step methods used to find a specific value (target) in a list of data.

21
New cards

Linear Search

Starts at the first item in the list and checks each item one by one until the target is found or the end is reached.

22
New cards

Characteristics of Linear Search

Works on any list - sorted or unsorted; Simple to implement; Slow for large lists.

23
New cards

Binary Search

Can only be used on sorted lists and repeatedly divides the list in half, comparing the middle element to the target.

24
New cards

Characteristics of Binary Search

Much faster than linear search for large, sorted lists; More complex logic to implement; Requires the list to be sorted.

25
New cards

Sorting Algorithms

Methods used to arrange data (usually numbers or strings) into a specific order—typically ascending or descending.

26
New cards

Bubble Sort

A sorting algorithm that repeatedly goes through the list, comparing 2 adjacent items and swapping them if they are in the wrong order, until no swaps are needed.

27
New cards

Characteristics of Bubble Sort

Simple to understand and implement; inefficient for large datasets as it requires multiple passes; takes a long time if the list is in reverse order.

28
New cards

Merge Sort

A divide and conquer algorithm that continuously splits the list in half until each sublist has one item, then merges the sublists back together in the correct order.

29
New cards

Characteristics of Merge Sort

Faster than bubble sort for large datasets; uses more memory due to recursion and temporary lists; more complex to implement.

30
New cards

Insertion Sort

A sorting algorithm that starts at the second item in the list and inserts it into the correct position on its left, continuing with the rest of the items until the list is sorted.

31
New cards

Characteristics of Insertion Sort

Simple to understand and implement; efficient for small-medium sized lists.

32
New cards

Splitting in Merge Sort

In merge sort, the list is continuously split in half until each sublist has one item.

33
New cards

Merging in Merge Sort

In merge sort, sublists are merged back together in the correct order by comparing each element in the sublists.

34
New cards

Insertion in Insertion Sort

In insertion sort, items are inserted into the correct position until the list is sorted.