Advanced Algorithms Theoretical Questions

Advanced Algorithms Theoretical Questions

University

β€’

30 Qs

quiz-placeholder

Similar activities

SEMIOPATOLOGÍA KINΓ‰SICA 2.0

SEMIOPATOLOGÍA KINΓ‰SICA 2.0

University

β€’

23 Qs

wiedza o kulturze

wiedza o kulturze

KG - Professional Development

β€’

23 Qs

InnovaciΓ³n Educativa PII

InnovaciΓ³n Educativa PII

University

β€’

23 Qs

Desarrollo BBB 1-3

Desarrollo BBB 1-3

University

β€’

24 Qs

Unidad I: La ComunicaciΓ³n

Unidad I: La ComunicaciΓ³n

University

β€’

24 Qs

InducciΓ³n SENA

InducciΓ³n SENA

University

β€’

25 Qs

EXAM. INTR. AL DER. 1ER. PER. DOM.24

EXAM. INTR. AL DER. 1ER. PER. DOM.24

University

β€’

25 Qs

Derecho laboral dos 2.0

Derecho laboral dos 2.0

University

β€’

24 Qs

Advanced Algorithms Theoretical Questions

Advanced Algorithms Theoretical Questions

Assessment

Quiz

β€’

Education

β€’

University

β€’

Practice Problem

β€’

Medium

Created by

Yernur Zinelov

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?