Logo del repository
  1. Home
 
Opzioni

Playing Regex Golf with Genetic Programming

BARTOLI, Alberto
•
DE LORENZO, ANDREA
•
MEDVET, Eric
•
TARLAO, FABIANO
2014
  • conference object

Abstract
Regex golf has recently emerged as a specific kind of code golf, i.e., unstructured and informal programming competitions aimed at writing the shortest code solving a particular problem. A problem in regex golf consists in writing the shortest regular expression which matches all the strings in a given list and does not match any of the strings in another given list. The regular expression is expected to follow the syntax of a specified programming language, e.g., Javascript or PHP. In this paper, we propose a regex golf player internally based on Genetic Programming. We generate a population of candidate regular expressions represented as trees and evolve such population based on a multi-objective fitness which minimizes the errors and the length of the regular expression. We assess experimentally our player on a popular regex golf challenge consisting of 16 problems and compare our results against those of a recently proposed algorithm---the only one we are aware of. Our player obtains scores which improve over the baseline and are highly competitive also with respect to human players. The time for generating a solution is usually in the order of tens minutes, which is arguably comparable to the time required by human players.
DOI
10.1145/2576768.2598333
WOS
WOS:000364333000133
Archivio
http://hdl.handle.net/11368/2797724
info:eu-repo/semantics/altIdentifier/scopus/2-s2.0-84905695646
http://dl.acm.org/citation.cfm?id=2598333
Diritti
metadata only access
Soggetti
  • Regular Expression

  • Genetic Programming

  • Programming by Exampl...

  • Machine Learning

Scopus© citazioni
15
Data di acquisizione
Jun 14, 2022
Vedi dettagli
Web of Science© citazioni
10
Data di acquisizione
Mar 25, 2024
google-scholar
Get Involved!
  • Source Code
  • Documentation
  • Slack Channel
Make it your own

DSpace-CRIS can be extensively configured to meet your needs. Decide which information need to be collected and available with fine-grained security. Start updating the theme to match your nstitution's web identity.

Need professional help?

The original creators of DSpace-CRIS at 4Science can take your project to the next level, get in touch!

Realizzato con Software DSpace-CRIS - Estensione mantenuta e ottimizzata da 4Science

  • Impostazioni dei cookie
  • Informativa sulla privacy
  • Accordo con l'utente finale
  • Invia il tuo Feedback