Advanced Algorithms Theoretical Questions

Quiz
•
Education
•
University
•
Medium
Yernur Zinelov
Used 3+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Princípios de Redes I

Quiz
•
University
25 questions
COCAT - DAA

Quiz
•
University - Professi...
27 questions
Palabras agudas, graves, esdrújulas y sobresdrújulas

Quiz
•
6th Grade - University
25 questions
Informática para el Diseño II

Quiz
•
University
28 questions
Técnica Cirurgica 1

Quiz
•
University - Professi...
24 questions
4. Investigación: Actividad de repaso - Conceptos básiicos

Quiz
•
University
30 questions
Soal ujian Mid Semester genap mapil XI EI

Quiz
•
11th Grade - University
25 questions
Pengetahuan Umum

Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Education
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University