Reversible Programming: A Case Study of Two String-Matching Algorithms

11/22/2022
by   Robert Glück, et al.
0

String matching is a fundamental problem in algorithm. This study examines the development and construction of two reversible string-matching algorithms: a naive string-matching algorithm and the Rabin-Karp algorithm. The algorithms are used to introduce reversible computing concepts, beginning from basic reversible programming techniques to more advanced considerations about the injectivization of the polynomial hash-update function employed by the Rabin-Karp algorithm. The results are two clean input-preserving reversible algorithms that require no additional space and have the same asymptotic time complexity as their classic irreversible originals. This study aims to contribute to the body of reversible algorithms and to the discipline of reversible programming.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/27/2021

An Efficient Reversible Algorithm for Linear Regression

This paper presents an efficient reversible algorithm for linear regress...
research
08/28/2017

Relativized Separation of Reversible and Irreversible Space-Time Complexity Classes

Reversible computing can reduce the energy dissipation of computation, w...
research
06/13/2022

The ℵ-Calculus: A declarative model of reversible programming

A novel model of reversible computing, the ℵ-calculus, is introduced. It...
research
10/23/2019

Analyzing Trade-offs in Reversible Linear and Binary Search Algorithms

Reversible algorithms are algorithms in which each step represents a par...
research
05/25/2018

Reversibility vs local creation/destruction

Consider a network that evolves reversibly, according to nearest neighbo...
research
09/11/2023

Automatic regenerative simulation via non-reversible simulated tempering

Simulated Tempering (ST) is an MCMC algorithm for complex target distrib...
research
02/17/2020

Fractional Types: Expressive and Safe Space Management for Ancilla Bits

In reversible computing, the management of space is subject to two broad...

Please sign up or login with your details

Forgot password? Click here to reset