MAYBE * Step 1: DependencyPairs MAYBE + Considered Problem: - Strict TRS: -(x,0()) -> x -(s(x),s(y)) -> -(x,y) gcd(s(x),s(y)) -> gcd(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) max(x,0()) -> x max(0(),y) -> y max(s(x),s(y)) -> s(max(x,y)) min(x,0()) -> 0() min(0(),y) -> 0() min(s(x),s(y)) -> s(min(x,y)) - Signature: {-/2,gcd/2,max/2,min/2} / {0/0,s/1} - Obligation: innermost runtime complexity wrt. defined symbols {-,gcd,max,min} and constructors {0,s} + Applied Processor: DependencyPairs {dpKind_ = DT} + Details: We add the following dependency tuples: Strict DPs -#(x,0()) -> c_1() -#(s(x),s(y)) -> c_2(-#(x,y)) gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) max#(x,0()) -> c_4() max#(0(),y) -> c_5() max#(s(x),s(y)) -> c_6(max#(x,y)) min#(x,0()) -> c_7() min#(0(),y) -> c_8() min#(s(x),s(y)) -> c_9(min#(x,y)) Weak DPs and mark the set of starting terms. * Step 2: UsableRules MAYBE + Considered Problem: - Strict DPs: -#(x,0()) -> c_1() -#(s(x),s(y)) -> c_2(-#(x,y)) gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) max#(x,0()) -> c_4() max#(0(),y) -> c_5() max#(s(x),s(y)) -> c_6(max#(x,y)) min#(x,0()) -> c_7() min#(0(),y) -> c_8() min#(s(x),s(y)) -> c_9(min#(x,y)) - Weak TRS: -(x,0()) -> x -(s(x),s(y)) -> -(x,y) gcd(s(x),s(y)) -> gcd(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) max(x,0()) -> x max(0(),y) -> y max(s(x),s(y)) -> s(max(x,y)) min(x,0()) -> 0() min(0(),y) -> 0() min(s(x),s(y)) -> s(min(x,y)) - Signature: {-/2,gcd/2,max/2,min/2,-#/2,gcd#/2,max#/2,min#/2} / {0/0,s/1,c_1/0,c_2/1,c_3/5,c_4/0,c_5/0,c_6/1,c_7/0,c_8/0 ,c_9/1} - Obligation: innermost runtime complexity wrt. defined symbols {-#,gcd#,max#,min#} and constructors {0,s} + Applied Processor: UsableRules + Details: We replace rewrite rules by usable rules: -(x,0()) -> x -(s(x),s(y)) -> -(x,y) max(x,0()) -> x max(0(),y) -> y max(s(x),s(y)) -> s(max(x,y)) min(x,0()) -> 0() min(0(),y) -> 0() min(s(x),s(y)) -> s(min(x,y)) -#(x,0()) -> c_1() -#(s(x),s(y)) -> c_2(-#(x,y)) gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) max#(x,0()) -> c_4() max#(0(),y) -> c_5() max#(s(x),s(y)) -> c_6(max#(x,y)) min#(x,0()) -> c_7() min#(0(),y) -> c_8() min#(s(x),s(y)) -> c_9(min#(x,y)) * Step 3: PredecessorEstimation MAYBE + Considered Problem: - Strict DPs: -#(x,0()) -> c_1() -#(s(x),s(y)) -> c_2(-#(x,y)) gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) max#(x,0()) -> c_4() max#(0(),y) -> c_5() max#(s(x),s(y)) -> c_6(max#(x,y)) min#(x,0()) -> c_7() min#(0(),y) -> c_8() min#(s(x),s(y)) -> c_9(min#(x,y)) - Weak TRS: -(x,0()) -> x -(s(x),s(y)) -> -(x,y) max(x,0()) -> x max(0(),y) -> y max(s(x),s(y)) -> s(max(x,y)) min(x,0()) -> 0() min(0(),y) -> 0() min(s(x),s(y)) -> s(min(x,y)) - Signature: {-/2,gcd/2,max/2,min/2,-#/2,gcd#/2,max#/2,min#/2} / {0/0,s/1,c_1/0,c_2/1,c_3/5,c_4/0,c_5/0,c_6/1,c_7/0,c_8/0 ,c_9/1} - Obligation: innermost runtime complexity wrt. defined symbols {-#,gcd#,max#,min#} and constructors {0,s} + Applied Processor: PredecessorEstimation {onSelection = all simple predecessor estimation selector} + Details: We estimate the number of application of {1,4,5,7,8} by application of Pre({1,4,5,7,8}) = {2,3,6,9}. Here rules are labelled as follows: 1: -#(x,0()) -> c_1() 2: -#(s(x),s(y)) -> c_2(-#(x,y)) 3: gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) 4: max#(x,0()) -> c_4() 5: max#(0(),y) -> c_5() 6: max#(s(x),s(y)) -> c_6(max#(x,y)) 7: min#(x,0()) -> c_7() 8: min#(0(),y) -> c_8() 9: min#(s(x),s(y)) -> c_9(min#(x,y)) * Step 4: RemoveWeakSuffixes MAYBE + Considered Problem: - Strict DPs: -#(s(x),s(y)) -> c_2(-#(x,y)) gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) max#(s(x),s(y)) -> c_6(max#(x,y)) min#(s(x),s(y)) -> c_9(min#(x,y)) - Weak DPs: -#(x,0()) -> c_1() max#(x,0()) -> c_4() max#(0(),y) -> c_5() min#(x,0()) -> c_7() min#(0(),y) -> c_8() - Weak TRS: -(x,0()) -> x -(s(x),s(y)) -> -(x,y) max(x,0()) -> x max(0(),y) -> y max(s(x),s(y)) -> s(max(x,y)) min(x,0()) -> 0() min(0(),y) -> 0() min(s(x),s(y)) -> s(min(x,y)) - Signature: {-/2,gcd/2,max/2,min/2,-#/2,gcd#/2,max#/2,min#/2} / {0/0,s/1,c_1/0,c_2/1,c_3/5,c_4/0,c_5/0,c_6/1,c_7/0,c_8/0 ,c_9/1} - Obligation: innermost runtime complexity wrt. defined symbols {-#,gcd#,max#,min#} and constructors {0,s} + Applied Processor: RemoveWeakSuffixes + Details: Consider the dependency graph 1:S:-#(s(x),s(y)) -> c_2(-#(x,y)) -->_1 -#(x,0()) -> c_1():5 -->_1 -#(s(x),s(y)) -> c_2(-#(x,y)):1 2:S:gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) -->_5 min#(s(x),s(y)) -> c_9(min#(x,y)):4 -->_4 min#(s(x),s(y)) -> c_9(min#(x,y)):4 -->_3 max#(s(x),s(y)) -> c_6(max#(x,y)):3 -->_5 min#(0(),y) -> c_8():9 -->_4 min#(0(),y) -> c_8():9 -->_5 min#(x,0()) -> c_7():8 -->_4 min#(x,0()) -> c_7():8 -->_3 max#(0(),y) -> c_5():7 -->_3 max#(x,0()) -> c_4():6 -->_1 gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)):2 -->_2 -#(s(x),s(y)) -> c_2(-#(x,y)):1 3:S:max#(s(x),s(y)) -> c_6(max#(x,y)) -->_1 max#(0(),y) -> c_5():7 -->_1 max#(x,0()) -> c_4():6 -->_1 max#(s(x),s(y)) -> c_6(max#(x,y)):3 4:S:min#(s(x),s(y)) -> c_9(min#(x,y)) -->_1 min#(0(),y) -> c_8():9 -->_1 min#(x,0()) -> c_7():8 -->_1 min#(s(x),s(y)) -> c_9(min#(x,y)):4 5:W:-#(x,0()) -> c_1() 6:W:max#(x,0()) -> c_4() 7:W:max#(0(),y) -> c_5() 8:W:min#(x,0()) -> c_7() 9:W:min#(0(),y) -> c_8() The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. 6: max#(x,0()) -> c_4() 7: max#(0(),y) -> c_5() 8: min#(x,0()) -> c_7() 9: min#(0(),y) -> c_8() 5: -#(x,0()) -> c_1() * Step 5: Failure MAYBE + Considered Problem: - Strict DPs: -#(s(x),s(y)) -> c_2(-#(x,y)) gcd#(s(x),s(y)) -> c_3(gcd#(-(s(max(x,y)),s(min(x,y))),s(min(x,y))) ,-#(s(max(x,y)),s(min(x,y))) ,max#(x,y) ,min#(x,y) ,min#(x,y)) max#(s(x),s(y)) -> c_6(max#(x,y)) min#(s(x),s(y)) -> c_9(min#(x,y)) - Weak TRS: -(x,0()) -> x -(s(x),s(y)) -> -(x,y) max(x,0()) -> x max(0(),y) -> y max(s(x),s(y)) -> s(max(x,y)) min(x,0()) -> 0() min(0(),y) -> 0() min(s(x),s(y)) -> s(min(x,y)) - Signature: {-/2,gcd/2,max/2,min/2,-#/2,gcd#/2,max#/2,min#/2} / {0/0,s/1,c_1/0,c_2/1,c_3/5,c_4/0,c_5/0,c_6/1,c_7/0,c_8/0 ,c_9/1} - Obligation: innermost runtime complexity wrt. defined symbols {-#,gcd#,max#,min#} and constructors {0,s} + Applied Processor: EmptyProcessor + Details: The problem is still open. MAYBE