SlideShare a Scribd company logo
1 of 13
BY
CM.UVASHREE
IMSC(CS)
ENCODING METHODS
IN GENETIC
ALGORITHM
In this method of encoding, each
chromosome is a string of numbers,
representing numbers in a sequence. Each
chromosome is essentially an arrangement, or
permutation, of a set of genes. The search
space is the total number of possible
permutations, and the population is the
current set of permutations.
Encoding
TYPES OF ENCODING SCHEMES
Depending on the structure of
encoding, they can be
classified into 1-dimensional
and 2- dimensional Binary,
Octal, Hexadecimal,
permutation and value
encodings are 1- dimensional
and Tree encoding is 2-
dimensional .
*BINARY ENCODING
*OCTAL ENCODING
*HEXADEMICAL ENCODING
*PERMUTATION ENCODING
*VALUE ENCODING
*TREE ENCODING
Binary Encoding:
This is the most common form of encoding.
In this encoding each chromosome is
represented using a binary string. In binary
encoding every chromosome is a string of
bits, 0 or 1 [4]
Chromosome 1 110101110010
Chromosome2 011010011101
Binary Encoding
OCTAL ENCODING:
In this encoding chromosome is represented
using octal numbers (0-7).
Chromosome1 06254524
Chromosome2 63726425
Octal Encoding
Hexadecimal Encoding:
In this encoding chromosome is
represented using Hexadecimal
numbers (0-9, A-F)
Chromosome1 97AE
Chromosome2 A2C6
Hexadecimal Encoding
Permutation Encoding is used in ordering
problems. In this, each chromosome
represents position in a sequence e.g. in
travelling salesman problem, the string of
numbers represent the sequence of cities
visited by salesman. Sometimes corrections
have to be done after genetic operation is
completed.
Permutation Encoding:
Chromosome1 1 5 2 3 5 2 6 4 6 9 8
Chromosome2 8 6 3 6 3 9 6 3 1 5 8
Permutation encoding
Value Encoding:
In value encoding, each chromosome is
represented as the string of some
value. Value can be integer, real
number, character or some object. In
case of Integer values, the crossover
operator applied are same as that
applied on binary encoding. Values can
be anything connected to problem,
form numbers, real numbers or chars to
some complicated objects.
Chromosome1 1.23, 2.12, 3.14, 0.34, 4.62
Chromosome2 ABDJEIFJDHDDLDFLFEGT
Value Encoding
Value Encoding can be used in neural
networks. This encoding is generally use in
finding weights for neural network.
Chromosome’s value represents
corresponding weights for inputs.
Tree Encoding:
Tree encoding is mainly used for
evolving programs or expressions for
genetic programming. In tree encoding
every chromosome is a tree of some
objects, such as functions or
commands in programming language.
For example representation of an
expression in binary tree
Tree encoding is good for evolving programs. LISP is useful in this encoding as it
helps in constructing tree for parsing and hence the crossover and mutation can
be performed easily. Chromosomes are functions represented in a tree.
Chromosome A Chromosome B
( + x ( / 5 y ) ) ( do_until step wall )
THANK YOU

More Related Content

Similar to Encoding1

Lecture Notes: EEEC6440315 Communication Systems - Information Theory
Lecture Notes:  EEEC6440315 Communication Systems - Information TheoryLecture Notes:  EEEC6440315 Communication Systems - Information Theory
Lecture Notes: EEEC6440315 Communication Systems - Information TheoryAIMST University
 
Neuro genetic key based recursive modulo 2 substitution using mutated charact...
Neuro genetic key based recursive modulo 2 substitution using mutated charact...Neuro genetic key based recursive modulo 2 substitution using mutated charact...
Neuro genetic key based recursive modulo 2 substitution using mutated charact...ijcsity
 
Dna data compression algorithms based on redundancy
Dna data compression algorithms based on redundancyDna data compression algorithms based on redundancy
Dna data compression algorithms based on redundancyijfcstjournal
 
Implementation of Lossless Compression Algorithms for Text Data
Implementation of Lossless Compression Algorithms for Text DataImplementation of Lossless Compression Algorithms for Text Data
Implementation of Lossless Compression Algorithms for Text DataBRNSSPublicationHubI
 
A new dna based approach of generating keydependentmixcolumns
A new dna based approach of generating keydependentmixcolumnsA new dna based approach of generating keydependentmixcolumns
A new dna based approach of generating keydependentmixcolumnsIJCNCJournal
 
2015 bioinformatics go_hmm_wim_vancriekinge
2015 bioinformatics go_hmm_wim_vancriekinge2015 bioinformatics go_hmm_wim_vancriekinge
2015 bioinformatics go_hmm_wim_vancriekingeProf. Wim Van Criekinge
 
Signal processing of dna and protein sequences
Signal processing of dna and protein sequencesSignal processing of dna and protein sequences
Signal processing of dna and protein sequencesNitesh Kumar
 
Develop and design hybrid genetic algorithms with multiple objectives in data...
Develop and design hybrid genetic algorithms with multiple objectives in data...Develop and design hybrid genetic algorithms with multiple objectives in data...
Develop and design hybrid genetic algorithms with multiple objectives in data...khalil IBRAHIM
 
Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...
Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...
Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...IJAAS Team
 
Loss less DNA Solidity Using Huffman and Arithmetic Coding
Loss less DNA Solidity Using Huffman and Arithmetic CodingLoss less DNA Solidity Using Huffman and Arithmetic Coding
Loss less DNA Solidity Using Huffman and Arithmetic CodingIJERA Editor
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomonAniruddh Tyagi
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomonaniruddh Tyagi
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomonaniruddh Tyagi
 
Bioinformatics t8-go-hmm wim-vancriekinge_v2013
Bioinformatics t8-go-hmm wim-vancriekinge_v2013Bioinformatics t8-go-hmm wim-vancriekinge_v2013
Bioinformatics t8-go-hmm wim-vancriekinge_v2013Prof. Wim Van Criekinge
 

Similar to Encoding1 (20)

Lecture Notes: EEEC6440315 Communication Systems - Information Theory
Lecture Notes:  EEEC6440315 Communication Systems - Information TheoryLecture Notes:  EEEC6440315 Communication Systems - Information Theory
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
 
Neuro genetic key based recursive modulo 2 substitution using mutated charact...
Neuro genetic key based recursive modulo 2 substitution using mutated charact...Neuro genetic key based recursive modulo 2 substitution using mutated charact...
Neuro genetic key based recursive modulo 2 substitution using mutated charact...
 
Dna data compression algorithms based on redundancy
Dna data compression algorithms based on redundancyDna data compression algorithms based on redundancy
Dna data compression algorithms based on redundancy
 
Implementation of Lossless Compression Algorithms for Text Data
Implementation of Lossless Compression Algorithms for Text DataImplementation of Lossless Compression Algorithms for Text Data
Implementation of Lossless Compression Algorithms for Text Data
 
Lossless
LosslessLossless
Lossless
 
Lossless
LosslessLossless
Lossless
 
A new dna based approach of generating keydependentmixcolumns
A new dna based approach of generating keydependentmixcolumnsA new dna based approach of generating keydependentmixcolumns
A new dna based approach of generating keydependentmixcolumns
 
2015 bioinformatics go_hmm_wim_vancriekinge
2015 bioinformatics go_hmm_wim_vancriekinge2015 bioinformatics go_hmm_wim_vancriekinge
2015 bioinformatics go_hmm_wim_vancriekinge
 
Signal processing of dna and protein sequences
Signal processing of dna and protein sequencesSignal processing of dna and protein sequences
Signal processing of dna and protein sequences
 
Develop and design hybrid genetic algorithms with multiple objectives in data...
Develop and design hybrid genetic algorithms with multiple objectives in data...Develop and design hybrid genetic algorithms with multiple objectives in data...
Develop and design hybrid genetic algorithms with multiple objectives in data...
 
Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...
Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...
Design and Analysis of an Improved Nucleotide Sequences Compression Algorithm...
 
Loss less DNA Solidity Using Huffman and Arithmetic Coding
Loss less DNA Solidity Using Huffman and Arithmetic CodingLoss less DNA Solidity Using Huffman and Arithmetic Coding
Loss less DNA Solidity Using Huffman and Arithmetic Coding
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
What are Chromosomes ?
What are Chromosomes ?What are Chromosomes ?
What are Chromosomes ?
 
Karyotyping
KaryotypingKaryotyping
Karyotyping
 
Chromosomal Abnormalities
Chromosomal AbnormalitiesChromosomal Abnormalities
Chromosomal Abnormalities
 
Bioinformatics t8-go-hmm wim-vancriekinge_v2013
Bioinformatics t8-go-hmm wim-vancriekinge_v2013Bioinformatics t8-go-hmm wim-vancriekinge_v2013
Bioinformatics t8-go-hmm wim-vancriekinge_v2013
 
LDPC Encoding
LDPC EncodingLDPC Encoding
LDPC Encoding
 

More from shreeuva

software engineering
software engineeringsoftware engineering
software engineeringshreeuva
 
Complier design
Complier design Complier design
Complier design shreeuva
 
web programming
web programmingweb programming
web programmingshreeuva
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligenceshreeuva
 
recovery system
recovery systemrecovery system
recovery systemshreeuva
 
operating system
operating systemoperating system
operating systemshreeuva
 
network security and tls
network security and tlsnetwork security and tls
network security and tlsshreeuva
 
Datamining spatial database
Datamining spatial databaseDatamining spatial database
Datamining spatial databaseshreeuva
 
prim's and kruskal's algorithm
prim's and kruskal's algorithmprim's and kruskal's algorithm
prim's and kruskal's algorithmshreeuva
 

More from shreeuva (10)

software engineering
software engineeringsoftware engineering
software engineering
 
Complier design
Complier design Complier design
Complier design
 
web programming
web programmingweb programming
web programming
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
 
recovery system
recovery systemrecovery system
recovery system
 
operating system
operating systemoperating system
operating system
 
network security and tls
network security and tlsnetwork security and tls
network security and tls
 
Datamining spatial database
Datamining spatial databaseDatamining spatial database
Datamining spatial database
 
jdbc
jdbcjdbc
jdbc
 
prim's and kruskal's algorithm
prim's and kruskal's algorithmprim's and kruskal's algorithm
prim's and kruskal's algorithm
 

Recently uploaded

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

Encoding1

  • 2. In this method of encoding, each chromosome is a string of numbers, representing numbers in a sequence. Each chromosome is essentially an arrangement, or permutation, of a set of genes. The search space is the total number of possible permutations, and the population is the current set of permutations. Encoding
  • 3. TYPES OF ENCODING SCHEMES Depending on the structure of encoding, they can be classified into 1-dimensional and 2- dimensional Binary, Octal, Hexadecimal, permutation and value encodings are 1- dimensional and Tree encoding is 2- dimensional .
  • 4. *BINARY ENCODING *OCTAL ENCODING *HEXADEMICAL ENCODING *PERMUTATION ENCODING *VALUE ENCODING *TREE ENCODING
  • 5. Binary Encoding: This is the most common form of encoding. In this encoding each chromosome is represented using a binary string. In binary encoding every chromosome is a string of bits, 0 or 1 [4] Chromosome 1 110101110010 Chromosome2 011010011101 Binary Encoding
  • 6. OCTAL ENCODING: In this encoding chromosome is represented using octal numbers (0-7). Chromosome1 06254524 Chromosome2 63726425 Octal Encoding
  • 7. Hexadecimal Encoding: In this encoding chromosome is represented using Hexadecimal numbers (0-9, A-F) Chromosome1 97AE Chromosome2 A2C6 Hexadecimal Encoding
  • 8. Permutation Encoding is used in ordering problems. In this, each chromosome represents position in a sequence e.g. in travelling salesman problem, the string of numbers represent the sequence of cities visited by salesman. Sometimes corrections have to be done after genetic operation is completed. Permutation Encoding: Chromosome1 1 5 2 3 5 2 6 4 6 9 8 Chromosome2 8 6 3 6 3 9 6 3 1 5 8 Permutation encoding
  • 9. Value Encoding: In value encoding, each chromosome is represented as the string of some value. Value can be integer, real number, character or some object. In case of Integer values, the crossover operator applied are same as that applied on binary encoding. Values can be anything connected to problem, form numbers, real numbers or chars to some complicated objects.
  • 10. Chromosome1 1.23, 2.12, 3.14, 0.34, 4.62 Chromosome2 ABDJEIFJDHDDLDFLFEGT Value Encoding Value Encoding can be used in neural networks. This encoding is generally use in finding weights for neural network. Chromosome’s value represents corresponding weights for inputs.
  • 11. Tree Encoding: Tree encoding is mainly used for evolving programs or expressions for genetic programming. In tree encoding every chromosome is a tree of some objects, such as functions or commands in programming language. For example representation of an expression in binary tree
  • 12. Tree encoding is good for evolving programs. LISP is useful in this encoding as it helps in constructing tree for parsing and hence the crossover and mutation can be performed easily. Chromosomes are functions represented in a tree. Chromosome A Chromosome B ( + x ( / 5 y ) ) ( do_until step wall )