ALGORITMOS GENÉTICOS
Cecília Reis
email: cmr@isep.ipp.pt
Programa
Síntese de Circuitos Combinatórios com Algoritmos
Genéticos
{ Introdução
{ Algoritmo Genético
{ Resultados da Simulação
{ Comparação dos Resultados
{ Análise da Escalabilidade
Definição do Problema
Codificação do Circuito
cromossoma
Os Operadores Genéticos
{ População Inicial: P = 3000
{ Taxa de Cruzamento: CR = 95%
{ Taxa de Mutação: MR = 5%
f10 = 2ni × no
f2 = f2 + 1 if gate type = wire
⎧ f1 , F < f10
F =⎨
⎩ f1 + f 2 , F ≥ f10
2-to-1 Multiplexer
13
Gset 6 Gset 4 Gset 3 Gset 2
12
Fitness Function ( F )
11
10
GA generated 2-to-1 Multiplexer circuit
9
10 100
Number of Generations (N )
19
18
17
10 100
Number of Generations (N )
26
Gset 6 Gset 4 Gset 3 Gset 2
25
Fitness Function ( F )
24
23
22
GA generated Four-bit Parity Checker circuit
21
20
10 100
Number of Generations (N )
Two-bit Multiplier
73
71
70
69
68
100 1000 10000 GA generated Two-bit Multiplier circuit
Number of Generations (N )
2-to-1 multiplexer
1000.00
One-bit adder
(Nav)
100.00
Four-bit parity
checker
10.00
T wo-bit multiplier
1.00 10.00
Gset 6 Gset 4 Gset 3 Gset 2 Gset 6 Gset 4 Gset 3 Gset 2
Gate Sets Gate Sets
100 100
Nav Fav
10 10
6-bit
6-bit
4-bit
4-bit
1
2-bit 1
Gset 6 Gset 4 2-bit
Gset 3 Gset 2 Gset 6 Gset 4
Gset 3 Gset 2
Full-adder Circuits
10000
100
1000
Nav
100 Fav
10
10
1 2-bit
1-bit
Gset 6 Gset 4 1
2-bit
Gset 3 Gset 2 1-bit
Gset 6 Gset 4 Gset 3 Gset 2