Applied Algorithms and Optimization

48
1 Gabriel Robins Department of Computer Science University of Virginia www.cs.virginia.edu/robins Applied Algorithms and Optimization

description

Applied Algorithms and Optimization. Gabriel Robins Department of Computer Science University of Virginia www.cs.virginia.edu/robins. “Make everything as simple as possible, but not simpler.” - Albert Einstein (1879-1955). Algorithms. Solution. exact. approximate. Speed. fast. - PowerPoint PPT Presentation

Transcript of Applied Algorithms and Optimization

Page 1: Applied Algorithms  and Optimization

1

Gabriel Robins

Department of Computer Science

University of Virginiawww.cs.virginia.edu/robins

Applied Algorithms and Optimization

Page 2: Applied Algorithms  and Optimization

2

“Make everything as simple as possible, but not simpler.”- Albert Einstein (1879-1955)

Page 3: Applied Algorithms  and Optimization

3

Solutionexact approximate

fast

slow

Spee

d Short & sweet Quick & dirty

Slowly but surely Too little, too late

Algorithms

Page 4: Applied Algorithms  and Optimization

4

Complexity

Page 5: Applied Algorithms  and Optimization

5

Fabrication PhysicalLayout

StructuralDesign

xyw

z

Requirements

e.g., “secure communication”

LogicDesign

Z = x + y w

VLSI DesignFunctional

Design

C(M) = Mp mod N

Design Specification

Dataencryption

PhysicalLayout

Page 6: Applied Algorithms  and Optimization

6

Placement & Routing

Page 7: Applied Algorithms  and Optimization

7

Trends in Interconnecttime

Page 8: Applied Algorithms  and Optimization

8

2

Steiner Trees

3

Page 9: Applied Algorithms  and Optimization

9

Steiner TreesSteiner Trees

Page 10: Applied Algorithms  and Optimization

10

Iterated 1-Steiner AlgorithmQ: Given pointset S, which point p minimizes |MST(S È p)| ? Algorithmic idea: Iterate!

Theorem: Optimal for £ 4 points

Theorem: Solutions cost < 3/2 · OPT

Theorem: Solutions cost £ 4/3 · OPT for “difficult” pointsets

In practice: Solution cost is within 0.5% of OPT on average

Page 11: Applied Algorithms  and Optimization

11

Group Steiner Problem

Theorem: o(log # groups) · OPT approximation is NP-hardTheorem: Efficient solution with cost = O((# groups)e) · OPT " e>0

Page 12: Applied Algorithms  and Optimization

12

Graph Steiner Problem

Algorithm: “Loss-Contracting” polynomial-time approximationTheorem: 1 + (ln 3)/2 ≈ 1.55 · OPT for general graphsTheorem: 1.28 · OPT for quasi-bipartite graphsCurrently best-known; won the 2007 SIAM Outstanding Paper Prize

Page 13: Applied Algorithms  and Optimization

13

Bounded Radius Trees

Algorithm:

Input:• points / graph• any e > 0

Output: tree T with• radius(T) £ (1+e) ·

OPT• cost(T) £ (1+2/e) ·

OPT

Page 14: Applied Algorithms  and Optimization

14

Low-Degree Spanning Trees

MST 1: cost = 8max degree = 8

MST 2: cost = 8max degree = 4

Theorem: max degree 4 is always achievable in 2D

Theorem: max degree 14 is always achievable in 3D

Page 15: Applied Algorithms  and Optimization

15

Low-Skew Trees

Page 16: Applied Algorithms  and Optimization

16

A

B

Circuit Testing

Theorem: # leaves / 2 probes are necessary Theorem: # leaves / 2 probes are sufficientAlgorithm: linear time

Page 17: Applied Algorithms  and Optimization

17

Improving Manufacturability

Theorem: extremal density windows all lie on Hanan gridAlgorithms: efficient fill analyses and generation for VLSIEnabled startup company: Blaze DFM Inc. - www.blaze-dfm.com

Page 18: Applied Algorithms  and Optimization

18

Landmine Detection

Page 19: Applied Algorithms  and Optimization

19

Moving-Target TSP

Origin

Page 20: Applied Algorithms  and Optimization

20

3

2

1

4

Theorem: “waiting” can never helpAlgorithms: · efficient exact solution for 1-dimension

· efficient heuristics for other variants

Moving-Target TSP

Page 21: Applied Algorithms  and Optimization

21

Robust Paths

Page 22: Applied Algorithms  and Optimization

22

Minimum Surfaces

Page 23: Applied Algorithms  and Optimization

23

time

Evolutionary Trees

Page 24: Applied Algorithms  and Optimization

24

protein

DNA

Polymerase Chain Reaction (PCR)

BiologicalSequences

Page 25: Applied Algorithms  and Optimization

25

Discovering New Proteins

flyNK

gpPAF

bovOP

ratPOT

ratCCKA

humD2humA2a

hamA1ahamB2

bovH1

ratNK1

flyNPYmusGIR

humSSR1

humC5a

ratRTA

ratG10d

chkP2y

dogCCKB

dogAd1

ratD1

ratNPYY1

ratNTR

humTHR

humMAShumEDG1

hum5HT1a

musTRH

humIL8

RBS11musdelto

ratBK2humMRG

humfMLF

musEP2

ratV1a

herpesECcrnvHH2

cmvHH3

bovLOR1ratANG

dogRDC1

humRSC

chkGPCR

musP2uratODOR

ratLH

ratCGPCR

humACTHhumMSH

musEP3humTXA2

humM1

musGnRH

bovETAmusGRP

flyNK

gpPAF

bovOP

ratPOT

ratCCKA

humD2humA2a

hamA1ahamB2

bovH1

ratNK1

flyNPYmusGIR

humSSR1

humC5a

ratRTA

ratG10d

chkP2y

dogCCKB

dogAd1

ratD1

ratNPYY1

ratNTR

humTHR

humMAShumEDG1

hum5HT1a

musTRH

humIL8

RBS11musdelto

ratBK2humMRG

humfMLF

musEP2

ratV1a

herpesECcrnvHH2

cmvHH3

bovLOR1ratANG

dogRDC1

humRSC

chkGPCR

musP2uratODOR

ratLH

ratCGPCR

humACTHhumMSH

musEP3humTXA2

humM1

musGnRH

bovETAmusGRP

????

Page 26: Applied Algorithms  and Optimization

26

Primer Selection Problem

Input: set of DNA sequencesOutput: minimal set of covering primers

Theorem: NP-completeTheorem: W(log # sequences)·OPT within P-timeHeuristic: O(log # sequences)·OPT solution

Page 27: Applied Algorithms  and Optimization

27

Genome Tiling Microarrays

Algorithms: efficient DNA replication timing analysesPapers in Science, Nature, Genome Research

Page 28: Applied Algorithms  and Optimization

28

Radio-Frequency Identification

Generalized “Yoking Proofs”

Physically Unclonable Functions

Inter-Tag Communication

1 Tag: 75% 2 Tags: 94% 3 Tags: 98% 4 Tags: 100%

Multi Tags

Tagging BulkMaterials

Page 29: Applied Algorithms  and Optimization

29

UVa Computer Science

Page 30: Applied Algorithms  and Optimization

30

“Gabe aiming to solve a tough problem”for details see www.cs.virginia.edu/robins/dssg

Page 31: Applied Algorithms  and Optimization

31

Lets Collaborate!

• What I offer:• Practical problems & ideas• Experience & mentoring• Infrastructure & support

• What I need:• PhD students• Dedication & hard work• Creativity & maturity

Goal: your success!

Page 32: Applied Algorithms  and Optimization

32

Proof: Low-Degree MST’s

Page 33: Applied Algorithms  and Optimization

33

“You want proof? I’ll give you proof!”

Page 34: Applied Algorithms  and Optimization

34

• Compute MST’ over P’

Proof: Low-Degree MST’s

1

2

3

4

56

7 8

Idea: |MST’(P)| = |MST(P)|

Output: MST’ over P

Theorem: max MST degree £ 4

Input: pointset PFind: MST(P)

• Perturb region 5-8 points,yielding pointset P’

Page 35: Applied Algorithms  and Optimization

35

“I think you should be more explicit here in step two.”

Page 36: Applied Algorithms  and Optimization

36

Low-Degree MST’s in 3D

Idea: |MST’(P)| = |MST(P)|

• Perturb boundary pointsto yield pointset P’

• Compute MST’ over P’• Output: MST’ over P

Theorem: max MST degree in 3D is £ 6 + 8 = 14Theorem: lower bound on max MST degree in 3D is ³ 13

Input: 3D pointset PFind: MST(P)

Partition space:• 6 square pyramids• 8 triangular pyramids

Page 37: Applied Algorithms  and Optimization

37

On the flight deck of the nuclear aircraft carrier USS Eisenhowerout in the Atlantic ocean

Page 38: Applied Algorithms  and Optimization

38On the bridge of the nuclear aircraft carrier USS Eisenhower

Page 39: Applied Algorithms  and Optimization

39At the helm of the SSBN nuclear missile submarine USS Nebraska

Page 40: Applied Algorithms  and Optimization

40Refueling a B-1 bomber in mid-air from a KC-135 tanker

Page 41: Applied Algorithms  and Optimization

41Aboard an M-1 tank at the National Training Center, Fort Erwin

Page 42: Applied Algorithms  and Optimization

42At U.S. Strategic Command Headquarters, Colorado Springs

Page 43: Applied Algorithms  and Optimization

43Pentagon meeting with U.S. Secretary of Defense Bill Perry

Page 44: Applied Algorithms  and Optimization

44Patch of the Defense Science Study Group (DSSG)

Page 45: Applied Algorithms  and Optimization

45

Page 46: Applied Algorithms  and Optimization

46

UVa Computer Science

Page 47: Applied Algorithms  and Optimization

47

UVa Computer Science

Page 48: Applied Algorithms  and Optimization

48

Density Analysis

Input:• n´n layout• k rectangles• w´w window Algorithms:

O(n2) time O(k2)

++

22

nwkk logk

wn O

Theorem: extremal density windows all lie on Hanan grid

Output: allextremal density w´w windows