Design an one-pass streaming algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM132713164

Problem 1

Consider the metric 1-median problem. Let S be a set of N points from a metric space M = (X, d) and let d be the distance function. Let co be the optimal center and let OPT = x S d(x, co) be the optimal cost.

Consider the following simple randomized algorithm. First, we sample a point compute the total cost a S d(c, a). Repeat, this procedure O(1) times and choose uniformly at random. Second, we connect every point from S to and the best solution. Can you derive any approximation guarantee for the resulting solution? What is the probability of the success? You can assume that c0 ∈ S. Solve the same problem assuming c0 ∈ X \ S.

Problem 2

Let X = x1, . . . , xn be a set of n points from d-dimensional Euclidian space. denstrauss transform. For example, let r = O(log(n)/s2) and let A be a random r n matrix where all entries ai,j are i.i.d. random variables with P (ai,j = 1) = To preserve pairwise distances between the points we can use the Johnson Lin- P (ai,j = 1) = 0.5. Let yi = Axi. The JL lemma states that all pairwise distances will be approximately preserved, with high probability.

Consider the following modification. To save time in computing Ax, we may try to "sparsify" the entries of A as follows. Use a random matrix A with i.i.d. random entries ai,j with P (ai,j = 1) = P (ai,j = 1) = 10/r and P (ai,j = 0) = 1 - 20/r . Will this work to preserve approximately all pairwise distances with high probability? Why?

Problem 3
Let v = (v1, v2, . . . vn) be a frequency vector of an insertion-only stream. Define

H(v) := Σ(v2 - 0.1vi)(vi + 1).
          i∈[n]

Design an one-pass streaming algorithm to approximate H(v). Give space bound for your algorithm to output a (1 s) approximation with probability at least 0.9. Prove the correctness of your claims.

Reference no: EM132713164

Questions Cloud

How much is the expected return to stockholders : How much is the expected return to stockholders? The current market price of stock is $50 and the stock is expected to pay dividend of $2
Explain journal entries involved in amortizing the discount : Re-do the journal entry on date of issuance if the bonds were issued at $250,000 instead? Explain journal entries involved in amortizing the discount
Net displacement of the mass after a time interval t : 1. A mass on a spring in SHM has amplitude A and period T. What is the net displacement of the mass after a time interval T?
What is the probability that more than one machine : What is the probability that more than one machine is in the system? Probability that more than two are broken and waiting to be repaired or being serviced?
Design an one-pass streaming algorithm : Design an one-pass streaming algorithm to approximate H(v). Give space bound for your algorithm to output a (1 s) approximation with probability
What is the acceleration of the block : Find x(t), the displacement of the block from equilibrium as a function of time. Hint: you'll need to find the constants ? (in rad/s), A (in cm), ?? (in radians
What is the resistance of circuit : When the switch is closed it takes 35 milliseconds to reach 75% of the maximum current. What is the resistance of this circuit?
Determine the surface area of the ring : A ring is formed by rotating the area shown below 360o about the axis a-a. Determine the surface area of the ring (in square inches).
What is the cost of goods sold using the LIFO method : Sales during the month totaled 363 units for $42 each. What is the cost of goods sold using the LIFO method

Reviews

len2713164

11/28/2020 4:01:05 AM

Please answer the questions in text form with mathematical formulas and step-by-step explanations in detail instead of codes.

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd