Algorithm Analysis Flashcard

Algorithm Analysis Flashcard

Assessment

Flashcard

Other

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the time complexity of accessing an element in an array by its index?

Back

O(1)

2.

FLASHCARD QUESTION

Front

Which of the following sorting algorithms has the best average-case time complexity? Bubble Sort, Insertion Sort, Merge Sort, Selection Sort

Back

Merge Sort

3.

FLASHCARD QUESTION

Front

What is the space complexity of a recursive algorithm that makes a recursive call each time it executes?

Back

O(n)

4.

FLASHCARD QUESTION

Front

In Big O notation, O(n^2) represents which type of complexity?

Back

Quadratic

5.

FLASHCARD QUESTION

Front

Which algorithm uses a divide and conquer approach? Options: Radix Sort, Quick Sort, Bubble Sort, Counting Sort

Back

Quick Sort

6.

FLASHCARD QUESTION

Front

What is the worst-case time complexity of binary search on a sorted array?

Back

O(log n)

7.

FLASHCARD QUESTION

Front

Which of the following is NOT a characteristic of a greedy algorithm?
Making the locally optimal choice,
Not considering the global situation,
Always finding the optimal solution,
Efficiently solving optimization problems

Back

Always finding the optimal solution

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?