Search Header Logo

Analysis of Algorithm Chapter 5

Authored by วัชรศักดิ์ ศิริเสรีวรรณ

Computers

University

Used 7+ times

Analysis of Algorithm Chapter 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which ones are the recurrence relation derived from Divide-and-Conquer Algorithm

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

T(n) = 6T(n/3) + n2 ∊ ϴ(f(n)) , f(n) = ?

n2

log36

n1+log32

n2logn

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best case of Quick sort

well-ordered input

reverse-ordered input

choosing the pivot at the middle location

the chosen pivot is the median

choosing the pivot randomly

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The constant time of Quick sort is on which process of Quick sort ?

Pivot selection

Find the position of pivot

Bipartition of array

Sorting the array

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which ones are true about analysis of time complexity of Quick sort in average case ?

Given n elements of array, the probability of the pivot being to each position is 1/n

Given the pivot is at the kth location, the time of that case is T(n - k) + T(k - 1) + n

6.

MULTIPLE SELECT QUESTION

1 min • 2 pts

Given the time of the algorithm is aT(n/b) + nd , what are the approach we can use to reduce the time of this algorithm ?

reduce a when a < bd

reduce nd when a > bd

reduce a when a > bd

reduce nd when a < bd

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

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?