25.01.2015 Views

Download Full Issue in PDF - Academy Publisher

Download Full Issue in PDF - Academy Publisher

Download Full Issue in PDF - Academy Publisher

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.

JOURNAL OF COMPUTERS, VOL. 8, NO. 6, JUNE 2013 1537<br />

Pi<br />

is set as the location of the ith ant, consider<strong>in</strong>g that<br />

the randomness of cod<strong>in</strong>g for ant colony and constra<strong>in</strong>t<br />

conditions for probability amplitude of the quantum state,<br />

the <strong>in</strong>itialization of BIQACA is expressed as:<br />

j<br />

⎡P<br />

⎤<br />

ix<br />

⎡cosφi1s<strong>in</strong>θi1 cosφi 2s<strong>in</strong>θi2<br />

cosφim s<strong>in</strong>θim<br />

⎤<br />

⎢ j ⎥ ⎢ ⎥<br />

⎢Piy ⎥ =<br />

⎢<br />

s<strong>in</strong>φi1s<strong>in</strong>θi1 s<strong>in</strong>φi 2s<strong>in</strong>θi2<br />

s<strong>in</strong>φim s<strong>in</strong>θim<br />

⎥<br />

(1)<br />

⎢<br />

j<br />

P ⎥ ⎢<br />

iz ⎣ cosθi1 cosθi2<br />

cosθ<br />

⎥<br />

⎣ ⎦<br />

<br />

im ⎦<br />

Where ϕij<br />

= 2πrand<br />

, θ ij = πrand<br />

, rand are random<br />

numbers between (0, 1) ; i ∈ { 1,2,<br />

,<br />

n}<br />

, j ∈ { 1,2,<br />

,<br />

m}<br />

, n<br />

for number of ant; m for number of qubit. 3 coord<strong>in</strong>ates<br />

of qubit are regarded as 3 paratactic genes, and each ant<br />

conta<strong>in</strong>s 3 gene cha<strong>in</strong>s, which are called X-cha<strong>in</strong>, Y-<br />

cha<strong>in</strong> and Z-cha<strong>in</strong> respectively, each gene cha<strong>in</strong> stands<br />

j j j<br />

for an optimal solution P ix , P iy , P iz .<br />

B. Transformation of Solution Space<br />

In the optimization of specific problems <strong>in</strong> BIQACA,<br />

transformation between the unit quantum space and solution<br />

space of optimization problem is needed, mak<strong>in</strong>g<br />

each probability amplitude of qubit on ant correspond to<br />

an optimization variable of solution space. In this paper,<br />

the function extremum problem, TSP problem and QoS<br />

multicast rout<strong>in</strong>g problem are taken as examples to expla<strong>in</strong><br />

the process.<br />

Solution space transformation approach for function<br />

extreme-value problem: propose the doma<strong>in</strong> of def<strong>in</strong>ition<br />

j<br />

of variable X is its solution space [ a j , b j ] , record the jth<br />

qubit <strong>in</strong> P i as [ cos ϕ<br />

] T<br />

ij s<strong>in</strong>θij<br />

,s<strong>in</strong> ϕij<br />

s<strong>in</strong>θij<br />

, cosθij<br />

by us<strong>in</strong>g<br />

l<strong>in</strong>ear transformation, then the correspond<strong>in</strong>g solution<br />

space variable is:<br />

j<br />

⎡X<br />

⎤ 1 cos s<strong>in</strong> 1 cos s<strong>in</strong><br />

ix<br />

⎡ + ϕij θij − ϕij θij<br />

⎤<br />

⎢ j ⎥ 1 ⎢ b<br />

1 s<strong>in</strong> s<strong>in</strong> 1 s<strong>in</strong> s<strong>in</strong><br />

j<br />

X<br />

ϕ<br />

iy<br />

ij<br />

θij ϕij θ ⎥⎡<br />

⎤<br />

⎢ ⎥ = ij<br />

2<br />

⎢<br />

+ −<br />

⎥⎢ a<br />

⎥<br />

⎢<br />

j<br />

j<br />

X<br />

⎥ ⎢ 1+cos θij<br />

1-cosθ<br />

⎥ ⎣ ⎦<br />

⎣ iz ⎦ ⎣<br />

ij ⎦<br />

Solution space transformation approach for TSP problem<br />

and QoS multicast rout<strong>in</strong>g problem: this paper has<br />

designed two-layer transformational model <strong>in</strong> the aspect<br />

of solution space aim<strong>in</strong>g at the specific characteristic of<br />

TSP problem and QoS multicast rout<strong>in</strong>g problem, the<br />

model conta<strong>in</strong>s two transformations--l<strong>in</strong>ear transformation<br />

and lead transformation.<br />

L<strong>in</strong>ear transformation: qubit is transformed from unit<br />

space to lead space. Propose the def<strong>in</strong>itional doma<strong>in</strong> of<br />

j<br />

lead message variable, r , is [0,1] , formula (2) is used to<br />

calculate correspond<strong>in</strong>g lead solution space variable<br />

j j j T<br />

[ τ , τ , τ ] .<br />

ix iy iz<br />

Lead transformation: impact strength of lead message<br />

and <strong>in</strong>spire message to solution could be regulated by<br />

adjust<strong>in</strong>g lead factor and <strong>in</strong>spire factor. Strategy is selected<br />

accord<strong>in</strong>g to lead probability and roulette to carry out<br />

optimal decode. Suppose the current node as i, select<br />

node j as the next visit<strong>in</strong>g node:<br />

(2)<br />

p<br />

k<br />

ij<br />

ω υ<br />

⎧ rij<br />

() t iλij<br />

() t<br />

j∈<br />

allowed<br />

⎪<br />

ω υ<br />

= ⎨ ∑ ris<br />

() t i λis<br />

() t<br />

(3)<br />

⎪⎪<br />

s∈allowedk<br />

⎩0 otherwise<br />

ω υ<br />

where r () t i λ () t is for message of path, r () t stands<br />

ij<br />

ij<br />

for lead message, ω is lead factor; λ () t represents <strong>in</strong>spire<br />

message λ (t)= 1<br />

ij<br />

d ij<br />

ij<br />

, d<br />

ij<br />

means the distance from<br />

node i to node j, υ is <strong>in</strong>spire factor;<br />

allowed = {1, 2, m}<br />

− tabu means the set of available<br />

k<br />

k<br />

node may selected by ant k at the time t; tabu<br />

k<br />

is used to<br />

keep the rout<strong>in</strong>g table which obta<strong>in</strong>ed by transform<strong>in</strong>g ant<br />

k.<br />

C. Def<strong>in</strong>ition of Fitness Function<br />

A variety of fitness function needs to be designed for<br />

different optimal problems, the more fitness it is, the better<br />

solution for <strong>in</strong>dividual.<br />

Fitness function of extreme-value problem: suppose<br />

f ( X i<br />

) as the ith solution, fit( X i<br />

)<br />

ij<br />

is the adaptive value<br />

for the ith solution. m<strong>in</strong> and max denote the m<strong>in</strong>imum<br />

value and maximum value of function, respectively.<br />

⎧ 1<br />

⎪<br />

f( Xi<br />

) ≥ 0<br />

m<strong>in</strong> fit( X ) 1 (<br />

i<br />

)<br />

i<br />

= ⎨ + f X<br />

⎪<br />

⎩1 + abs( f ( X<br />

i)) f ( X<br />

i) < 0<br />

⎧ 1 + f( Xi) f( Xi) ≥ 0<br />

⎪<br />

max fit( X<br />

i<br />

) = ⎨ 1<br />

⎪<br />

1 + f( Xi<br />

) < 0<br />

⎩ abs( f ( X<br />

i<br />

))<br />

TSP fitness function: fitness of <strong>in</strong>dividual<br />

X<br />

i<br />

= { x1, x2, , xm}<br />

of TSP is def<strong>in</strong>ed as the reciprocal of<br />

path length represented by <strong>in</strong>dividual.<br />

fit(<br />

Ti<br />

)<br />

(4)<br />

(5)<br />

1<br />

fit( X<br />

i<br />

) = (6)<br />

DX ( )<br />

Fitness function for multicast rout<strong>in</strong>g problem:<br />

Wc<br />

( Wd<br />

⋅ Φ(<br />

TD − Dmax<br />

) + Wdj<br />

⋅ Φ(<br />

TDJ − DJ max ) + W pl ⋅ Φ(<br />

TPL − PLmax<br />

))<br />

TC<br />

= (7)<br />

where TD, TDJ, TPL and TC represent the delay, delay<br />

jitter, packet loss rate and cost of multicast tree<br />

respectively. Wc=0.5, Wd=0.2, Wdj=0.1 and Wpl=0.2,<br />

represent the proportion of the cost, delay, delay jitter and<br />

packet loss rate <strong>in</strong> the fitness function respectively;<br />

⋅ Φ(X ) is a penalty function, when ⋅X ≤ 0 , ⋅Φ( X ) = 1 , or<br />

else, ⋅Φ( X ) = 0. 5 . It can be seen from the above equation<br />

that, the fitness value is the bigger the better.<br />

D. Ant Position Update<br />

In the solution space of optimal problem, suppose<br />

τ ( X i<br />

) is the strength of pheromone of kth ant at X<br />

i<br />

, <strong>in</strong>itial<br />

moment all set as some constant: η ( X i<br />

) stands for<br />

i<br />

© 2013 ACADEMY PUBLISHER

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

Saved successfully!

Ooh no, something went wrong!