[SOLVED] 代写 algorithm Name:

30 $

File Name: 代写_algorithm_Name:.zip
File Size: 207.24 KB

SKU: 0235461761 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Name:
CSE 4502/5717 Big Data Analytics
Exam II; April 11, 2019
Note: You are supposed to give proofs to the time and processor bounds of your algorithms. Read the
questions carefully before attempting to solve them.
1. (25 points) Input is a sequence X with n elements that is residing in D disks. The problem is to sort X. It is known that each element in X is an integer in the range [1,B], where B is the block size. It is known that M = Θ(B2D), M being the main memory size. Show how to sort X in two (read) passes through the data.

2. (25 points) The input for this problem is a string X of length n. The goal is to find the longest repeated substring, i.e., a substring of maximum length that appears in at least two different positions in X. Present an O(n) time algorithm to solve this problem.

3. (25 points) Input are a text T of length m and a pattern P of length n. T and P are strings from an alphabet Σ, with σ = |Σ|. The problem is to find all the occurrences of P in T within a Hamming distance of 1. If s1 and s2 are strings of the same length, then the Hamming distance between them is defined to be the number of places in which they differ. For example, the Hamming distance between aacgtt and agcgat is 2. Present an algorithm for this problem that runs in O(σn2 + m) time.

4. (25 points) In this problem we are given a text T, a pattern P, and the suffix array S for T. The problem is to identify all the occurrences of P in T. Let |T| = m and |P| = n.
Present an algorithm to solve this problem in O(1) time using n
Specifically, the output should be an array A[1 : m] such that A[i] = 1 if P = Ti; (If T =t1t2···tm thenTi =titi+1···ti+n−1);Also,A[i]=0ifP ̸=Ti,for1≤i≤m.

m CRCW PRAM processors.

Reviews

There are no reviews yet.

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

Shopping Cart
[SOLVED] 代写 algorithm Name:
30 $