Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Analysis of Algorithms Review Questions, Exams of Design and Analysis of Algorithms

Review Questions for Analysis of Algorithms

Typology: Exams

2019/2020

Uploaded on 02/07/2020

huseyinguney
huseyinguney 🇹🇷

3.2

(5)

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Questions:
1. Write down the name of the design strategy which was used to develop the Merge Sort
algorithm and also explain each of the steps of this algorithm design strategy in one sentence.
2. Sort the array A, A = {9,7,8,3,2,1}, in non-decreasing order using Merge Sort algorithm. Show
steps clearly.
3. Search the array L, L = {2,5,8,12,16,23,38,56,72,91}, for the number 23 and return to the
index of the 23 using Binary Search algorithm. Show the steps clearly.
4. Find the order of growth for the solution of the recurrence 𝑇(𝑛)= 2𝑇 (𝑛
2) + 𝑛 using
Induction Method.
5. Find the order of growth for the solution of the recurrence 𝑇(𝑛)= 2𝑇 (𝑛
4) + 𝑛 using the
Master Theorem Method.
6. Find the order of growth for the solution of the recurrence 𝑇(𝑛)= 3𝑇(𝑛 2) using Iterative
(Repeated) Substitution Method.
7. Compare Binary search and Linear Search for the array L to find number 23. Explain worst-
case for a very large number of n (input size).

Partial preview of the text

Download Analysis of Algorithms Review Questions and more Exams Design and Analysis of Algorithms in PDF only on Docsity!

Questions:

  1. Write down the name of the design strategy which was used to develop the Merge Sort

algorithm and also explain each of the steps of this algorithm design strategy in one sentence.

  1. Sort the array A, A = {9,7,8,3,2,1}, in non-decreasing order using Merge Sort algorithm. Show

steps clearly.

  1. Search the array L, L = {2,5,8,12,16,23,38,56,72,91}, for the number 23 and return to the

index of the 23 using Binary Search algorithm. Show the steps clearly.

  1. Find the order of growth for the solution of the recurrence 𝑇

𝑛

2

) + 𝑛 using

Induction Method.

  1. Find the order of growth for the solution of the recurrence 𝑇(𝑛) = 2 𝑇 (

𝑛

4

𝑛 using the

Master Theorem Method.

  1. Find the order of growth for the solution of the recurrence 𝑇

using Iterative

(Repeated) Substitution Method.

7. Compare Binary search and Linear Search for the array L to find number 23. Explain worst-

case for a very large number of n (input size).