Back to marketplace

2.3 - Algorithms

No description yet. This curated deck is ready for daily study.

Total cards: 12•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (12)

#1
Front (Question)

What is a systematic approach to problem solving?

Back (Answer)

• Reaching a solution by identifying the individual steps required. • a set of rules allows an algorithm that is followed to be precisely lead to an answer. • Allows developers to automate solutions.

#2
Front (Question)

What does abstraction allow?

Back (Answer)

It allows us to think about what is important and what is not.

#3
Front (Question)

What 4 steps should you take for a systematic approach?

Back (Answer)

• Break the problem down. • Think about what data is important or not important. • Consider relevent data structures. • Tackle each part of the problem step by step.

#4
Front (Question)

What is an algorithm? (Simplified)

Back (Answer)

A sequence of steps followed in order to solve a problem.

#5
Front (Question)

How does a linear search work?

Back (Answer)

It starts at the first item in the list and checks each item one by one to find an item in a sorted or unsorted list.

#6
Front (Question)

What are the 4 characteristics of a linear search?

Back (Answer)

• Doesn’t require the data set to be in order e.g settings file. • Can be efficient for smaller data sets. • Is inefficient for large data sets. • Easiest searching algorithm to implement but usually the most ineffient.

#7
Front (Question)

What is a typical use of a linear search?

Back (Answer)

The find-and-replace function in a word processor.

#8
Front (Question)

When is an algorithm correct?

Back (Answer)

If the result is correct for all input instances.

#9
Front (Question)

What 4 things does a linear search algorithm have to do?

Back (Answer)

• Be able to locate an item in a data set (if it exists). • Be able to locate the item regardless of whether the data set is sorted or unsorted. • Run without crashing even if the item being searched for doesn’t exist in the data set. • Check each item sequentially, starting with the first item.

#10
Front (Question)

What is a binary search algorithm?1

Back (Answer)

An efficient algorithm for finding an item in a sorted data set. It starts at the middle item in the list and repeatedly divides the list in half.

#11
Front (Question)

What are the 2 characteristics to be a binary search?

Back (Answer)

• Requires the data set to be sorted first (e.g. numerical or alphabetical order) • Is efficient for large data sets.

#12
Front (Question)

When would you use a binary search?

Back (Answer)

When you need to search for an item in a large, sorted data set. (e.g. online dictionary in alphabetical order).