Exploring a Self-replication Algorithm to Flexibly Match Patterns

Share
Exploring a Self-replication Algorithm to Flexibly Match Patterns

We have published and presented this paper at the IEEE ACCESS. DOI: https://doi.org/10.1109/ACCESS.2024.3355319

ABSTRACT:

Pattern matching algorithms have been studied on numerous occasions, mainly focusing on performance because of the large amount of data used in a matching process. However, a strong focus on performance can entail particular issues like the lack of flexibility to match patterns. As a consequence, programming developers need to tweak matching algorithms in contortive ways or create new specialized ones altogether if their specific needs are not supported. Inspired by the self-replication behavior of cells in biology, we explore and evaluate the design and implementation of an algorithm to flexibly match patterns, named Matcher Cells. Through the composition of simple rules applied to cells, developers can adjust the matching semantics of this algorithm to different needs. We describe this algorithm using a pure functional language as a recipe for any Turing-complete programming language and then offer an object-oriented architecture for languages like Java. To show the flexibility of our proposal, we use a concrete implementation in TypeScript to describe two applications, from different domains, that use pattern matching in a stream of tokens. Additionally, we carry out performance and developer experience empirical evaluations with undergraduate students using Matcher Cells. Finally, we discuss the pros and cons of using a biological-based algorithm, exploiting the compositions of rules, to match patterns.

Read more

Factors that Drive Market Share and the Oligopolistic Character of Cross-border B2C Ecommerce: An agent-based scenario analysis approach

Factors that Drive Market Share and the Oligopolistic Character of Cross-border B2C Ecommerce: An agent-based scenario analysis approach

We have published this paper in the journal Simulation: Transactions of the Society for Modeling and Simulation International. DOI: https://doi.org/10.1177/00375497241296542 ABSTRACT: Business-to-Consumer (B2C) e-commerce has become a dominant, continuously evolving force in global retail. Most consumers today make cross-border purchases in

By Paul Leger
Efficiency Analysis of Engineering Classes: A DEA Approach Encompassing Active Learning and Expositive Classes Towards Quality Education

Efficiency Analysis of Engineering Classes: A DEA Approach Encompassing Active Learning and Expositive Classes Towards Quality Education

We have published in the journal Environmental Science & Policy. DOI: https://doi.org/10.1016/j.envsci.2024.103856 ABSTRACT: The science, technology, engineering, and mathematics (STEM) education research delves into the core of sustainable development goals (SDGs), including the pillars of quality education (SDG4), robust economic growth (SDG8)

By Paul Leger