You are on page 1of 10

3.120 4.

1
G.Quetcing Theory o

30. If the tpm of a Markovchain


is I •
, find the steady-state.
distributionof the chain.
[AU 20111
Chapter 4
Ans. Given the tpm P QUEUEING THEORY
Let the steady - state probability 4.1 THE BIRTH AND DEATH PROCESS
distributionbe
= (Zl,Z2). Then n P = n,
where + 3t2 =
4.1.0 Introduction
The intuitive idea behind a birth and death process is that of
— 'til some population, that is gaining new members through births and losing
old members through deaths-such as human population. But in many
applications of this process in computer scienceh the populatiou is the
, 't2J customers in a queueing system. The term customer may refer to a,
computerjob to be processed,an I/O request, a messagearrived to a
communicationsystem etc. Customer arrivals correspond to births and
customer departures (after service) correspond to deaths.
and
The birth and death process has wide applications in a variety of
fields such as queueing, traffic maintenancey population growth
Substitutcin (1), + 27t = 1 37t controlling epidemics ctc. In the next section wc shall use it to queueing
theory.

Definition4.1.1 Birth and death process


31. Find the transition probability matrix of the process Let X(t) represent the population at time t (or the number of the
represented
by the state transition diagram. customers at time t) in which two types of events occur namely births,
Ans. The (pm is 0.4 0.3 which contributes to its increase and deaths, which contributes to its
decrease. Then the continuous time discrete random process X(t) will:
1 0.4 0.5 0.1 0.1
state space {0, t, 2, 3 } is called -a birth and death process if the
0.3 0.3 0.4 0.2 following postulates ase satisfied.
0.3
3 0.3 0.2 0.5
if X(t) = n, that is the size of the population at time ( is n or
• 7,04-
0.5 the system is in state .n, let A , n be the rate at. which
d00

events Size event 4.1
( 3 (

5 (

B
at
( ,2 ( ( (vii) 00
) 0
( ( Of Then に 目
P P 【
The


【 Probability
with ) 三
) X occu
0 the b
【一
2 Oddeath
X X X deaths
( 3 十 くen popPn Pn (t)
0 ロ
日 一
last

(0 「

0
0 5 0.
406
、 【 (
0 be and 0「 death.

occ 日 h
三 +
デ 0ロ X
a60三
目 a
日 0
deaths
(
十 ー
1 1 d

0
0

十 ロ P
[X
birthd

0- コ


e
de ご
、 一

=) ch
abd

and
0

the
birth
fo
=
コ P
[X (
0
and
death

b
ミ occ

g

(
+ + 冐
0
that


0 e 0 means time 一
birth or 守
birth +
三 三
0
守 一
十 ( ご 00
death
g


十 be of depende
( 「
00000
and and “ 0g00X(t) +
0 ロ in 当 the
titu
三 the
0 三
一 +
0
目 0
(
ご exclusive
death
death

y
process the ロ
8 and
esplet

0

depe
0
(h)0:
+ p 「目 X

each (h) 戸
de 00
obability
口 in

and白
d
ぎ (t)
: g
p “
0 0

00
、 十

be
exhaustive 「
Obab
thatthe詩
0
「 last
三 h) in
be 0
( 0
state 三 the 目 0h8
. 』 を

0= 3(X0
000
+ 当)
「 。
+
Pn
+
0「
Pn-l(t)[ln
(0笆don =

0。

0= =
0


+ 0(h) [since

:
=0 d=on

+ 「

0

0
) 、
+
0e70e


0:


)
QÜeueing'Iheory 4.5
4.4 Probability and Queueing

Pte
lim - - (An Pn(t) +
Tbe birth and death processes depends on the infinite set of
differentialequations (1) and (2) and the initial conditions. car,
be shown that the set of equations (1) and (2) has a solution
P (t) for all n 2 0 and t undet very general conditions€But is
very difficult to obtain the solution analytically, except for some
-specialcases, namely,pure birth process and pure death process,
lim
i. The mutuallyexclusiveexhaustive cases we have used in the above
derivation are sometimes known as the nearest neighbour
This is true for all n 2 1 assumptions.

Since the state space has O, Definition4.1.3 Pure birth and pure death process
we find PO (t + h) by a
In a birth-death process if(hc death rates g n Ofor all n =
similar reasoning. A = O
thenthe pocess is called a pure-birth process and if the birth rates
Po(t+h) - PO(t) (1 -10 (h) +0 state diagram
for all n . then the process is called a pure-death proccs.•,.
pure-binh
That is if arrival alone is considered the process is called
processand if departurealone is considered, the process is pure-death
- PO(t) -Ach PO(t) + PI(t) 0(h) process.

po(t + h) PO(t) - -10 h Pc g) + PI (t) + o (h)t 4.1.4 Probability Pn (t) ot pure birth process X (t)
Let X (t) be a pure birth process
= O,for all n 3, ...

Let the birth rate In for all n 0, I, 2, ....


Po(t) = lim

Initial conditions PO(0) — = O for j 0.


Po(t)
Then the equations (1) and (2) of birth and death process reduce to
If the initial state is i, then the initial c.onditionsarg by
get Pn(t) (3)
Pi(0) z. 1 and Pj(0) = 0 for j i, solving (1) and (2) we Pn(t)
for n 0, which givesthe probabilitydistributionof X (t) (4)
and pto(t)
D
4.7
4.6 Probability and Queueing Queueingfheory

We shall apply Laplace transform to solve this system Ofdifferenti 12


2
equations.

The Laplace transform of Pn (t) is denoted by L [Pn (t)) 12


2
and L = J e-st Pn (t) = Fn (S)

13
3
and L LP'n(t))

ApplyingLaplace transform to (3) we get

n-

for all n 0

Y Y is the (n +1).- stage Erlang random variablewith parameter

Applying to (4) we get

Herea = n + I,
= -1 Fo(s)
fy(t) = rot + 1)
(s +1) PO(s) POO

1
PO(s)

¯
in(S)
•.1ThenL {f e
95i;.
Rcytriting (5) successively, we get

An +1
n!
4.8
e Probability and Queuelng QueueingTheo e 4.9
77teoryo
n! Imllarlywe can derive the probability function for pure death
1
n +1, frocess by putting An = O and n = 0, 1, 2,
and g n

2,

An PPI (t)
TakingLaplace transform we get
L {4fY(t)} = Fn(s)
n
L ifY(t) = L {Pn(t)}
If Y is an (n —r + 1) stage Erlang process with parameter g, then

x fY(0 = Pn(t) e—gt (ßt)n r


rcn-r+l)
e Attn e—gt t)

L {fy(t)}

a &ribtnirn parameter1 t or Poisson•


rate
I
:
tbe Püscn
a Enb a
is also known
birth rate 1.
L{.fy
4.11

service.
the capacity to provide
D 410 •Probability and Queueing77teoo• ismore than
for senice stations, queues
thedemand counters 'in railway
booking
1
: Ticket
For example
capacity.tcserve so that
than the
for serviceis less many facilities.
fy( t) = (f) The demand
facility time or too
9 there is lot of
idle
if there is no vehicle
for refilling
1
a petrol bunk, tbe workers are
fy(t) = Pr(t) For example: In is idle, both the pump and
petrolthen the system
FfY(t) .fdle.
theory
4,2.1Use of queueing in such a way that
customersare arrivingto service facility have
If facilities have to wait, then we
serGce
eitherthe customeror the
queueing problem.
an optimum balance between
Queueingtheoryis used to achieve
time of customers and idle time of
he cost associatedwith waiting
facilitiesso that the profit is maÆmized.
o$ervice
fib
ship, a computer
A customermaybe a person, a machine, letter, a
Since ) Pr (t) = I, we have 1 Pro Ü
ob to be processed etc.

• 2.2 Queueing system or Queueing Model


.1 r! A queueingsystemcan be dcscribed as consisting of customers
Givingfor serviceto a servicefacility,waiting for service, if it is not
4.2 QUEUEING THEORY *vailableimmediately,and leaving the service centre after being serviced.

One of the most useful areas of application of probabflitytheory There are many types of queueing systems. But all .of them can
is that of queueingtheory or the study.of waitingline phenomena. e comPletclydescribed by the following characteristics.
Queues are found everywhere in our day-to-daylife. For examplein
industries, schools, colleges, hospitals, libraries,' banks, post offices, .23 Characteristicsot queueing system or queueing
theatres, ticket booking for trains and buses etc. Queues are also" •
common in computer waiting systems, queues of enquiries waiting to
be processed by an interactive computer system. Queues of data base The input pattern or arrival pattern
rcquests, queues of input/outputrequests etc. Queueingproblem arises; The input pattern represents
in the follovhpgcases the manner in which _customers arrive
or serviceand join the queueing
system. The actual time of arrival of
o o

O o

o o

Ο o

3.

2 O Ο
ιη Ο o
Ο

2• 12
E. O Ο

3
3
o o
5. 5-
09 2

Ο Ο

Ο o

o OQ
2
ο

0 E
5.
O 0

o ο
g o
g.

a o e.
ο

02

ΙΙ ιι
ιι

Β e-

ΙΙ

E.

O O
9
1

00 SymbolG E
L C

、We
0 00000E m00
0 一

0
=
owin
~00W
for
c 冖
dis
Ge

E
一 、 Markov
me m003m000
、00m00 … ribution.
0
exponential

number ribu
0
0
number
乛 models

0 ~ 0


00
which 00

00 0m00m000W 0

ri

0 0
in、 0 consider
RO FO
8m00冖

0 0

o r 、
0
一= FCFS
0

= 00W0

0 0 一 0
~ 00
usual 00
gamma)
一 = 一


0冖 time
000mmq0 h
~ 0 0 "
distribution.

0

parallel
、 、

00 00 00W0
the Sta 0 00000
0m000 400
8m08m00 p

:, 0
00 冖
… 冖牙 =


me
w 0
=
:三000 00 or 00、
00W
·0
· 十… 000 00000 00m0 冖
er er
= 0

0 …
-

00
00 、 =
0-
00~ 0
~
0 00
~
0 冖
0

the con
0一 、 · 0


0 0 K. 0
、 00
0
=
0
= · util= … 00n
channels.
0 0
~ 冖
=
0
目 冖
0 一
or 冖00
= out.
一0 000 me~
0 00m000
40m
served)
= =
=
mo om 冖 一
0
ed
一、 一 00

0 0
-0W0
ner 0 一
average
00000 一
000q 冖0 、 冖
0
一 0
= m00 =

一or 0
·0
~
0 0

00
· 00
0
waiting
we er. ·
00 tme


=
0M02 ·the
·0 、
0-0
00m 0m0冖
0000

0 on
0

0 、 0


er
0 =
0

- 0

00 、


一 in 冖 4
·2 9
W

·6
customers tha Markovian
can he model
S

=
There Difference


=
durrng
0
be 0 To system
Le here Co

found. find 冖
一 mean 冖
mean waiting mean

-em de sys waiting i.e.


em
waiting

a
the冖 a
steady
Ill are

e 、 P冖
and be 冖
a
tem
ent
the

4

= 冖冖 he
()e srnglc Poisson) waiting waiting length

time …
tune
一 ·differential
state and
customers time time
average

0
sys
we 冖 0
: average
te
cu 一
b


em. be
need server probability in
in 0

e 十
before


erv- probability
time time


service)

巴 0m0 h, he
mutually
the the
or
queueing

h, 冖 W50冖 0 冖 冖 Markovian
average
in in expected
system

- consider 一
system) being

V he the the
leanng 0
冖 rate queuerng
equations
Of

= ~
exclusive
“ 0 system queue

:0
served)

> service 冖
When queue.
models exactly number

he ~ the
customers




nd 一
.0 probabili 冖

i.e.

ways,Consider ra 冖 sys i.e•


0
巴 00
冖 he
n.

e em Pn


birth
related customers
the
the Of
customers
in whena t)
in


expected
冖 a
一 冖
expected
y e 冖 is
which
the

一 P 0 乛 一 冖
、 rmc冖
he
and
0
冖 冖

here
customers
~ 一 probability
… in
00 P 十 cust d both
n
0 h). 冖
yrncrs are > 二

urc + 一

~ 一

1
-
n 三
1 『

3
Hence
h
~
·lim 0E8 pn

;
, 冖 冖
一 …一

(v)
bytotal
we 冖
I
is
This
Pn
0
Pn
h "
Pn
h) 0 thc
durrng
thc

system
dep no

findnot … em
sys departure

、 =

s
true + 冖

+
small (t) probability



十 + pn
em

PO
rue h h)
| h h) h2
Pn。 Pn(t)
e hashas
has during
when |

for

t) Pn 冖
and
(t) + erv
theorem 十 |

durrng

independently
all
(t) 一 (t) p冖
(t) higher
1) 1)
customers
·P (t) 、
P no h.
0 c
0

0 1· 冖 ·
一P 冖
time the

because
十 |1
0

de

一·
0 arrival
arrival) tome

0m0 interval
time

An n 丶 ri in and
interval

000
:P
十 in 、
time
十 |1 are ,P
|
ing一
tun h) one h.
time

一P · p





becomes
n
÷

e
00
1 P

dep 冖


arrival

and~and
h.

& 0 冖 冖 冖
departure)
no
0


0



一 · lhJ11-ßn-lhJ



u

0 dep。
0 and 00
08
一 罝。 、 。
0

al
andarrival
e
0 in departure
in 、

亠·
h) 一
00000
一 ·」
冖 In 粼
4
一 h .
0 PO PO 0p
steady-sta
" 冖
丶 冖
in |
20P0 冖

+
h) …
+
" (5) 冖
c,
h
+h)-Po(0
| h)
h PO
+ßl) pn(t)pn 冖
、 、
一 0 、
+VIPI

P
冖 。
PO

(t)
0
PI , !丶 冖 冖 0
¯(11+ß1)P1

, 0 = 丶 冖
0
and p 0
PO 。 一
,
P PO
and
(t) po 丶

~ 丶 0
t) pc

(t)
+ 丶一
一 +

+ß2P,

0 PI 一

for PO (t) 0
2, 0
V for 、
@1h)
3

Ⅳ 丶
1
,丶
lh

You might also like