AL_lecture_search_algorithm

Quiz
•
Computers
•
1st - 3rd Grade
•
Medium
Dilmurod Tuxtanazarov
Used 16+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Binarysearch algoritmi qanday arraydan qidiradi
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 Wayground
15 questions
Algorithms

Quiz
•
3rd - 12th Grade
10 questions
Common Algorithms - Bitesize

Quiz
•
KG - 11th Grade
10 questions
LATIHAN ASK TINGKATAN 3 - SIRI 1

Quiz
•
1st Grade
10 questions
Data Representation - Converting Denary to Binary

Quiz
•
3rd - 12th Grade
9 questions
Database Indexes

Quiz
•
3rd Grade
10 questions
Search engines

Quiz
•
1st - 12th Grade
14 questions
6-sinf Dasturlashni o'rganish

Quiz
•
1st - 5th Grade
16 questions
AL_Lecture № 2.1

Quiz
•
1st Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
9 questions
A Fine, Fine School Comprehension

Quiz
•
3rd Grade
12 questions
Passport Quiz 1

Quiz
•
1st - 5th Grade
10 questions
Place Value

Quiz
•
3rd Grade
8 questions
Writing Complete Sentences - Waiting for the Biblioburro

Lesson
•
3rd Grade
10 questions
Third Grade Angels Vocab Week 1

Quiz
•
3rd Grade
12 questions
New Teacher

Quiz
•
3rd Grade