SlideShare a Scribd company logo
1 of 23
Download to read offline
Extended Summary of
«Code Building Genetic
Programming»
UNIVERSITÀ DEGLI STUDI DI TRIESTE
DIPARTIMENTO DI INGEGNERIA E ARCHITETTURA
TESI DI LAUREA TRIENNALE
Laurenda:
Martina MAIONE
Relatore:
Prof. Andrea DE LORENZO
Anno Accademico 2020-2021
Obiettivo
della
ricerca
• Programmi che supportano tipi di dati
arbitrari
• Manipolazione di tipi polimorfici
• Utilizzo di codice preesistente
• Senza configurazioni aggiuntive
• Codice sorgente eseguibile in ogni ambiente
Problema
Non tutti i sistemi di sintesi
di programmi vanno bene!
Problema
PushGP
• Programmi che supportano tipi di dati arbitrari
• Manipolazione di tipi polimorfici
• Utilizzo di codice preesistente
• Senza configurazioni aggiuntive
• Codice sorgente eseguibile in ogni ambiente
Problema
G3P
• Programmi che supportano tipi di dati arbitrari
• Manipolazione di tipi polimorfici
• Utilizzo di codice preesistente
• Senza configurazioni aggiuntive
• Codice sorgente eseguibile in ogni ambiente
Code Building Genetic
Programming
Soluzione
CBGP: Come
funziona?
Genotipo
Grafo diretto e aciclico
• Input e costanti
• Funzioni: argomento → valore
Come generare
il fenotipo
• Nodi del DAG
• Tipo di ritorno
Input:
• Compilazione espressioni
→ codice eseguibile
Processo:
Compilazione
• Foglie: caricate nello stack
• Funzione:
Ogni argomento ha un valore del
tipo corretto → funzione valida
Valutazione del
programma
• Sul tipo di dato restituito
• Sui casi di addestramento
Valutazione
sperimentale
1° Test set
• Days Between
• Prefix Paths
• Filter Bounds
Risultati ottenuti
General Program Synthesis
Benchmark Suite
• Negative To Zero
• Median
• Smallest
• Vector Average
• Compare String Lengths
• Replace Space With Newline
• Number IO
2° Test set
Risultati ottenuti
CBGP
Riutilizzo di porzioni di codice
preesistente
No configurazioni aggiuntive
Programmi con tipi di dati
arbitrari e polimorfici
Ricerche
future
Test set più ampio
Più informazioni rispetto ai
tipi di dati
Algoritmi di ottimizzazione
Bibliografia
Code Building Genetic Programming, Edward Pantridge
Swoop Cambridge, Massachusetts, USA Lee Spector
Amherst College, Hampshire College, and UMass
Amherst Amherst, Massachusetts, USA
A Survey of Genetic Programming and Its Applications,
Milad Taleby Ahvanooey, Qianmu Li, Ming Wu, Shuo
Wang
Comparison of Linear Genome Representations for
Software Synthesis, Pantrdige, E., Helmuth, T., and
Spector, L.
General Program Synthesis Benchmark Suite, T.
Helmuth, Lee Spector, Hampshire College & University
of Massachussetts, Amherst
Sitografia
Wikipedia https://www.wikipedia.org
Hampshire College https://www.hampshire.edu
Grazie per l’attenzione
UNIVERSITÀ DEGLI STUDI DI TRIESTE
DIPARTIMENTO DI INGEGNERIA E ARCHITETTURA
TESI DI LAUREA TRIENNALE
Laurendo:
Martina MAIONE
Relatore:
Prof. Ing. Andrea DE LORENZO
Anno Accademico 2020-2021
Polimorfismo
Un’espressione il cui
tipo è descritto da una
classe A può assumere
valori di un qualunque
tipo descritto da una
classe B sottoclasse di
A
Veicolo
Macchina
Bicicletta
Problema: PushGP
• Polimorfismo per inclusione
• Tipi generici
Nuovo tipo → nuovo stack
NB: No funzioni → inutile
→ Funzioni in anticipo → tipi in anticipo → no polimorfismo parametrico
Veicolo Macchina Bicicletta
Problema: G3P
• Polimorfismo per inclusione
Quale grammatica utilizzo?
• Tipi generici
Infinito numero di grammatiche

More Related Content

Recently uploaded

Presentzione Matematica similitudini circonferenze e omotetie.pptx
Presentzione  Matematica similitudini circonferenze e omotetie.pptxPresentzione  Matematica similitudini circonferenze e omotetie.pptx
Presentzione Matematica similitudini circonferenze e omotetie.pptxfilippoluciani9
 
Descrizione della struttura architettonica Eretteo.pptx
Descrizione della struttura architettonica Eretteo.pptxDescrizione della struttura architettonica Eretteo.pptx
Descrizione della struttura architettonica Eretteo.pptxtecongo2007
 
GIORNATA TECNICA 18/04 | SPIZZIRRI Massimo
GIORNATA TECNICA 18/04 | SPIZZIRRI MassimoGIORNATA TECNICA 18/04 | SPIZZIRRI Massimo
GIORNATA TECNICA 18/04 | SPIZZIRRI MassimoServizi a rete
 
GIORNATA TECNICA 18/04 | BENANTI Alessandro
GIORNATA TECNICA 18/04 | BENANTI AlessandroGIORNATA TECNICA 18/04 | BENANTI Alessandro
GIORNATA TECNICA 18/04 | BENANTI AlessandroServizi a rete
 
GIORNATA TECNICA DA AQP 18/04 | ZONNO Serena
GIORNATA TECNICA DA AQP 18/04 | ZONNO SerenaGIORNATA TECNICA DA AQP 18/04 | ZONNO Serena
GIORNATA TECNICA DA AQP 18/04 | ZONNO SerenaServizi a rete
 
GIORNATA TECNICA 18/04 | DE LEO Antonio
GIORNATA TECNICA 18/04  | DE LEO AntonioGIORNATA TECNICA 18/04  | DE LEO Antonio
GIORNATA TECNICA 18/04 | DE LEO AntonioServizi a rete
 
GIORNATA TECNICA 18/04 | LITTERIO Raffaele
GIORNATA TECNICA 18/04 | LITTERIO RaffaeleGIORNATA TECNICA 18/04 | LITTERIO Raffaele
GIORNATA TECNICA 18/04 | LITTERIO RaffaeleServizi a rete
 
GIORNATA TECNICA DA AQP 18/04 | MOTTA Simone
GIORNATA TECNICA DA AQP 18/04 | MOTTA SimoneGIORNATA TECNICA DA AQP 18/04 | MOTTA Simone
GIORNATA TECNICA DA AQP 18/04 | MOTTA SimoneServizi a rete
 
GIORNATA TECNICA 18/04 | DE ROSA Roberto
GIORNATA TECNICA 18/04 | DE ROSA RobertoGIORNATA TECNICA 18/04 | DE ROSA Roberto
GIORNATA TECNICA 18/04 | DE ROSA RobertoServizi a rete
 

Recently uploaded (9)

Presentzione Matematica similitudini circonferenze e omotetie.pptx
Presentzione  Matematica similitudini circonferenze e omotetie.pptxPresentzione  Matematica similitudini circonferenze e omotetie.pptx
Presentzione Matematica similitudini circonferenze e omotetie.pptx
 
Descrizione della struttura architettonica Eretteo.pptx
Descrizione della struttura architettonica Eretteo.pptxDescrizione della struttura architettonica Eretteo.pptx
Descrizione della struttura architettonica Eretteo.pptx
 
GIORNATA TECNICA 18/04 | SPIZZIRRI Massimo
GIORNATA TECNICA 18/04 | SPIZZIRRI MassimoGIORNATA TECNICA 18/04 | SPIZZIRRI Massimo
GIORNATA TECNICA 18/04 | SPIZZIRRI Massimo
 
GIORNATA TECNICA 18/04 | BENANTI Alessandro
GIORNATA TECNICA 18/04 | BENANTI AlessandroGIORNATA TECNICA 18/04 | BENANTI Alessandro
GIORNATA TECNICA 18/04 | BENANTI Alessandro
 
GIORNATA TECNICA DA AQP 18/04 | ZONNO Serena
GIORNATA TECNICA DA AQP 18/04 | ZONNO SerenaGIORNATA TECNICA DA AQP 18/04 | ZONNO Serena
GIORNATA TECNICA DA AQP 18/04 | ZONNO Serena
 
GIORNATA TECNICA 18/04 | DE LEO Antonio
GIORNATA TECNICA 18/04  | DE LEO AntonioGIORNATA TECNICA 18/04  | DE LEO Antonio
GIORNATA TECNICA 18/04 | DE LEO Antonio
 
GIORNATA TECNICA 18/04 | LITTERIO Raffaele
GIORNATA TECNICA 18/04 | LITTERIO RaffaeleGIORNATA TECNICA 18/04 | LITTERIO Raffaele
GIORNATA TECNICA 18/04 | LITTERIO Raffaele
 
GIORNATA TECNICA DA AQP 18/04 | MOTTA Simone
GIORNATA TECNICA DA AQP 18/04 | MOTTA SimoneGIORNATA TECNICA DA AQP 18/04 | MOTTA Simone
GIORNATA TECNICA DA AQP 18/04 | MOTTA Simone
 
GIORNATA TECNICA 18/04 | DE ROSA Roberto
GIORNATA TECNICA 18/04 | DE ROSA RobertoGIORNATA TECNICA 18/04 | DE ROSA Roberto
GIORNATA TECNICA 18/04 | DE ROSA Roberto
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Extended summary of code building genetic programming

  • 1. Extended Summary of «Code Building Genetic Programming» UNIVERSITÀ DEGLI STUDI DI TRIESTE DIPARTIMENTO DI INGEGNERIA E ARCHITETTURA TESI DI LAUREA TRIENNALE Laurenda: Martina MAIONE Relatore: Prof. Andrea DE LORENZO Anno Accademico 2020-2021
  • 2. Obiettivo della ricerca • Programmi che supportano tipi di dati arbitrari • Manipolazione di tipi polimorfici • Utilizzo di codice preesistente • Senza configurazioni aggiuntive • Codice sorgente eseguibile in ogni ambiente
  • 3. Problema Non tutti i sistemi di sintesi di programmi vanno bene!
  • 4. Problema PushGP • Programmi che supportano tipi di dati arbitrari • Manipolazione di tipi polimorfici • Utilizzo di codice preesistente • Senza configurazioni aggiuntive • Codice sorgente eseguibile in ogni ambiente
  • 5. Problema G3P • Programmi che supportano tipi di dati arbitrari • Manipolazione di tipi polimorfici • Utilizzo di codice preesistente • Senza configurazioni aggiuntive • Codice sorgente eseguibile in ogni ambiente
  • 8. Genotipo Grafo diretto e aciclico • Input e costanti • Funzioni: argomento → valore
  • 9. Come generare il fenotipo • Nodi del DAG • Tipo di ritorno Input: • Compilazione espressioni → codice eseguibile Processo:
  • 10. Compilazione • Foglie: caricate nello stack • Funzione: Ogni argomento ha un valore del tipo corretto → funzione valida
  • 11. Valutazione del programma • Sul tipo di dato restituito • Sui casi di addestramento
  • 13. 1° Test set • Days Between • Prefix Paths • Filter Bounds
  • 15. General Program Synthesis Benchmark Suite • Negative To Zero • Median • Smallest • Vector Average • Compare String Lengths • Replace Space With Newline • Number IO 2° Test set
  • 17. CBGP Riutilizzo di porzioni di codice preesistente No configurazioni aggiuntive Programmi con tipi di dati arbitrari e polimorfici
  • 18. Ricerche future Test set più ampio Più informazioni rispetto ai tipi di dati Algoritmi di ottimizzazione
  • 19. Bibliografia Code Building Genetic Programming, Edward Pantridge Swoop Cambridge, Massachusetts, USA Lee Spector Amherst College, Hampshire College, and UMass Amherst Amherst, Massachusetts, USA A Survey of Genetic Programming and Its Applications, Milad Taleby Ahvanooey, Qianmu Li, Ming Wu, Shuo Wang Comparison of Linear Genome Representations for Software Synthesis, Pantrdige, E., Helmuth, T., and Spector, L. General Program Synthesis Benchmark Suite, T. Helmuth, Lee Spector, Hampshire College & University of Massachussetts, Amherst Sitografia Wikipedia https://www.wikipedia.org Hampshire College https://www.hampshire.edu
  • 20. Grazie per l’attenzione UNIVERSITÀ DEGLI STUDI DI TRIESTE DIPARTIMENTO DI INGEGNERIA E ARCHITETTURA TESI DI LAUREA TRIENNALE Laurendo: Martina MAIONE Relatore: Prof. Ing. Andrea DE LORENZO Anno Accademico 2020-2021
  • 21. Polimorfismo Un’espressione il cui tipo è descritto da una classe A può assumere valori di un qualunque tipo descritto da una classe B sottoclasse di A Veicolo Macchina Bicicletta
  • 22. Problema: PushGP • Polimorfismo per inclusione • Tipi generici Nuovo tipo → nuovo stack NB: No funzioni → inutile → Funzioni in anticipo → tipi in anticipo → no polimorfismo parametrico Veicolo Macchina Bicicletta
  • 23. Problema: G3P • Polimorfismo per inclusione Quale grammatica utilizzo? • Tipi generici Infinito numero di grammatiche