WORST_CASE(?,O(n^1)) * Step 1: Sum WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: append(l1,l2) -> ifappend(l1,l2,l1) hd(cons(x,l)) -> x ifappend(l1,l2,cons(x,l)) -> cons(x,append(l,l2)) ifappend(l1,l2,nil()) -> l2 is_empty(cons(x,l)) -> false() is_empty(nil()) -> true() tl(cons(x,l)) -> l - Signature: {append/2,hd/1,ifappend/3,is_empty/1,tl/1} / {cons/2,false/0,nil/0,true/0} - Obligation: innermost runtime complexity wrt. defined symbols {append,hd,ifappend,is_empty,tl} and constructors {cons ,false,nil,true} + Applied Processor: Sum {left = someStrategy, right = someStrategy} + Details: () * Step 2: NaturalPI WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: append(l1,l2) -> ifappend(l1,l2,l1) hd(cons(x,l)) -> x ifappend(l1,l2,cons(x,l)) -> cons(x,append(l,l2)) ifappend(l1,l2,nil()) -> l2 is_empty(cons(x,l)) -> false() is_empty(nil()) -> true() tl(cons(x,l)) -> l - Signature: {append/2,hd/1,ifappend/3,is_empty/1,tl/1} / {cons/2,false/0,nil/0,true/0} - Obligation: innermost runtime complexity wrt. defined symbols {append,hd,ifappend,is_empty,tl} and constructors {cons ,false,nil,true} + Applied Processor: NaturalPI {shape = Linear, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(linear): The following argument positions are considered usable: uargs(cons) = {2} Following symbols are considered usable: {append,hd,ifappend,is_empty,tl} TcT has computed the following interpretation: p(append) = 10 + 8*x1 + 6*x2 p(cons) = 2 + x1 + x2 p(false) = 0 p(hd) = 4*x1 p(ifappend) = 2 + 6*x2 + 8*x3 p(is_empty) = 2 + 2*x1 p(nil) = 3 p(tl) = 6*x1 p(true) = 0 Following rules are strictly oriented: append(l1,l2) = 10 + 8*l1 + 6*l2 > 2 + 8*l1 + 6*l2 = ifappend(l1,l2,l1) hd(cons(x,l)) = 8 + 4*l + 4*x > x = x ifappend(l1,l2,cons(x,l)) = 18 + 8*l + 6*l2 + 8*x > 12 + 8*l + 6*l2 + x = cons(x,append(l,l2)) ifappend(l1,l2,nil()) = 26 + 6*l2 > l2 = l2 is_empty(cons(x,l)) = 6 + 2*l + 2*x > 0 = false() is_empty(nil()) = 8 > 0 = true() tl(cons(x,l)) = 12 + 6*l + 6*x > l = l Following rules are (at-least) weakly oriented: * Step 3: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak TRS: append(l1,l2) -> ifappend(l1,l2,l1) hd(cons(x,l)) -> x ifappend(l1,l2,cons(x,l)) -> cons(x,append(l,l2)) ifappend(l1,l2,nil()) -> l2 is_empty(cons(x,l)) -> false() is_empty(nil()) -> true() tl(cons(x,l)) -> l - Signature: {append/2,hd/1,ifappend/3,is_empty/1,tl/1} / {cons/2,false/0,nil/0,true/0} - Obligation: innermost runtime complexity wrt. defined symbols {append,hd,ifappend,is_empty,tl} and constructors {cons ,false,nil,true} + Applied Processor: EmptyProcessor + Details: The problem is already closed. The intended complexity is O(1). WORST_CASE(?,O(n^1))