13.07.2015 Views

Buffering in the Layout Environment - Computer Engineering ...

Buffering in the Layout Environment - Computer Engineering ...

Buffering in the Layout Environment - Computer Engineering ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Algorithm: Buffered Path(G, B, s, t)Input: Rout<strong>in</strong>g graph G = (V, E), Buffer library BSource node s ∈ V and s<strong>in</strong>k node t ∈ VOutput: Buffered path label<strong>in</strong>g m1. Q ← {(C, 0, 0, t)}2. while Q ≠ ∅ do3. (c, d, m, u) ← extract m<strong>in</strong>(Q)4. if c = 0, return m5. if u = s,push (0, d + R d · c, m, s) <strong>in</strong>to Q and prunecont<strong>in</strong>ue6. for each (u, v) ∈ E dod ′ ← d + R(u, v) · (c + C(u, v)/2)push (c + C(u, v), d ′ , m, v) <strong>in</strong>to Q and prune7. if p(u) = 1 and m(u) = 08. for each b ∈ B dod ′ ← d + R(b) · c + K(b)m(u) = bpush (C(b), d ′ , m, u) <strong>in</strong>to Q and pruneFigure 28.4: Pseudo code of <strong>the</strong> dynamic programm<strong>in</strong>g based buffered path algorithm.3.2 Graph Based ApproachThe graph based approaches [3,4] first transform <strong>the</strong> rout<strong>in</strong>g graph G = (V, E) <strong>in</strong>to a buffer graphG B = (V B , E B ) and <strong>the</strong>n obta<strong>in</strong> <strong>the</strong> m<strong>in</strong>imum delay buffered path by <strong>the</strong> Dijkstra’s shortest pathalgorithm.driverbufferbufferbufferb1ub2b1vb2buffers<strong>in</strong>k(a)(b)(c)Figure 28.5: Buffer graph.The node set V B of <strong>the</strong> buffer graph is composed by <strong>the</strong> source node, s<strong>in</strong>k nodes and a set of5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!