Binarysearch algoritmi qanday arraydan qidiradi
AL_lecture_search_algorithm

Quiz
•
Computers
•
1st - 3rd Grade
•
Medium
Dilmurod Tuxtanazarov
Used 15+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
tartiblangan
Tartiblanmagan
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a binary search algorithm works?
Dividing the list into halves until the item is matched with one in the list.
Starts with the first element and checks the next element consecutively until a match is found.
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An array with 32 elements is input to a binary search algorithm. How many maximum number of comparisons are performed?
32
16
8
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An array with 32 elements is input to a linear search algorithm. How many maximum number of comparisons are performed?
32
16
8
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the midpoint of the list calculated?
midpoint= round ((first_element+last_element)/2)
midpoint=(lower_bound+upper_bound)/2
midpoint= round ((lower_bound+upper_bound)/2)
midpoint= round ((lower_bound+upper_bound))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the disadvantage of binary search algorithm?
It takes longer time when compared to linear search algorithm
It works only on sorted lists
It is very complex to understand
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case runtime of lookUp/get in a binary search tree?
O(n)
O(logn)
O(1)
O(n2)
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Ievads programmēšanā

Quiz
•
1st - 5th Grade
10 questions
Search engines

Quiz
•
1st - 12th Grade
15 questions
KS3_Data Representations (from clay to silicon)

Quiz
•
1st - 3rd Grade
15 questions
MS Access

Quiz
•
2nd Grade - University
12 questions
ASK T3 BAB 3B

Quiz
•
3rd Grade
10 questions
Dasturlash II(Standart algoritm va iterator)

Quiz
•
1st Grade
10 questions
Sort and search algorithms

Quiz
•
KG - 5th Grade
10 questions
Technology Quiz Game Grade2

Quiz
•
2nd 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
10 questions
American Flag

Quiz
•
1st - 2nd Grade
14 questions
IREAD-3 Practice Test

Quiz
•
3rd Grade
10 questions
Identifying equations

Quiz
•
KG - University
10 questions
Perimeter of Polygons!

Quiz
•
3rd Grade
10 questions
2nd Grade math review

Quiz
•
2nd Grade
20 questions
Math Review

Quiz
•
3rd Grade
18 questions
Traits

Quiz
•
3rd Grade
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...