Which search algorithm has a time complexity of O(log n)?

AHJN: Unit19-Computational Thinking

Quiz
•
Computers
•
12th Grade
•
Hard
Ahmad Janoudi
FREE Resource
38 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Binary search
Linear search
Bubble sort
Insertion sort
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a necessary condition for using a binary search algorithm?
The data must be sorted
The data must be stored in a linked list
The data must contain only numeric values
The data must be stored in a queue
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT an abstract data type (ADT)?
Stack
Queue
Binary tree
Algorithm
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What notation is commonly used to compare the efficiency of algorithms?
Big O notation
Little O notation
Alpha-beta notation
Theta notation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a linear search algorithm, what is the worst-case time complexity when searching through n elements?
O(n)
O(log n)
O(1)
O(n²)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about binary search is correct?
It has a worst-case time complexity of O(log n)
It always requires more comparisons than linear search
It can be used on unsorted data
It requires a linked list data structure
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many comparisons would a binary search require in the worst case to find a value in a sorted array of 1024 elements?
10
11
512
1024
Create a free account and access millions of resources
Similar Resources on Quizizz
35 questions
1.4.3 / 1.3.1 Hashing

Quiz
•
12th Grade
38 questions
Formative searching and sorting

Quiz
•
11th Grade - University
35 questions
Latihan SAS Gasal Informatika TA 23/24

Quiz
•
9th - 12th Grade
36 questions
Struktur Data dalam Pembuatan Gim

Quiz
•
12th Grade - University
34 questions
Competitive Programming: Intro to the Arts of Problem Solving

Quiz
•
9th - 12th Grade
40 questions
Code Uncode 2.0

Quiz
•
12th Grade
40 questions
A Level Quiz

Quiz
•
12th Grade
35 questions
Python - 2.தரவு அருவமாக்கம்

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University