Questions: Algorithm Design Basics

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

You need to find a target value in a sorted list of 1,024 elements. At most how many comparisons does binary search require?

A10
B512
C1024
D32
Question 2 True / False

Insertion sort typically runs in O(n log n) time regardless of the input.

TTrue
FFalse
Question 3 Short Answer

Why is writing pseudocode recommended before coding an algorithm?

Think about your answer, then reveal below.