A note on the complexity of program evaluation

From MaRDI portal





A simple variant of the evaluation problem for simple loop programs is examined and shown to be nonelementary recursive. The problem is the following: given an input-free program P without nested loops using only instructions of the form \(x\leftarrow 1\), \(x\leftarrow x+y\), \(x\leftarrow x\dot-y (x\dot- y=x-y\) if \(x\geq y\) and 0 otherwise), do \(x...\) end, does P output 0? Formally, let \(C=\{P\}\) be a set of programs over the nonnegative integers and let \(E(C)=\{P| P\in C\) and P outputs 0 when all its variables are initially set to 0\(\}\). The complexity (lower and upper bounds) of recognizing E(C) is looked at and it is shown in a straight-forward manner that E(C) is not elementary recursive even for very simple classes C. The result follows basically from the time hierarchy theorem and a merit of it is its elementary proof. The result can be easily generalized to shown that this 0-evaluation problem is progressively harder for programs with nested loops.











This page was built for publication: A note on the complexity of program evaluation

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3319774)