08.01.2013 Views

Back Room Front Room 2

Back Room Front Room 2

Back Room Front Room 2

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

106<br />

ENTERPRISE INFORMATION SYSTEM VI<br />

Procedure FindMSB<br />

/* Return the minimum buffer size */<br />

(i) Nmax = FindNmax; /* Find the maximum number of supportable streams */<br />

(ii) Compute S buf<br />

min<br />

(iii) return S buf<br />

min ;<br />

end FindMSB;<br />

using Equation 3.<br />

Procedure FindNmax<br />

/* Return the maximum number of supportable streams */<br />

(i) Considering only statistical service guarantee preq, let N rs<br />

i denote the maximum of supportable<br />

retrieving streams of movie i without any other system load. Find the N rs<br />

i , where i ∈ [1,m1].<br />

(ii) Considering only statistical service guarantee preq, let N ws<br />

i<br />

denote the maximum of supportable<br />

recording streams of generated by recording device i without any other system load.<br />

Find the N ws<br />

i , where i ∈ [1,m2].<br />

(iii) Ncurmax =0; Scurmax={0 ...0, 0 ...0}<br />

(iv) For (X rs<br />

1 =1; X rs<br />

1 ≤ N rs<br />

1 ; X rs<br />

1 ++)<br />

......<br />

For (X rs<br />

m1<br />

For (X ws<br />

1<br />

......<br />

For (X ws<br />

m2<br />

{<br />

=1; Xrs<br />

m1<br />

=1; X ws<br />

1<br />

=1; Xws<br />

m2<br />

≤ N rs<br />

m1<br />

; Xrs<br />

m1 ++)<br />

≤ N ws<br />

1 ; X ws<br />

1 ++)<br />

ws<br />

≤ Nm2 ; Xws m2 ++)<br />

S ′ = {X rs<br />

1 ...X rs<br />

m1 ,Xws 1 ...X ws<br />

m2 };<br />

If CheckConstraint(S ′ ) == TRUE /* CheckConstraint is defined in Figure 4 */<br />

Then<br />

{<br />

If �m1 i=1 Xrs i + �m2 i=1 Xws i >Ncurmax<br />

Then<br />

Ncurmax = �m1 i=1 Xrs i + �m2 i=1 Xws i ; Scurmax={X rs<br />

1 ...X rs<br />

m1 ,Xws 1 ...X ws<br />

m2 }<br />

}<br />

}<br />

(v) return Ncurmax;<br />

end FindNmax;<br />

Figure 6: Algorithm to solve MSB problem

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

Saved successfully!

Ooh no, something went wrong!