Analyzing Trade-offs in Reversible Linear and Binary Search Algorithms
Hiroki Masuda, Tetsuo Yokoyama

TL;DR
This paper explores the space-time trade-offs in reversible linear and binary search algorithms using Janus, highlighting how data structure choices and output definitions influence their efficiency and design.
Contribution
It provides a detailed analysis of reversible search algorithms' space-time trade-offs and offers insights into how data structures and output considerations impact their design.
Findings
Output data and data structure choices affect algorithm efficiency.
Number of input traversals varies with search success or failure.
Reversible algorithms' design depends on data structure and output definitions.
Abstract
Reversible algorithms are algorithms in which each step represents a partial injective function; they are useful for performance optimization in reversible systems. In this study, using Janus, a reversible imperative high-level programming language, we have developed reversible linear and binary search algorithms. We have analyzed the non-trivial space-time trade-offs between them, focusing on the memory usage disregarding original inputs and outputs, the size of the output garbage disregarding the original inputs, and the maximum amount of traversal of the input. The programs in this study can easily be adapted to other reversible programming languages. Our analysis reveals that the change of the output data and/or the data structure affects the design of efficient reversible algorithms. For example, the number of input data traversals depends on whether the search has succeeded or…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Computability, Logic, AI Algorithms · Artificial Intelligence in Games
