27Mar
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
A K
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of finding the kth smallest element in a binary search tree?
O(n)
O(log n)
O(k)
O(k log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a property of a heap?
It is a complete binary tree
The root node is always the largest (in a max heap) or smallest (in a min heap) element
It is always balanced
Each node's value is greater (in a max heap) or smaller (in a min heap) than its children's values
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of nodes in an AVL tree of height 6?
63
127
255
511
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of finding the kth largest element in a max-heap?
O(1)
O(k log n)
O(n)
O(log n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a problem that can be solved using recursion with dynamic programming?
Finding the longest common subsequence of two strings
Generating all permutations of a set of elements
Solving the traveling salesman problem
Calculating the determinant of a matrix
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of inserting a node into a red-black tree?
O(1)
O(n)
O(log n)
O(log^2 n)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of the backtracking algorithm for solving the n-queens problem?
O(1)
O(n)
O(n!)
O(2^n)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
AMS - Aula 03
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
Entorno Financiero Digital 2do test
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
