GASA Simulated Annealing
GASA Simulated Annealing
International Scholarly and Scientific Research & Innovation 2(11) 2008 3780 scholar.waset.org/1307-6892/6811
World Academy of Science, Engineering and Technology
International Journal of Computer and Information Engineering
Vol:2, No:11, 2008
d (W ( x ), W ( y )) d cd ( x, y ) for x, y D and for a metric d on Where F is the invariant set for the wi and d is the Hausdorff
R n .The real number c is called the contractivity of W . metric. As a consequence of this theorem, any subset R n can
d (W ( x),W ( y )) cd ( x, y ) then W is called a similarity. be approximated within an arbitrary tolerance by a self-similar
A family {w1 ,....wm } of contractions is known as Local set; i.e., given G ! 0 there exist contacting similarities
{w1 ,....wm } with invariant set F satisfying d ( E , F ) G .
Iterated function scheme (LIFS). If there is a subset F D
Therefore the problem of finding a LIFS {w1 ,....wm } whose
such that for a LIFS {w1 ,....wm }
m attractor F is arbitrary close to a given image I is equivalent
F wi ( F ) (1) § m ·
i 1 to minimizing the distance d ¨¨ I , wi ( I ) ¸¸ .
Then F is said to be invariant for that LIFS. If F is © i 1 ¹
invariant under a collection of similarities, F is known as a C. Fractal Image Coding
self-similar set.
The main theory of fractal image coding is based on iterated
Let S denote the class of all non-empty compact subsets of
function system, attractor theorem and Collage theorem.
D . The G -parallel body of A S is the set of points within
Fractal Image coding makes good use of Image self-similarity
distance G of A, i.e. in space by ablating image geometric redundant. Fractal
International Science Index, Computer and Information Engineering Vol:2, No:11, 2008 waset.org/Publication/6811
International Scholarly and Scientific Research & Innovation 2(11) 2008 3781 scholar.waset.org/1307-6892/6811
World Academy of Science, Engineering and Technology
International Journal of Computer and Information Engineering
Vol:2, No:11, 2008
III. GENETIC ALGORITHM Step 4: Next the process of reproduction is carried out on the
Genetic algorithms are procedures based on the principles strings to create a mating pool
of natural selection and natural genetics that have proved to be Step 5: The process of crossover and mutation is also carried
very efficient in searching for approximations to global out on the strings with probabilities of 0.8 and 0.05
optima in large and complex spaces in relatively short time. respectively.
The basic components of GA are: Step6: After the termination criteria is met with, the value of
x Representation of problem to be solved string with minimum fitness function value is
considered as optimum value.
x Genetic operators ( selection, crossover, mutation)
x Fitness function
IV. NECESSITY OF INCORPORATION OF SA
x Initialization procedure
GA starts by using the initialization procedure to generate the The performance of GA can be improved by introducing
first population. The members of the population are usually more diversity among the strings so that pre-mature
strings of symbols (chromosomes) that represent possible convergence can be eliminated. This can be achieved by
solutions to the problem to be solved as shown in Fig 2 replacing weaker strings i.e. the strings having low fitness
11010 1001001 value with better strings i.e. strings having higher fitness
0 1 0 ------ 0 0 1 0
value. Simulated Annealing may be used for this purpose.
International Science Index, Computer and Information Engineering Vol:2, No:11, 2008 waset.org/Publication/6811
x1 x2 x3 xn
V. HYBRID GENETIC-SIMULATED ANNEALING TECHNIQUE
Fig. 2 String representing ‘N’ variables
Simulated Annealing method follows the cooling process of
Each of the members of the population for the given molten metals through annealing. At high temperature, the
generation is evaluated and according to its fitness value, it is atoms can move freely and these movements get restricted to
assigned a probability to be selected for reproduction. Using shape gradually a structure of crystal as the temperature is
this probability distribution, the genetic operators select some reduced slowly. If the temperature is not reduced properly, the
of the individuals. By applying the operators to them, new system may end up in a polycrystalline state, which may have
individuals are obtained. The mating operator selects two higher energy state than the crystalline state. Based on this
members of the population and combines their respective annealing process, this algorithm begins with an initial point
chromosomes to create offspring as shown in Fig 3. The and a high temperature T. A second point is created at random
mutation operator selects a member of the population and .in the vicinity of the initial point and the difference in the
changes part of the chromosome as shown in Fig 4. function values 'E at these two points is calculated. If the
second point has a smaller function value, the point is
Parent A 0 0 0 0 0 1 0 1 accepted; otherwise the acceptance of that point is measured
Parent B 1 1 1 0 1 0 0 1 by Boltzmann probability distribution
In order to incorporate SA into GA, the strings resulted
Child A 0 0 1 0 1 0 0 1 from GA after performing the mutation operation in every
Child B 1 10 0 0 1 0 1 generation are modified by SA. New strings are generated
from current strings via a perturbation mechanism. The
Fig 3: Binary crossover similarity of the range block with the domain blocks computed
from new string and current string are calculated. If the
Child A 0 1 0 1 1 domain block constructed from the new string matches closely
with the range block than the current string domain block,
then the new string is carried to the next generation. If the new
New Child A 0 11 1 1 string is a deteriorated string, the probability of acceptance
P (T ) is calculated as, P (T ) exp 'E / T where 'E is the
Fig. 4 Binary mutation difference between mean squared error of current string
domain block and new string domain block when compared
The algorithm for the genetic algorithm can be represented as with the range block. T is the current temperature at which
follows the new solution is generated. A random number between 0
Step 1:As the genetic algorithm takes pairs of strings, we and 1 is then generated. If the value of P (T ) is greater than or
create a random number of strings depending upon our equal to the random number, the new string is passed to the
necessity and also note down their decoded values next iteration; otherwise, if P (T ) is less than random number,
along with setting a maximum allowable generation
number tmax the move is discarded and the current string is carried to the
Step 2:Using the mapping rule we next find out the next iteration. This completes one iteration and in the next
corresponding values of above created strings. iteration, the temperature is lowered and the acceptance or
Step 3: Using these values the fitness function values are rejection of the new strings selected by perturbation
found out. mechanism is decided by the same process.
The flowchart of HGASA based FIC is as shown in Fig 5.
International Scholarly and Scientific Research & Innovation 2(11) 2008 3782 scholar.waset.org/1307-6892/6811
World Academy of Science, Engineering and Technology
International Journal of Computer and Information Engineering
Vol:2, No:11, 2008
Start
This range
No block covered
More range cells ?
within tolerance
Done
Yes No
Fit domain to
range(rotate,shri Fit Search
Yes
Select range block nk,scale);Keep within for best
from partition list track of best fit error domain
so far Tol ? ?
No Yes
International Science Index, Computer and Information Engineering Vol:2, No:11, 2008 waset.org/Publication/6811
No
Yes
End of domain list ?
VI. RESULTS AND DISCUSSIONS This work is carried out in MATLAB 7.0 version and the
In this paper a gray level image of 256 u 256 size with 256 original image is classical 256 u 256 Lena and Barbara face
gray levels is considered. A Range block of size 4 u 4 and image coded with 8 bits per pixel. An optimal bit allocation
strategy for GA is as follows: 14 bits for the location of
Domain blocks of size 8 u 8 are considered. The domain
matched domain block (horizontal and vertical coordinate), 3
blocks are mapped to the range block by affine
bits for isomorphic types. For each of the range block fractal
transformations and the best domain block is selected using coding includes 17 bits allocation. During the iteration process
the above proposed technique. In the above technique the of the above proposed methods the gray level values beyond 0
individual chromosome is coded as shown in Fig 6 and 255 are replaced by average of its four neighbours to
11010101 10010011 010 avoid block diverging. Figs 7 and 8 show the reconstructed
images using FIC with GA and HGASA as search algorithms
x y along with the original images of Barbara and Lena. The
Domain block coordinates Isometry type various parameters of HGASA are shown in Table 1.The
Coding scheme of FIC using GA and SA is given in Table 2.
Fig 6: Binary code for searching domain block As seen from Table 2 the PSNR of the reconstructed image
using HGASA has a better value than the image reconstructed
The mean squared error (MSE) and PSNR considered in this through normal GA. Since the proposed technique involves
work are given by two evolutionary algorithms joined together, the
N Rows N Cols 2 computational time of HGASA is slightly more than that of
1
MSE= ¦ ¦ f i, j d i, j (6) normal GA. But this can be compensated through the
N Rows N Cols i 1 j 1
improvement in the reconstructed image quality. So it can be
§ 255 2 · concluded that the proposed method can be used in all
PSNR = 10 log10 ¨ ¸ (7) applications of image compression where the quality of
¨ MSE ¸
© ¹ reconstructed image is demanding.
Where N Rows N Cols 256
International Scholarly and Scientific Research & Innovation 2(11) 2008 3783 scholar.waset.org/1307-6892/6811
World Academy of Science, Engineering and Technology
International Journal of Computer and Information Engineering
Vol:2, No:11, 2008
Fig. 7 (a) original image (b) reconstructed image using GA (c) reconstructed image using HGASA
International Science Index, Computer and Information Engineering Vol:2, No:11, 2008 waset.org/Publication/6811
Fig. 8 (a) original image (b) reconstructed image using GA (c) reconstructed image using HGASA
International Scholarly and Scientific Research & Innovation 2(11) 2008 3784 scholar.waset.org/1307-6892/6811
World Academy of Science, Engineering and Technology
International Journal of Computer and Information Engineering
Vol:2, No:11, 2008
International Scholarly and Scientific Research & Innovation 2(11) 2008 3785 scholar.waset.org/1307-6892/6811