返回卡包市场

Algorithms

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 24内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (24 张)

#1
正面 (问题)

背面 (解答)

#2
正面 (问题)

What is abstraction?

背面 (解答)

Removing unnecessary details to focus on what’s important in solving a problem.

#3
正面 (问题)

What is decomposition?

背面 (解答)

Breaking a problem into smaller more manageable sub-problems, each achieving a specific task.

#4
正面 (问题)

What is algorithmic thinking?

背面 (解答)

ability to create a set of instructions to find the solution to a problem.

#5
正面 (问题)

What is pattern recognition?

背面 (解答)

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

#6
正面 (问题)

What is an algorithm?

背面 (解答)

A sequence of steps that can be followed to complete a task.

#7
正面 (问题)

What are three common ways to represent algorithms?

背面 (解答)

Pseudocode, program code (e.g. Python), and flowcharts.

#8
正面 (问题)

What is a flowchart?

背面 (解答)

A diagram which uses symbols to represent the steps and decision-making processes of an algorithm.

#9
正面 (问题)

What should you always do in an exam question about algorithms?

背面 (解答)

Use the required format (e.g. code to be written in pseudocode or program code, flowcharts if asked).

#10
正面 (问题)

What are the three stages of an algorithm?

背面 (解答)

Inputs, processing, and outputs.

#11
正面 (问题)

How can you determine the purpose of a simple algorithm?

背面 (解答)

By using trace tables or visually inspecting the algorithm.

#12
正面 (问题)

What is a trace table?

背面 (解答)

A tool to track the values of variables step by step as an algorithm runs.

#13
正面 (问题)

What is a syntax error?

背面 (解答)

An error which breaks the rules of the programming language, meaning the program will not run.

#14
正面 (问题)

What is a logic error?

背面 (解答)

An error which causes a program to produce the wrong result. A program with a logic error will still run as long as it has correct syntax.

#15
正面 (问题)

What is the purpose of a searching algorithm?

背面 (解答)

To find a specific value (target) in a list of data.

#16
正面 (问题)

What are the two searching algorithms?

背面 (解答)

Linear Search and Binary Search.

#17
正面 (问题)

How does a linear search work?

背面 (解答)

It checks each item in the list one by one until the target is found or the end is reached.

#18
正面 (问题)

What type of data can linear search be used on?

背面 (解答)

Any list-sorted or unsorted.

#19
正面 (问题)

What are two advantages of linear search?

背面 (解答)

Simple to write and works on unsorted data.

#20
正面 (问题)

What is a major disadvantage of linear search?

背面 (解答)

It is slow on large data sets.

#21
正面 (问题)

How does binary search work?

背面 (解答)

It repeatedly divides a sorted list in half and compares the middle item to the target.

#22
正面 (问题)

What is the main requirement for using binary search?

背面 (解答)

The list must be sorted in order.

#23
正面 (问题)

Why is binary search more efficient than linear search?

背面 (解答)

It halves the number of items that need to be checked with each step—faster for large data sets.

#24
正面 (问题)

What are the downsides of binary search?

背面 (解答)

More complex to code and only works on sorted data.