• Keine Ergebnisse gefunden

Lecture 2: Introduction to sublinear algorithms

N/A
N/A
Protected

Academic year: 2021

Aktie "Lecture 2: Introduction to sublinear algorithms"

Copied!
12
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Lecture 2: Introduction to sublinear algorithms

Themis Gouleakis

April 20, 2021

(2)

Sublinear-time algorithms (examples)

Problem: Compute the diameter of a point set m points in metric spaceX.

Distances given by:

D=

0 d12 . . . d1m d21 0 ...

... . ..

dm1 . . . 0

Symmetric: dij=dji

Triangle inequality:dij<dik+dkj

(3)

Theorem

Diameter-Estimator returns a2-approximation to the actual diameter.

(4)

Sublinear-time algorithms (examples)

Problem: Number of connected components Input:G= (V,E),|V|=n

Goal: Estimatec=]connected components ofG.

Letnv :]of nodes in the connected component ofv. We need to estimate:c =P

v∈V 1 nv

Lemma

For all v ∈V , it holds that nˆ1

vn1

v ≤/2, wherenˆv = min{nv,2/}

(5)

Algorithm

Lemma

It holds that: Pr[|ˆc−˜c|> n/2]≤1/4

(6)

Finishing the proof

Theorem

Let c be the number of connected components of G and let˜c be the output of Algorithm3. Then,Pr[|c−˜c| ≤n]≥3/4.

Proof:

(7)

Property testing definitions

Computational problems (exact)

Search problems

x :R(x) ={y : (x,y)∈R}

v :{0,1}→R(value)

Goal: Findy = maxy∈R{v(y)}

Decision problems

(8)

Property testing definitions

Computational problems (approximate) Search problems

x :R(x) ={y : (x,y)∈R}

v :{0,1}→R(value) Goal: Find

y:v(y)>C· max

y∈R(x){v(y)}

Decision problems

(9)

Definitions for property testing

Definition

LetΠnbe a set of functionsf : [n]→Rn,n∈N. The union Π =∪n∈NΠnπof these sets will be called aproperty.

Oracle access: Queryi →f(i) Distance: Letδ(f,g) = |{i∈[n]:f(i)6=g(i)}|

n = Pri∈U[n][f(i)6=g(i)]

Distance from propertyΠ =∪n∈NΠn: – δΠ(f) =δ(f,Π) = ming∈Πn{δ(f,g)}

δΠ(f) =ifΠn=∅.

Query complexity:q :N×(0,1]→N

(10)

Definitions for property testing

Definition

Atesterfor a propertyπ is a probabilistic oracle machine that outputs a binary verdict that satisfies the following:

1. IfS ∈Π, then the tester accepts with probability at least 2/3.

2. IfS is-far fromΠ, then the tester accepts with probability at most 1/3

(11)

Examples

Problem: Testing convex position

Definition

A point setP is inconvex positionif every point inPbelongs to the convex hull ofP.

Definition

A setP ofnpoints is-farfromconvex positionif no setQof size (at most)nexists such thatP\Qis in convex position.

Goal: Design a tester that can distinguish the above in sub-linear time.

(12)

Tester

Completeness case: Clearly, ifP is in convex position, then any S⊆Pwill also be in convex position.

Soundness case:We need to show thatCONVEX TESTER rejects every point set that is-far from convex position with probability at least 2/3.

Referenzen

ÄHNLICHE DOKUMENTE

b) Show that M is associative. Using a computer program is fine, as long as you provide clear and well-documented code and structure the output in a readable form.. c) Show that

b) Show that M is associative. Using a computer program is fine, as long as you provide clear and well-documented code and structure the output in a readable form.. c) Show that

The so-called stability criterion (or Courant criterion) is const=c dt/dx where c is the maximum velocity and const=1. You want to simulate 500s. Determine dt and the number

Show that this semantics does not increase the expressive power of B¨ uchi automata, i.e., show that for each NBA A, there is an NBA B such that L(B) = SFL(A). Here, you may assume

Mathematische Grundlagen der Informatik RWTH

Construct the field of 4 elements by taking all polynomials with coefficients 0 and 1, and reduce modulo x 2 + x + 1.. Show that the 4 elements are: 0, 1, x, x

If the error probability of a binary symmetric code is p, calculate the prob- abilities for each of the three codes from the previous exercise that any received vector will be

[r]