arrow
Return

Exploring a Self-Replication Algorithm to Flexibly Match Patterns

delete2024-01-01
delete0
delete
OA
AI
P
Paul Leger *
H
Hiroaki Fukuda
N
Nicolás Cardozo
D
Daniel Martin
DOI:10.1109/ACCESS.2024.3355319delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
Pattern matching
Heuristic algorithms
Semantics
Proposals
Time complexity
Social networking (online)
Indexes
Context awareness
self-replication algorithms
string matching
context-aware systems

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

U
universidad de los andes (colombia)
Scholars:
4.7K
Papers: 4.3K
Citations: 7
S
Shibaura Institute of Technology
Scholars:
1.5K
Papers: 1.3K
Citations: 969
U
universidad catolica del norte
Scholars:
2.0K
Papers: 1.9K
Citations: 5
researcher View more organizations