What is the probability of the success

Assignment Help Data Structure & Algorithms
Reference no: EM132708521

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 c 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 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: EM132708521

Questions Cloud

How cross-cultural differences influence the performance : How cross-cultural differences influence the performance in an international company with specific examples; this part should be written in a problem-solution
Compare vertical and horizontal scaling : List five to ten potential relationships that align with the Pareto principle, such as how 80 percent of sales come from 20 percent of customers.
What is the forecasted external financing needed : What is the forecasted external financing needed if all revenues, expenses, and assets remain a constant percent of sales, and sales increase by 30%?
What is the economic order quantity : ABC has a demand (which is deterministic) for 27,000 DVD's per month. The cost of a DVD is $2.30 and the holding cost is 30 percent of the cost of the product
What is the probability of the success : What is the probability of the success and Will this work to preserve approximately all pairwise distances with high probability? Why
Number of failures with oxygen masks : The fire department has a number of failures with its oxygen masks and is evaluating the possibility of outsourcing the preventive maintenance to the manufactur
How enterprises firms improve their security environment : The assignment is to promote awareness of various security threats, and to develop a better understanding of how enterprises/business firms improve.
Calculate the unit product cost and total gross margin : Calculate the unit product cost and total gross margin for each of the three product lines using the following methods: (a) physical measure method
Describe missing values and pick a technique : Describe missing values and pick a technique that we have not discussed in this class to handle them 3. Discuss why and when do we need to use data.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Describe the scope of the project and control measures

Describe the scope of the project and control measures - describe the goals and objectives of the project and include a high-level overview of all project deliverables.

  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.

  What zoom levels do rendering artifacts become visible

Rendering fractals at high zoom levels demands great arithmetic precision. Implement the same fractal using four different representations of numbers: complex64, complex128, big. Float, and big. Rat. How do they compare in performance and memory u..

  Write a program that reads records containing an employee

Write a program that reads records containing an employee number and an hourly rate for several employees and stores these in a heap.

  1 for a 77t truck with gross vehicle weight gvw of 136078

1. for a 77t truck with gross vehicle weight gvw of 136078 kg with dual rear tyres and a tyre inflation pressure is 120

  Display all columns and all rows from the employees table.

Write SELECT statements for the following questions. Make sure to include the statement execution, including the resulting data.

  Create set of cases for accompanying dentist office system

Create a set of use cases for the accompanying dentist office system, but do not bother to identify the steps within each use case. (Just complete the information at the top of the use case form.) When new patients are seen for the first time, the..

  Write height-balanced tree code with backpointers

Write height-balanced tree code with backpointers, based on the height-balanced tree code - The programming language is C or C++; test your code before submission using the gcc or g++ compiler.

  Question about branch hazard

Provide a relevant example using MIPS instruction set architecture. Discuss the similarities and differences of the code will proceed it the branch is taken, vs if the branch is not taken, and explain how this affects the pipeline.

  Complete the following tasks for this project

Before you begin, open the Sweatshirt.doc document and review it. Notice that data has been added indicating what size t-shirt is needed for each individual attending the high school reunion.

  Writing a brief description of the algorithm

Given a BST and two numbers - a and b (where a ≤ b) - propose an algorithm that prints all the elements k of the BST that satisfy: k ≥ a and k ≤ b. Writing a brief description of the algorithm

  Evaluate the time complexity

Use pseudocode to describe the algorithm that puts the first four terms of a list of real numbers of arbitrary length in increasing order using the insertion.

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