Cambridge International A Level · Computer Science (9618)

Algorithm Design and Problem-solving:練習題

5 條多項選擇題即時批改,另有 5 條文字題附完整解題步驟,全部圍繞「Algorithm Design and Problem-solving」。

10 條題目24 免費,無需登記
第 1 題
1

In the context of computational thinking, which process involves breaking a complex problem into smaller, more manageable sub-problems to simplify the development of a solution?

第 2 題
1

Which statement best describes the relationship between decomposition and stepwise refinement in problem-solving?

第 3 題
1

A developer is evaluating the efficiency of a procedure that processes a square matrix of size \( n \times n \). The procedure is divided into two sequential phases:

Phase 1: A nested loop structure iterates through all the lower triangular elements of the matrix (where the row index is greater than or equal to the column index) to perform a calculation on each element.
Phase 2: A separate loop runs \( n \) times, where each iteration performs a binary search on a sorted 1D array of size \( n \).

Which of the following correctly identifies the overall worst-case time complexity of the procedure in Big O notation?

第 4 題
1

Which of the following statements best describes the primary purpose of abstraction when designing a computational solution to a real-world problem?

第 5 題
1

A bubble sort algorithm is being used to sort the following array of integers in ascending order:

[15, 4, 10, 2, 7]

What will be the state of the array after the first complete pass is finished?

第 6 題
2

Identify the basic programming construct that allows an algorithm to follow different paths of execution based on the result of a condition, and name the pseudocode statement used for multi-way selection.

先自己寫一次答案,再對照解題步驟。

第 7 題
4

Compare the best-case time complexity of a bubble sort algorithm with a linear search algorithm, using Big O notation, assuming the data is already sorted.

先自己寫一次答案,再對照解題步驟。

第 8 題
5

Compare the time complexity of a linear search and a binary search using Big O notation, and state the essential requirement for a binary search to be performed on a dataset.

先自己寫一次答案,再對照解題步驟。

第 9 題
3

A software developer is tasked with creating a new library management system. To manage the complexity, the developer uses various computational thinking techniques.

a) Define the term decomposition and explain how it helps the developer in this specific scenario.
b) Describe the process of stepwise refinement and state how it differs from decomposition.

先自己寫一次答案,再對照解題步驟。

第 10 題
5

A 1D array DataList contains the values: [15, 9, 23, 2, 8].
a) Show the state of the array after the second complete pass of a Bubble Sort algorithm (ascending order).
b) Explain the term Stepwise Refinement and how it relates to the design of an algorithm.
c) State the time complexity of the bubble sort in the best-case scenario and explain why this occurs if an optimization flag is used.

先自己寫一次答案,再對照解題步驟。

* thinka提供的內容由AI生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。

你已看過標準答案,接下來輪到批改你的答案。

這一頁可以告訴你好答案的樣子,卻無法指出你的答案欠缺什麼。thinka 按真實評分準則批改你的文字答案,約 15 秒完成。

想多做幾條同類題目?立即開始練習呢個課題,即做即批改。

立即練習