Certification Problem
Input (TPDB Runtime_Complexity_Innermost_Rewriting/Rubio_04/mfp95)
The rewrite relation of the following TRS is considered.
f(s(X),Y) |
→ |
h(s(f(h(Y),X))) |
(1) |
The evaluation strategy is innermost.Property / Task
Determine bounds on the runtime complexity.Answer / Result
An upperbound for the complexity is O(n).Proof (by AProVE @ termCOMP 2023)
1 Bounds
The given TRS is
match-(raise)-bounded by 1.
This is shown by the following automaton.
-
final states:
{0, 1}
-
transitions:
s0(0) |
→ |
0 |
h0(0) |
→ |
0 |
f0(0,0) |
→ |
1 |
h1(0) |
→ |
4 |
f1(4,0) |
→ |
3 |
s1(3) |
→ |
2 |
h1(2) |
→ |
1 |