Algorithm Design and Analysis Quiz

Algorithm Design and Analysis Quiz

University

45 Qs

quiz-placeholder

Similar activities

Uji Pemahaman Algoritma Pemrograman

Uji Pemahaman Algoritma Pemrograman

10th Grade - University

50 Qs

Kuis_03_ Artificial Intelligence_Bab 5-7

Kuis_03_ Artificial Intelligence_Bab 5-7

University

40 Qs

Encryption/Decryption

Encryption/Decryption

University

40 Qs

MariaDB y Entidad-Relación repaso

MariaDB y Entidad-Relación repaso

University

40 Qs

DSA QUIZ O

DSA QUIZ O

University

45 Qs

ข้อสอบปลายภาคบทที่ 1-9

ข้อสอบปลายภาคบทที่ 1-9

University

40 Qs

AI ML NW DSA APP

AI ML NW DSA APP

University

50 Qs

Final Test preparation and recap

Final Test preparation and recap

University

40 Qs

Algorithm Design and Analysis Quiz

Algorithm Design and Analysis Quiz

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Kituku Ben

Used 2+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: You are asked to create a sorting algorithm for a system that handles millions of transactions per second. Which design paradigm is most appropriate for such scenarios?

Divide and Conquer

Brute Force

Randomized Algorithms

Greedy Algorithms

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: A company needs an algorithm to verify user credentials against a database with billions of entries. Which factor is most critical to evaluate the algorithm?

Accuracy

Space complexity

Time complexity

Input constraints

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: An algorithm consistently outputs the wrong results for certain inputs. What property of the algorithm is being violated?

Efficiency

Correctness

Simplicity

Stability

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: Your algorithm processes T(n)=4T(n/2)+n2. Using Master’s Theorem, identify the time complexity.

O(n2logn)

O(n3)

O(n2)

O(logn)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: A function f(n)=5n3+3n2. As nn grows large, what is the asymptotic upper bound?

O(n2)

O(n3)

O(5n3)

O(n4)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: An algorithm's time complexity is O(log n). What scenario best fits its application?

Searching for an element in a sorted array

Sorting an array

Finding the shortest path in a graph

Traversing a linked list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scenario: A recursive algorithm divides a problem into 3 subproblems, each half the size of the original. The recurrence is T(n)=3T(n/2)+n. What is the time complexity?

O(n2)

O(nlogn)

O(nlog23)

O(n)

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?