凹凸雅思

computational thinking searching and sorting algorithms

使用闪卡高效复习COMPUTER-SCIENCE科目知识点

共计闪卡

28

闪卡自测

进度: 1 / 28已掌握: 0 | 需要复习: 0
问题

Define computational thinking.

点击查看答案
请先阅读问题,然后点击卡片查看答案

所有闪卡

闪卡 1

问题

Define computational thinking.

查看答案

答案

Solving problems that can be implemented by a computer system is known as computational thinking.

闪卡 2

问题

Define abstraction.

查看答案

答案

Abstraction is the process of removing unnecessary details of a problem to focus on the important features to implement in a solution.

闪卡 3

问题

Define decomposition.

查看答案

答案

Decomposition is the process of breaking down a large problem into a set of smaller problems to make the problem easier to solve.

闪卡 4

问题

Define algorithmic thinking.

查看答案

答案

Algorithmic thinking is the process of creating step-by-step instructions in order to produce a solution to a problem.

闪卡 5

问题

True or False? Algorithmic thinking requires the use of abstraction and decomposition.

查看答案

答案

True. Algorithmic thinking requires the use of abstraction and decomposition to identify each individual step.

闪卡 6

问题

True or False? Following a recipe is an example of algorithmic thinking in real life.

查看答案

答案

True. Following a recipe is an example of algorithmic thinking, where if the recipe is followed precisely it should lead to the desired outcome.

闪卡 7

问题

True or False? The London underground maps are an example of abstraction

查看答案

答案

True. Travellers do not need to know the geographical layout of the routes, only that getting on at stop A will eventually transport you to stop B

闪卡 8

问题

True or False? Algorithmic thinking is a skill that gets easier with practise.

查看答案

答案

True. Algorithmic thinking takes practise, so the more you do, the easier it will become!

闪卡 9

问题

State the three main principles of computational thinking.

查看答案

答案

The three main principles of computational thinking are:

闪卡 10

问题

Define a searching algorithm?

查看答案

答案

Searching algorithms are precise step-by-step instructions that a computer can follow to efficiently locate specific data in massive datasets.

闪卡 11

问题

Describe a binary search?

查看答案

答案

A binary search keeps halving a dataset by comparing the target value with the middle value, going left if smaller, right if bigger, until it finds the value or realises the value is not there.

闪卡 12

问题

Define the term 'middle value' (midpoint).

查看答案

答案

The middle value/midpoint is the value identified in the middle of the dataset that is being searched during a binary search.

闪卡 13

问题

What is a pre-condition for performing a binary search?

查看答案

答案

To perform a binary search the data must be in order!

闪卡 14

问题

Describe a linear search?

查看答案

答案

A linear search starts with the first value in a dataset and checks every value one at a time until all values have been checked.

闪卡 15

问题

State an advantage of binary search over linear search.

查看答案

答案

Binary search is fast for large datasets.

闪卡 16

问题

State an advantage of linear search over binary search.

查看答案

答案

Linear search works on unsorted datasets.

闪卡 17

问题

State a disadvantage of binary search.

查看答案

答案

A disadvantage of binary search is that the dataset must be in order and it is more complex to implement than linear search.

闪卡 18

问题

State a disadvantage of linear search.

查看答案

答案

A disadvantage of linear search is that it is slow for large datasets and inefficient, starting at the beginning each time.

闪卡 19

问题

What is the midpoint of this dataset? 5, 14, 17, 21, 22, 28

查看答案

答案

17 5, 14, 17, 21, 22, 28 midpoint = lowerbound (0) + upperbound (5) // 2

闪卡 20

问题

What is a sorting algorithm?

查看答案

答案

Sorting algorithms are precise step-by-step instructions that a computer can follow to efficiently sort data in massive datasets.

闪卡 21

问题

Define a bubble sort?

查看答案

答案

A bubble sort is a simple sorting algorithm that starts at the beginning of a dataset and checks values in 'pairs' and swaps them if they are not in the correct order.

闪卡 22

问题

Define the term pass (in the context of bubble sort).

查看答案

答案

One full run of comparisons from beginning to end in a bubble sort is called a 'pass'.

闪卡 23

问题

How does a bubble sort know when to stop?

查看答案

答案

A bubble sort is finished when there are no more swaps to make.

闪卡 24

问题

What is a merge sort?

查看答案

答案

A merge sort is a sorting algorithm that uses the 'divide and conquer' strategy of dividing a dataset into smaller sub-datasets and merging them back together in the correct order.

闪卡 25

问题

Define the term divide (in the context of merge sort).

查看答案

答案

Divide is splitting the dataset into individual datasets by repeatedly splitting the dataset in half during a merge sort.

闪卡 26

问题

Define the term conquer (in the context of merge sort).

查看答案

答案

Conquer is merging pairs of sub-datasets together by comparing the first value in each dataset during a merge sort.

闪卡 27

问题

What is an insertion sort?

查看答案

答案

The insertion sort sorts one item at a time by placing it in the correct position of an unsorted list. This process repeats until all items are in the correct position.

闪卡 28

问题

True or False? In an insertion sort, values can move as many places as needed.

查看答案

答案

True. In an insertion sort, values in the dataset can move as many places as they need.