WORST_CASE(?,O(n^2)) * Step 1: NaturalPI WORST_CASE(?,O(n^2)) + Considered Problem: - Strict TRS: add(0(),x) -> x add(s(x),y) -> s(add(x,y)) p(0(),s(x),y,z) -> q(x,add(x,z)) p(s(x),y,z,u) -> p(x,s(y),s(s(z)),u) q(s(x),y) -> p(s(x),0(),s(0()),y) - Signature: {add/2,p/4,q/2} / {0/0,s/1} - Obligation: innermost runtime complexity wrt. defined symbols {add,p,q} and constructors {0,s} + Applied Processor: NaturalPI {shape = Mixed 2, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(mixed(2)): The following argument positions are considered usable: uargs(q) = {2}, uargs(s) = {1} Following symbols are considered usable: {add,p,q} TcT has computed the following interpretation: p(0) = 0 p(add) = x1 + x2 p(p) = 3 + 4*x1 + 4*x1*x2 + 2*x1^2 + x2 + 2*x2^2 + x3 + x4 p(q) = 6 + 4*x1 + 2*x1^2 + x2 p(s) = 1 + x1 Following rules are strictly oriented: p(s(x),y,z,u) = 9 + u + 8*x + 4*x*y + 2*x^2 + 5*y + 2*y^2 + z > 8 + u + 8*x + 4*x*y + 2*x^2 + 5*y + 2*y^2 + z = p(x,s(y),s(s(z)),u) q(s(x),y) = 12 + 8*x + 2*x^2 + y > 10 + 8*x + 2*x^2 + y = p(s(x),0(),s(0()),y) Following rules are (at-least) weakly oriented: add(0(),x) = x >= x = x add(s(x),y) = 1 + x + y >= 1 + x + y = s(add(x,y)) p(0(),s(x),y,z) = 6 + 5*x + 2*x^2 + y + z >= 6 + 5*x + 2*x^2 + z = q(x,add(x,z)) * Step 2: NaturalPI WORST_CASE(?,O(n^2)) + Considered Problem: - Strict TRS: add(0(),x) -> x add(s(x),y) -> s(add(x,y)) p(0(),s(x),y,z) -> q(x,add(x,z)) - Weak TRS: p(s(x),y,z,u) -> p(x,s(y),s(s(z)),u) q(s(x),y) -> p(s(x),0(),s(0()),y) - Signature: {add/2,p/4,q/2} / {0/0,s/1} - Obligation: innermost runtime complexity wrt. defined symbols {add,p,q} and constructors {0,s} + Applied Processor: NaturalPI {shape = Mixed 2, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(mixed(2)): The following argument positions are considered usable: uargs(q) = {2}, uargs(s) = {1} Following symbols are considered usable: {add,p,q} TcT has computed the following interpretation: p(0) = 0 p(add) = x1 + x2 p(p) = 2*x1*x2 + x1^2 + x2^2 + 2*x4 p(q) = x1^2 + 2*x2 p(s) = 1 + x1 Following rules are strictly oriented: p(0(),s(x),y,z) = 1 + 2*x + x^2 + 2*z > 2*x + x^2 + 2*z = q(x,add(x,z)) Following rules are (at-least) weakly oriented: add(0(),x) = x >= x = x add(s(x),y) = 1 + x + y >= 1 + x + y = s(add(x,y)) p(s(x),y,z,u) = 1 + 2*u + 2*x + 2*x*y + x^2 + 2*y + y^2 >= 1 + 2*u + 2*x + 2*x*y + x^2 + 2*y + y^2 = p(x,s(y),s(s(z)),u) q(s(x),y) = 1 + 2*x + x^2 + 2*y >= 1 + 2*x + x^2 + 2*y = p(s(x),0(),s(0()),y) * Step 3: NaturalPI WORST_CASE(?,O(n^2)) + Considered Problem: - Strict TRS: add(0(),x) -> x add(s(x),y) -> s(add(x,y)) - Weak TRS: p(0(),s(x),y,z) -> q(x,add(x,z)) p(s(x),y,z,u) -> p(x,s(y),s(s(z)),u) q(s(x),y) -> p(s(x),0(),s(0()),y) - Signature: {add/2,p/4,q/2} / {0/0,s/1} - Obligation: innermost runtime complexity wrt. defined symbols {add,p,q} and constructors {0,s} + Applied Processor: NaturalPI {shape = Mixed 2, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(mixed(2)): The following argument positions are considered usable: uargs(q) = {2}, uargs(s) = {1} Following symbols are considered usable: {add,p,q} TcT has computed the following interpretation: p(0) = 0 p(add) = 2 + x1 + x2 p(p) = x1 + 4*x1*x2 + 2*x1^2 + 2*x2^2 + x4 p(q) = x1 + 2*x1^2 + x2 p(s) = 1 + x1 Following rules are strictly oriented: add(0(),x) = 2 + x > x = x Following rules are (at-least) weakly oriented: add(s(x),y) = 3 + x + y >= 3 + x + y = s(add(x,y)) p(0(),s(x),y,z) = 2 + 4*x + 2*x^2 + z >= 2 + 2*x + 2*x^2 + z = q(x,add(x,z)) p(s(x),y,z,u) = 3 + u + 5*x + 4*x*y + 2*x^2 + 4*y + 2*y^2 >= 2 + u + 5*x + 4*x*y + 2*x^2 + 4*y + 2*y^2 = p(x,s(y),s(s(z)),u) q(s(x),y) = 3 + 5*x + 2*x^2 + y >= 3 + 5*x + 2*x^2 + y = p(s(x),0(),s(0()),y) * Step 4: NaturalPI WORST_CASE(?,O(n^2)) + Considered Problem: - Strict TRS: add(s(x),y) -> s(add(x,y)) - Weak TRS: add(0(),x) -> x p(0(),s(x),y,z) -> q(x,add(x,z)) p(s(x),y,z,u) -> p(x,s(y),s(s(z)),u) q(s(x),y) -> p(s(x),0(),s(0()),y) - Signature: {add/2,p/4,q/2} / {0/0,s/1} - Obligation: innermost runtime complexity wrt. defined symbols {add,p,q} and constructors {0,s} + Applied Processor: NaturalPI {shape = Mixed 2, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(mixed(2)): The following argument positions are considered usable: uargs(q) = {2}, uargs(s) = {1} Following symbols are considered usable: {add,p,q} TcT has computed the following interpretation: p(0) = 0 p(add) = 2*x1 + x2 p(p) = 1 + 2*x1*x2 + x1^2 + x2^2 + x4 p(q) = 1 + x1^2 + x2 p(s) = 1 + x1 Following rules are strictly oriented: add(s(x),y) = 2 + 2*x + y > 1 + 2*x + y = s(add(x,y)) Following rules are (at-least) weakly oriented: add(0(),x) = x >= x = x p(0(),s(x),y,z) = 2 + 2*x + x^2 + z >= 1 + 2*x + x^2 + z = q(x,add(x,z)) p(s(x),y,z,u) = 2 + u + 2*x + 2*x*y + x^2 + 2*y + y^2 >= 2 + u + 2*x + 2*x*y + x^2 + 2*y + y^2 = p(x,s(y),s(s(z)),u) q(s(x),y) = 2 + 2*x + x^2 + y >= 2 + 2*x + x^2 + y = p(s(x),0(),s(0()),y) * Step 5: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak TRS: add(0(),x) -> x add(s(x),y) -> s(add(x,y)) p(0(),s(x),y,z) -> q(x,add(x,z)) p(s(x),y,z,u) -> p(x,s(y),s(s(z)),u) q(s(x),y) -> p(s(x),0(),s(0()),y) - Signature: {add/2,p/4,q/2} / {0/0,s/1} - Obligation: innermost runtime complexity wrt. defined symbols {add,p,q} and constructors {0,s} + Applied Processor: EmptyProcessor + Details: The problem is already closed. The intended complexity is O(1). WORST_CASE(?,O(n^2))