logo

Question detail

When comparing the time efficiency of two algorithms, which factor is most important to consider?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Classification of algorithms

Exam-style question

Try this first

When comparing the time efficiency of two algorithms, which factor is most important to consider?.

  1. A.The colour used in the program interface
  2. B.The size of the problem being solved
  3. C.The name of the programming language only
  4. D.The number of comments in the code

Model answer

What a good answer should say

  • The size of the problem being solved

Explanation

Why this works

Algorithm complexity is expressed as a function relative to the size of the problem. The size of the input or problem is therefore a key issue when comparing algorithms.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.