Advanced Algorithms Theoretical Questions
Quiz
β’
Education
β’
University
β’
Practice Problem
β’
Medium
Yernur Zinelov
Used 4+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
What is the time complexity of x^n?
Can we optimize it?
O(n^2).
No we can't.
O(n).
By optimizing it using βExponentiation by Squaringβ, it becomes O(log n).
O(n).
No we can't.
O(n*log n).
By optimizing it using βExponentiation by Squaringβ, it becomes O(log n).
2.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
What is the maximum number of id[] array entries that can change (from one value to a different value) during one call to union when using the quick-find data structure on n elements?
log n
1
n - 1
n
3.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
What is the time complexity of "union" and "find" operation in Quick-Find?
Union: O(n)
Find: O(1)
Union: O(n)
Find: O(n)
Union: O(1)
Find: O(n)
Union: O(n)
Find: O(log n)
4.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
Consider the maximum number of array accesses during a find operation when using the quick-union data structure on π elements. How does this quantity grow as function of π?
constant
logarithmic
quadratic
linear
5.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
What is the time complexity of "union" and "find" operations in Quick-Union?
Union: O(n)
Find: O(n)
Union: O(n)
Find: O(1)
Union: O(1)
Find: O(n)
Union: O(log n)
Find: O(n)
6.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
Time complexity of Weighted Quick-Union?
Union: O(log n)
Find: O(log n)
Union: O(log n)
Find: O(n)
Union: O(n)
Find: O(log n)
Union: O(1)
Find: O(log n)
7.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
What does adjacent mean in a graph?
Two vertices connected directly by an edge.
Two vertices connected undirectly.
Two vertices connected by something.
Two vertices connected but not directly.
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
24 questions
Cuestionario sobre DirecciΓ³n de Arte
Quiz
β’
University
25 questions
Stress-strain
Quiz
β’
University
25 questions
PERSONALIDAD QSM 2022
Quiz
β’
University
23 questions
EXAMEN UNIDAD 1 METODOLOGIA 3E-1
Quiz
β’
University
24 questions
Alfabet morsea
Quiz
β’
6th Grade - Professio...
23 questions
DidΓ‘ctica de los Ciclos Formativos
Quiz
β’
University
24 questions
Obsolescencia
Quiz
β’
University
24 questions
Quiz: Geografia e MatemΓ‘tica
Quiz
β’
12th 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
