1 SODA Bites Some interesting ideas from SODA 2003.

50
1 SODA Bites SODA Bites Some interesting ideas from SODA 2003
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    218
  • download

    0

Transcript of 1 SODA Bites Some interesting ideas from SODA 2003.

Page 1: 1 SODA Bites Some interesting ideas from SODA 2003.

1

SODA BitesSODA Bites

Some interesting ideas from SODA 2003

Page 2: 1 SODA Bites Some interesting ideas from SODA 2003.

2

AnnouncementsAnnouncementsAnnouncementsAnnouncements

Join [email protected] for discussions(maintained by Charlie)

Theory Workshophttp://www.cs.cmu.edu/~maverick/TheoryWorkshop/

Page 3: 1 SODA Bites Some interesting ideas from SODA 2003.

3

Disclaimer

Page 4: 1 SODA Bites Some interesting ideas from SODA 2003.

4

““Learn Learn Adobe IllustratorAdobe Illustrator…"…"““Learn Learn Adobe IllustratorAdobe Illustrator…"…"

Steve Jobs

Page 5: 1 SODA Bites Some interesting ideas from SODA 2003.

5

My JobMy JobMy JobMy Job

Some Ideas from SODA 2003No CMUNo ApproximationNo Geometry

I am not going over papers, I am going over ideas.

Page 6: 1 SODA Bites Some interesting ideas from SODA 2003.

6

Your JobYour JobYour JobYour Job

Chip in ideas!(Optionally, go read the

papers.)

Page 7: 1 SODA Bites Some interesting ideas from SODA 2003.

7

Certifying Algorithms for RecognizingInterval Graphs and Permutation Graphs

Dieter Kratsch, Ross M. McConnell, Kurt Mehlhorn, Jeremy P. Spinrad

Page 8: 1 SODA Bites Some interesting ideas from SODA 2003.

8

Certifying AlgorithmsCertifying AlgorithmsCertifying AlgorithmsCertifying Algorithms

An algorithm for a decision problem that provides

a certificate with each answer it produces

AAxxyes / no

&certificate

yes / no&

certificate

Page 9: 1 SODA Bites Some interesting ideas from SODA 2003.

9

Bipartite Graph RecognitionBipartite Graph RecognitionBipartite Graph RecognitionBipartite Graph Recognition

CertificateShow a 2-coloring

Co-certificateShow an odd cycle

Page 10: 1 SODA Bites Some interesting ideas from SODA 2003.

10

Planar Graph RecognitionPlanar Graph RecognitionPlanar Graph RecognitionPlanar Graph Recognition

CertificateShow a planar embedding

Co-certificateShow a K5 or K3,3 subdivision

Page 11: 1 SODA Bites Some interesting ideas from SODA 2003.

11

Why Certifying Algorithms?Why Certifying Algorithms?Why Certifying Algorithms?Why Certifying Algorithms?

“In theory there is no difference between theory

and practice. In practice there is!”

But when the algorithms get complicated…

Certificate is a form of “bug-free” proof…

Page 12: 1 SODA Bites Some interesting ideas from SODA 2003.

12

Almost Catch-22Almost Catch-22Almost Catch-22Almost Catch-22

How do we verify a certificate?

Use another program as the verifier…

Make the verifier a certifying algorithm…

Certificate is a form of “bug-free” proof…

Page 13: 1 SODA Bites Some interesting ideas from SODA 2003.

13

Hardware ReliabilityHardware ReliabilityHardware ReliabilityHardware Reliability

Design MistakesFaults

Hard problem!

Page 14: 1 SODA Bites Some interesting ideas from SODA 2003.

14

Software ReliabilitySoftware ReliabilitySoftware ReliabilitySoftware Reliability

“Simple” programs can be checkedSoftware Reliability via run-time result-checkingWasserman, Blum [JACM 1997]

“Simple” programs can be proved correctThis simplicity is a subjective measure

Page 15: 1 SODA Bites Some interesting ideas from SODA 2003.

15

An Interesting PerspectiveAn Interesting PerspectiveAn Interesting PerspectiveAn Interesting Perspective

Let’s call a certificate “strong” if the verifier takes less time than known algorithms for the original problem.

Otherwise, call it “weak”.

Page 16: 1 SODA Bites Some interesting ideas from SODA 2003.

16

An ExampleAn ExampleAn ExampleAn Example

Bipartite Graph Recognition

Just try to do a 2-coloringO(n + m) time

Page 17: 1 SODA Bites Some interesting ideas from SODA 2003.

17

Bipartite Graph Co-Bipartite Graph Co-certificatecertificateBipartite Graph Co-Bipartite Graph Co-certificatecertificate

What needs to be verified?It’s a cycle.It’s an odd cycle.It’s an odd cycle of the input graph.

h A sequence of pointers to edges in the input i

Bottom line: O(n) time

Page 18: 1 SODA Bites Some interesting ideas from SODA 2003.

18

Bipartite Graph RecognitionBipartite Graph RecognitionBipartite Graph RecognitionBipartite Graph Recognition

… has a strong co-certificate.

Q: How about the certificate?Still need to read and verify the whole 2-coloring…

A: Weak

Page 19: 1 SODA Bites Some interesting ideas from SODA 2003.

19

A PhenomenonA PhenomenonA PhenomenonA Phenomenon

Authors assert that if one certificate is strong, the other is typically weak (p159).

Bipartite GraphInterval GraphPermutation Graph

There are other examples too…

ForbiddenSubstructureForbidden

Substructure

Page 20: 1 SODA Bites Some interesting ideas from SODA 2003.

20

I wonder…I wonder…I wonder…I wonder…

What can we say about this phenomenon?

Lower bound on O(max(t, t’)), or O(t£t’) ?How about harder problems like 3SAT?

Anyone?

Page 21: 1 SODA Bites Some interesting ideas from SODA 2003.

21

Improved Bounds on the Average Length ofLongest Common Subsequence

George S. Lueker

Page 22: 1 SODA Bites Some interesting ideas from SODA 2003.

22

LCS (not the one in MIT)LCS (not the one in MIT)LCS (not the one in MIT)LCS (not the one in MIT)

Let Ln be the length of the

Longest Common Subsequence of two random binary strings of length n.

Guess E[Ln].

Page 23: 1 SODA Bites Some interesting ideas from SODA 2003.

23

Good To KnowGood To KnowGood To KnowGood To Know

Sure, you all guessed it’s (n).

What’s the constant?

0.7880 – 0.8263

Page 24: 1 SODA Bites Some interesting ideas from SODA 2003.

24

Good To KnowGood To KnowGood To KnowGood To Know

Page 25: 1 SODA Bites Some interesting ideas from SODA 2003.

25

Selection with Monotone Comparison Costs

Sampath Kannan, Sanjeeve Khanna

Page 26: 1 SODA Bites Some interesting ideas from SODA 2003.

26

SelectionSelectionSelectionSelection

Given a list of n unsorted elements from a total order, find the r-th element in the sorted order.

r is called the rank of the element.

Page 27: 1 SODA Bites Some interesting ideas from SODA 2003.

27

Classic O(n) AlgorithmClassic O(n) AlgorithmClassic O(n) AlgorithmClassic O(n) Algorithm

Time Bounds for SelectionBlum, Floyd, Pratt, Rivest, Tarjan [JCSS 1973]

Median of Five

… …

… …

… …

… …

… …

… …

… …

… …

… …

… …

Page 28: 1 SODA Bites Some interesting ideas from SODA 2003.

28

In PracticeIn PracticeIn PracticeIn Practice

Comparisons are not constant time for complex objects.

StringsDatabases

Page 29: 1 SODA Bites Some interesting ideas from SODA 2003.

29

New ProposalNew ProposalNew ProposalNew Proposal

Query Strategies for Priced Information [STOC2000]

Charikar, Fagin, Guruswami, Kleinberg, Raghavan, Sahai

Each object has an associated “size”Comparison cost is a function of the two sizes

Sum, Product, Minimum, Nuts&Bolts…

Page 30: 1 SODA Bites Some interesting ideas from SODA 2003.

30

Monotone CostMonotone CostMonotone CostMonotone Cost

Increasing the size of one of the objects do not

decrease the cost of the comparison

Sum, Product, Minimum

Nuts&Bolts

Page 31: 1 SODA Bites Some interesting ideas from SODA 2003.

31

Competitive AnalysisCompetitive AnalysisCompetitive AnalysisCompetitive Analysis

Cost incurred by

our algorithm to compute

the function

value

Cost incurred by

an optimal proof that the function has such value

vs.

Page 32: 1 SODA Bites Some interesting ideas from SODA 2003.

32

Optimal Selection ProofOptimal Selection ProofOptimal Selection ProofOptimal Selection Proof

For each element x whose rank is not r,

compare x to the smallest y that lies between x and the rank-r

element.

x y

r

Page 33: 1 SODA Bites Some interesting ideas from SODA 2003.

33

The ChallengeThe ChallengeThe ChallengeThe Challenge

Cost of optimal proof is highly sensitive to

the rank of the element being selected

Many algorithms find pivots whose ranks approach r over iterations.Let’s say we are given the element of rank r+1.Can we do a pivot using it?

Page 34: 1 SODA Bites Some interesting ideas from SODA 2003.

34

Why MoF won’t workWhy MoF won’t workWhy MoF won’t workWhy MoF won’t work

Consider the sum cost function

r

Page 35: 1 SODA Bites Some interesting ideas from SODA 2003.

35

Let’s Try ThisLet’s Try ThisLet’s Try ThisLet’s Try This

Find the maximum element under the sum cost function.

Page 36: 1 SODA Bites Some interesting ideas from SODA 2003.

36

Almost Old SchoolAlmost Old SchoolAlmost Old SchoolAlmost Old School

10 sort xi’s by weight

20 maxIndex = 130 for i = 2 to n40 if xi > xmaxIndex then maxIndex = i

50 next i60 return maxIndex

Page 37: 1 SODA Bites Some interesting ideas from SODA 2003.

37

2-competitive Analysis2-competitive Analysis2-competitive Analysis2-competitive Analysis

The i-th comparison costs at most wi + wi+1

The total cost is at most

Optimal proof must read each element: wi

Page 38: 1 SODA Bites Some interesting ideas from SODA 2003.

38

SortingSortingSortingSorting

Selection’s big brother

The optimal proof is even more straightforward

Anyone?

Page 39: 1 SODA Bites Some interesting ideas from SODA 2003.

39

Pursuit-Evasion withImprecise Target Location

Günther Rote

Page 40: 1 SODA Bites Some interesting ideas from SODA 2003.

40

A Chasing GameA Chasing GameA Chasing GameA Chasing Game

Sheriff and ThiefTravel at the same speed

Page 41: 1 SODA Bites Some interesting ideas from SODA 2003.

41

Thief “Position”Thief “Position”Thief “Position”Thief “Position”

Thief can choose a nearby point to reveal as its location

Page 42: 1 SODA Bites Some interesting ideas from SODA 2003.

42

Realistic EnoughRealistic EnoughRealistic EnoughRealistic Enough

Sheriff makes decision based on the point reveal by Thief

Can Thief get away?(increase its distance from Sheriff indefinitely)

Page 43: 1 SODA Bites Some interesting ideas from SODA 2003.

43

AlasAlasAlasAlas

We don’t live inside a Hollywood movie…

Bad guys can win.

In Euclidean space, a smart Thief can increase the distance at a rate of

Page 44: 1 SODA Bites Some interesting ideas from SODA 2003.

44

My Ideal SolutionMy Ideal SolutionMy Ideal SolutionMy Ideal Solution

Page 45: 1 SODA Bites Some interesting ideas from SODA 2003.

45

I wonderI wonderI wonderI wonder

If the Sheriff can travel (1 + ) faster,

do we still need a vigilante?

Page 46: 1 SODA Bites Some interesting ideas from SODA 2003.

46

Directed Graphs RequiringLarge Numbers of Shortcuts

William Hesse

Page 47: 1 SODA Bites Some interesting ideas from SODA 2003.

47

Transitive ClosureTransitive ClosureTransitive ClosureTransitive Closure

Some algorithms depends on the diameter of the graph

Shortcuts

Page 48: 1 SODA Bites Some interesting ideas from SODA 2003.

48

Thorup’s ConjectureThorup’s ConjectureThorup’s ConjectureThorup’s Conjecture

The diameter of a directed graph can be made polylog by adding a

linear number of shortcuts

Thorup showed this is true for planar graphs

This paper says: NO

Page 49: 1 SODA Bites Some interesting ideas from SODA 2003.

49

Efficient Sequences of Trials

Edith Cohen, Amos Fiat, Haim Kaplan

Page 50: 1 SODA Bites Some interesting ideas from SODA 2003.

50

Take HomeTake HomeTake HomeTake Home

An incompetent attorney can delay a trial for months or years. A competent attorney can delay one even longer.

--- Evelle J. Younger (1918 – 1989) LA Times, March 3rd, 1971