[Solved] EE4371 Assignment2-Asymptotic analysis and Divide and Conquer

$25

File Name: EE4371_Assignment2_Asymptotic_analysis_and_Divide_and_Conquer.zip
File Size: 574.62 KB

SKU: [Solved] EE4371 Assignment2-Asymptotic analysis and Divide and Conquer Category: Tag:
5/5 - (1 vote)
  • Topics: Asymptotic analysis and Divide and Conquer
  1. Order the following functions by asymptotic growth rate.

4n logn + 2n 210 2logn 3n + 100logn 4n 2n n2 + 10n n3 nlogn

  1. In each of the following situations, indicate whether f = O (g),or f = (g),or both (in which case f = (g)). Justify your answer.

f (n) g (n)

  • n 100 n 200
  • 100n + logn n + (logn)2
  • log2n log 3n
  • n01 nlog2n
  1. Describe an efficient algorithm for finding the ten largest elements in a sequence of size n . What is the running time of your algorithm?
  2. Use the divide and conquer integer multiplication algorithm to multiply the two binary integers 10011011 and 10111010.
  3. You are given a unimodal array of n distinct elements, meaning that its entries are in increasing order up until its maximum elements, after which its elements are in decreasing order. Give an algorithm to compute the maximum element of a unimodal array that runs in O(log n)
  4. You are given an array of n elements, and you notice that some of the elements are duplicates; that is, they appear more than once in array. Show how to remove all duplicates from the array in time O(n log n).

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] EE4371 Assignment2-Asymptotic analysis and Divide and Conquer[Solved] EE4371 Assignment2-Asymptotic analysis and Divide and Conquer
$25