[SOLVED] COMP9101 Assignment 2

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon ass2-wkxd2w.zip (902.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (1 vote)
  1. Given positive integers M and n compute M n using only O(log n) many multiplications.
  2. You are given a polynomial P (x) = A0+A1x100+A2x200 where A0, A1, A2 can be arbitrarily large integers. Design an algorithm which squares P (x) using only 5 large integer multiplications.
  3. Assume you are given a map of a straight sea shore of length 100n me- ters as a sequence on 100n numbers such that Ai is the number of fish between ith meter of the shore and (i + 1)th meter, 0 ≀ i ≀ 100n βˆ’ 1. You also have a net of length n meters but unfortunately it has holes in it. Such a net is described as a sequence N of n ones and zeros, where 0’s denote where the holes are. If you throw such a net starting at meter k and ending at meter k + n, then you will catch only the fish in one meter stretches of the shore where the corresponding bit of the net is 1. Find the spot where you should place the left end of your net in order to catch the largest possible number of fish using an algorithm which runs in time O(n log n).

    0 1 2 3 4 5 kk+1… k+m n-1n

    C = Ak +Ak+1+0+ Ak+2+ 0 + Ak+4+…+0+ Ak+m-2+Ak+m-1

    Hint: Let Nβ€² be the net sequence N in the reverse order; look at the sequence A βˆ— Bβ€²; see the figure.

  4. (a) Compute the convolution ⟨1,0,0,…,0,1⟩ βˆ— ⟨1,0,0,…,0,1⟩ (10 τ°‚ τ°τ°€ τ°ƒ τ°‚ τ°τ°€ τ°ƒ

    kk

    pts)
    (b) Compute the DFT of the sequence ⟨1,0,0,…,0,1⟩ (10 pts)

    􏰂 􏰁􏰀 􏰃

    k

  5. Find the sequence x satisfying x βˆ— ⟨1, 1, βˆ’1⟩ = ⟨1, 0, βˆ’1, 2, βˆ’1⟩.(20 pts) Hint: what polynomials correspond to the given sequences?

    1

  • ass2-wkxd2w.zip