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?
Cambridge International A Level · Computer Science (9618)
Algorithm Design and Problem-solving:練習問題
その場で採点される選択問題 5 問と、解説つきの記述問題 5 問。すべて「Algorithm Design and Problem-solving」からの出題です。
Which statement best describes the relationship between decomposition and stepwise refinement in problem-solving?
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?
Which of the following statements best describes the primary purpose of abstraction when designing a computational solution to a real-world problem?
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?
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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 秒で採点します。
同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。
練習を始める