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

  Illustrate how b-tree will expand

Illustrate how tree will expand (after inserting each Part#), and what the final tree would like. (b) Repeat item (a), but use a B-tree of order p = 4 instead of a B+-tree.

  The stack data structure and explore the idea of first-in

Your task is to utilize a stack collection. Your program should allow the user to add a biscuit, remove a biscuit, and print the status of the stack.

  Does every vertex in a rooted tree have a parent

Prove that a vertex in a rooted tree can have at most one parent. Does every vertex in a rooted tree have a parent?

  Representation of linked list

The table given below gives portion of a linked list. Every list entry spans two consecutive address locations the 1st contains a letter of the alphabet, and 2nd contains a pointer to the next list entry.

  Question about database administration

Should the data administrator really be on the same level as the DBA, generally somewhat low in corporate hierarchy or should this person have an elevated level of importance?

  Difference between a problem and an opportunity

What was the problems and/or opportunities facing Delta in late 1997? What is the difference between a problem and an opportunity

  Devise a linear-time algorithm to count the parallel edges

Parallel edge detection: Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudo-code.

  Write algorithm to reverse elemens in queue

Using basic queue and stack operationns, write algorithm to reverse elemens in the queue. Suppose that 'Stack' is class described in section with 'StackType' set to int and STACK_CAPACITY

  Creating an exception class and applet file

Create an applet document that prompts the user for an ID number and an age. Construct an Exception class and throw an Exception of that class if the ID is not in the range of valid ID numbers.

  Write the infix-to-postfix conversion algorithm

You will write a C++ version of the infix-to-postfix conversion algorithm. You will discover that code you write to do this exercise

  Calculate the cost of installing fiber optic cable

Write a program that will calculate the cost of installing fiber optic cable at a cost of $0.87 per foot for a company. Your program should display the company name and the total cost

  Create a project using the arraylist class

Create a project using the ArrayList class and the Main class in Search Algorithms. The ArrayList class contains implementations of the first three search methods explained in this week's lecture: sequential, sorted, and binary search.

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