Spectral Partitioning: One way to slice a problem in half - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

Spectral Partitioning: One way to slice a problem in half

Description:

... information) but also geometrical coordinates (x,y) or (x,y, ... Simple Geometric Partitioner: Coordinate Bisection. 1. Compute median of x and y coordinates ... – PowerPoint PPT presentation

Number of Views:110
Avg rating:3.0/5.0
Slides: 24
Provided by: sma155
Category:

less

Transcript and Presenter's Notes

Title: Spectral Partitioning: One way to slice a problem in half


1
Spectral Partitioning One way to slice a problem
in half
C B
A
2
Laplacian of a Graph
2
?
G
v1
0
2
-1
-1
v2
0
-1
3
-1
-1
1
v3
-1
-1
3
-1

-1
3
-1
-1
v4
-1
-1
-1
3
-1
v5
0
v6
0
-1
-1
2
Battery VB volts
( )iidegree of node i
2
?
G
( )ij
2
?
-1 for edges i, j
G
3
Edge-Node Incidence Matrix
1 2 3 4 5 6
2
-1
-1
1
2
-1
3
-1
-1
MG
3

-1
-1
3
-1
4
-1
3
-1
-1
5
-1
-1
3
-1
6
-1
-1
2
7
8
T
MGMG
4
Spectral Partitioning

Express partition problem with linear
algebra! Partition vector xi ?1 denotes is
partition. ?(MGx) (MGx)T(MGx)xTMGMGxxT
x xT x 4( cross partition edges) Goal is
to minimize this for xi?1 and ?xi0. Bounded
above by minimizing over ball ?xi n.
n i1
T
2 i
2
5
Solve as an eigenvalue problem!
6
Geometric Mesh Partitioning
The Miller, Teng, Thurston, Vavasis Algorithm
C B
A
7
Graph Partitioning
  • Division of graph into subgraphs with goal of
    minimizing communication and maximizing load
    balance.

Geometric Methods
  • Uses not only the graph ( combinatorial
    information) but also geometrical coordinates
    (x,y) or (x,y,z) for the nodes.

8
Edge Separator Vertex Separator
C B
A
Remove Separator Edges
Nodes A?B ?C No edges between A and B
9
Simple Geometric Partitioner Coordinate Bisection
  • 1. Compute median of x and y coordinates
  • 2. Count edges along xmean(x) and ymean(y)
  • 3. Use cut which minimizes the two
  • OK for Bad

10
Theory vs. Practice
  • Random Graphs may have lousy separators
  • Practical Numerical Meshes often have good
    separators
  • Fact For numerical reasons, meshes have good
    aspect ratios
  • In 2-d
  • A1longest edge/shortest edge
  • A2circumsphere/inscribed sphere
  • A3diameter / volume(1/d)

11
Need Theoretical Class of Good Graphs
  • Defn k-ply neighborhood system closed disks no
    (k1) of which overlap
  • A (1,k) overlap graph for a k-ply system graph
    obtained by connecting centers of intersecting
    circles
  • (a,k) overlap graph connect centers if aDi?
    Dj?? (a lt 1)

3-ply
4-ply
12
Why is this useful?
  • Intuitively Good overlap graph bounded aspect
    ratio
  • Theoretical Theorems best proved about overlap
    graphs. Example
  • Geometric Separator Theorem

13
Geometric Separator Theorem
  • If G(a,k) overlap graph in d dimensions,
  • there exists a vertex separator with
  • O(a k(1/d) n((d-1)/d)) vertices.

In English All good overlap graphs behave as if
they are cubes. A d-cube with n vertices has a
separator of size n((d-1)/d).
1/3
?n
n
2/3
n
?n
14
Miller, Teng, Thurston, Vavasis algorithm for
finding separator
  • 1) Stereographic Projection
  • 2) Find centerpoint
  • 3) Conformal Map
  • 4) Find Great Circle
  • 5) Project Back
  • 6) Create Separator
  • Details ...

15
Step 1Stereographic Projection
N
Rd
Project P to sphere along the line to the north
pole.
P
S
Mercator Map
Ster Proj
Log z
Not cylindicrical projection!
16
Step 2 Find Centerpoint
  • Definition A Centerpoint is a point C such that
    every hyperplane through C roughly divides the
    points evenly.
  • Theorem Every finite set has a centerpoint --
    may be found my linear programming (not
    practical). Later A practical heuristic.

17
Step 3 Conformal Map to move centerpoint to
center of sphere
  • Why? Increases chances of a good cut.
  • Rotate and Dilate
  • Rotate centerpoint to (0,0,r)
  • Dilate centerpoint to (0,0,0)

18
Steps 4 through 6
  • 4) Cut with a random great circle.
  • 5) Stereographic projection back to the plane
  • from the sphere.
  • 6) Convert the circle in the plane to a
    separator.
  • DEMO!

19
Centerpoint Computation
  • Heuristic runs in linear time by computing
  • Radon points.
  • Definition q is a Radon point of a set of points
    P if PP1? P2 (disjoint union )
  • and q is in both the convex hull of
  • P1 and P2.
  • Convex hull -- smallest convex polygon
  • containing the set.

Convex Not Convex
20
Radon Points
Definition q is a Radon point of a set of points
P if PP1? P2 (disjoint union ) and q is in both
the convex hull of P1 and P2.

Examples (d2 points in d dims)
d2
d3
Radon Point
21
Computing Radon Pnts Linear Algebra
  • A point P is in the convex hull of a set of
    points Pi if and only if it has the form
    P??iPi??i1, ?i?0.
  • Solve
    0
  • Let c ??i ?-?i. The Radon point is then
  • ??i Pi/c?-?i
    Pi/c.

(
)( )
?1 ?d2
P1 P2 Pd2
. . .
1 1 1
Neg ?i
Pos ?i
Neg ?i
Pos ?i
22
Geometric Sampling
  • Select random sample of points.
  • Randomly replace d2 points with Radon pt
  • 1) Try a few random great circles (using normal
    dist)
  • 2) Weigh the normal vector in the moment of
    inertia direction

A few tricks
23
METIS and Parmetis
Write a Comment
User Comments (0)
About PowerShow.com