Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you are presented with a very large set S of real numbers, and you'd like to approximate the median of these numbers by sampling.

image text in transcribed

Suppose you are presented with a very large set S of real numbers, and you'd like to approximate the median of these numbers by sampling. You may assume all the numbers in S are distinct. Let n ISI; we will say that a number x is an e-approximate median of S if at least nmbers in S are less than x, and at least -en numbers in S are greater than x. Consider an algorithm that works as follows. You select a subset scs uniformly at random, compute the median of S, and return this as an approximate median of S. Show that there is an absolute constant c, independent of n, so that if you apply this algorithm with a sample S' of size c, then with probability at least .99, the number returned will be a (.05-approximate median of S. (You may consider either the version of the algorithm that constructs S' by sampling with replacement, so that an element of S can be selected multiple times, or one without replacement.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

What do you think is likely to be Liams problem? Discuss.

Answered: 1 week ago