hw4 - CS 573 Graduate Algorithms Fall 2011 HW 4(due in...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 573: Graduate Algorithms, Fall 2011 HW 4 (due in class on Tuesday, November 1st) This homework contains five problems. Read the instructions for submitting homework on the course web page . In particular, make sure that you write the solutions for the problems on separate sheets of paper. Write your name and netid on each sheet. Collaboration Policy: For this home work students can work in groups of up to three students each. Only one copy of the homework is to be submitted for each group. Make sure to list all the names/netids clearly on each page. Note on Proofs: Details are important in proofs but so is conciseness. Striking a good balance between them is a skill that is very useful to develop, especially at the graduate level. 1. (20 pts) Sampling is a powerful methodology in randomized algorithm design although we did not get to see it formally yet. The idea is that a small random sample of the input retains many interesting properties of the original input with good probability; one can then run an algorithm on the sample instead of the original input. This problem gives an example. Let S be a set of n numbers (assume they are distinct) and say you want to approximate their median. A number x is an-approximate median of S if at least ( 1 2- ) n numbers in S are less than x and at least ( 1 2- ) n are greater than x . Consider the following algorithm. Pick a subset S ⊆ S uniformly at random and return the median of the sample S as the approximate median. Show that there is a constant c independent of n such that if the sample size | S | ≥ c then the output is a 0 . 05-approximate median with probability at least 0 . 99. The99....
View Full Document

This note was uploaded on 01/22/2012 for the course CS 573 taught by Professor Chekuri,c during the Fall '08 term at University of Illinois, Urbana Champaign.

Page1 / 3

hw4 - CS 573 Graduate Algorithms Fall 2011 HW 4(due in...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online