YES(O(1),O(n^1)) We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [4] [0] = [0] [mark](x1) = [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [0] [true] = [1] [minus](x1, x2) = [1] [false] = [1] [ge](x1, x2) = [7] [div](x1, x2) = [5] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [7] [if_active](x1, x2, x3) = [1] x1 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [4] > [1] = [minus(x, y)] [minus_active(0(), y)] = [4] > [0] = [0()] [minus_active(s(x), s(y))] = [4] >= [4] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [0] >= [0] = [s(mark(x))] [mark(minus(x, y))] = [0] ? [4] = [minus_active(x, y)] [mark(ge(x, y))] = [0] >= [0] = [ge_active(x, y)] [mark(div(x, y))] = [0] >= [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [0] >= [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [0] ? [7] = [ge(x, y)] [ge_active(x, 0())] = [0] ? [1] = [true()] [ge_active(0(), s(y))] = [0] ? [1] = [false()] [ge_active(s(x), s(y))] = [0] >= [0] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] ? [5] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [0] >= [0] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] x + [0] ? [1] x + [7] = [if(x, y, z)] [if_active(true(), x, y)] = [1] > [0] = [mark(x)] [if_active(false(), x, y)] = [1] > [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [4] [0] = [0] [mark](x1) = [1] x1 + [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [0] [true] = [5] [minus](x1, x2) = [0] [false] = [5] [ge](x1, x2) = [0] [div](x1, x2) = [1] x1 + [1] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] [if_active](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [4] > [0] = [minus(x, y)] [minus_active(0(), y)] = [4] > [0] = [0()] [minus_active(s(x), s(y))] = [4] >= [4] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [1] x + [0] >= [1] x + [0] = [s(mark(x))] [mark(minus(x, y))] = [0] ? [4] = [minus_active(x, y)] [mark(ge(x, y))] = [0] >= [0] = [ge_active(x, y)] [mark(div(x, y))] = [1] x + [1] > [1] x + [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [0] >= [0] = [ge(x, y)] [ge_active(x, 0())] = [0] ? [5] = [true()] [ge_active(0(), s(y))] = [0] ? [5] = [false()] [ge_active(s(x), s(y))] = [0] >= [0] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] ? [1] x + [1] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [0] ? [1] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [1] y + [1] x + [5] > [1] x + [0] = [mark(x)] [if_active(false(), x, y)] = [1] y + [1] x + [5] > [1] y + [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , mark(div(x, y)) -> div_active(mark(x), y) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [4] [0] = [0] [mark](x1) = [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [1] [true] = [1] [minus](x1, x2) = [2] [false] = [5] [ge](x1, x2) = [0] [div](x1, x2) = [5] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [7] [if_active](x1, x2, x3) = [1] x1 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [4] > [2] = [minus(x, y)] [minus_active(0(), y)] = [4] > [0] = [0()] [minus_active(s(x), s(y))] = [4] >= [4] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [0] >= [0] = [s(mark(x))] [mark(minus(x, y))] = [0] ? [4] = [minus_active(x, y)] [mark(ge(x, y))] = [0] ? [1] = [ge_active(x, y)] [mark(div(x, y))] = [0] >= [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [0] >= [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [1] > [0] = [ge(x, y)] [ge_active(x, 0())] = [1] >= [1] = [true()] [ge_active(0(), s(y))] = [1] ? [5] = [false()] [ge_active(s(x), s(y))] = [1] >= [1] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] ? [5] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [0] ? [1] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] x + [0] ? [1] x + [7] = [if(x, y, z)] [if_active(true(), x, y)] = [1] > [0] = [mark(x)] [if_active(false(), x, y)] = [5] > [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [4] [0] = [0] [mark](x1) = [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [4] [true] = [1] [minus](x1, x2) = [1] [false] = [5] [ge](x1, x2) = [3] [div](x1, x2) = [5] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [7] [if_active](x1, x2, x3) = [1] x1 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [4] > [1] = [minus(x, y)] [minus_active(0(), y)] = [4] > [0] = [0()] [minus_active(s(x), s(y))] = [4] >= [4] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [0] >= [0] = [s(mark(x))] [mark(minus(x, y))] = [0] ? [4] = [minus_active(x, y)] [mark(ge(x, y))] = [0] ? [4] = [ge_active(x, y)] [mark(div(x, y))] = [0] >= [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [0] >= [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [4] > [3] = [ge(x, y)] [ge_active(x, 0())] = [4] > [1] = [true()] [ge_active(0(), s(y))] = [4] ? [5] = [false()] [ge_active(s(x), s(y))] = [4] >= [4] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] ? [5] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [0] ? [4] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] x + [0] ? [1] x + [7] = [if(x, y, z)] [if_active(true(), x, y)] = [1] > [0] = [mark(x)] [if_active(false(), x, y)] = [5] > [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [0] [0] = [0] [mark](x1) = [1] x1 + [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [4] [true] = [0] [minus](x1, x2) = [0] [false] = [1] [ge](x1, x2) = [0] [div](x1, x2) = [1] x1 + [4] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] [if_active](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [4] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [0] >= [0] = [minus(x, y)] [minus_active(0(), y)] = [0] >= [0] = [0()] [minus_active(s(x), s(y))] = [0] >= [0] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [1] x + [0] >= [1] x + [0] = [s(mark(x))] [mark(minus(x, y))] = [0] >= [0] = [minus_active(x, y)] [mark(ge(x, y))] = [0] ? [4] = [ge_active(x, y)] [mark(div(x, y))] = [1] x + [4] > [1] x + [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [1] y + [1] x + [1] z + [0] ? [1] y + [1] x + [1] z + [4] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [4] > [0] = [ge(x, y)] [ge_active(x, 0())] = [4] > [0] = [true()] [ge_active(0(), s(y))] = [4] > [1] = [false()] [ge_active(s(x), s(y))] = [4] >= [4] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] ? [1] x + [4] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [0] ? [12] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] y + [1] x + [1] z + [4] > [1] y + [1] x + [1] z + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [1] y + [1] x + [4] > [1] x + [0] = [mark(x)] [if_active(false(), x, y)] = [1] y + [1] x + [5] > [1] y + [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [4] [0] = [4] [mark](x1) = [1] x1 + [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [1] x1 + [0] [true] = [0] [minus](x1, x2) = [0] [false] = [4] [ge](x1, x2) = [1] x1 + [0] [div](x1, x2) = [1] x1 + [4] [div_active](x1, x2) = [1] x1 + [1] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] [if_active](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [4] > [0] = [minus(x, y)] [minus_active(0(), y)] = [4] >= [4] = [0()] [minus_active(s(x), s(y))] = [4] >= [4] = [minus_active(x, y)] [mark(0())] = [4] >= [4] = [0()] [mark(s(x))] = [1] x + [0] >= [1] x + [0] = [s(mark(x))] [mark(minus(x, y))] = [0] ? [4] = [minus_active(x, y)] [mark(ge(x, y))] = [1] x + [0] >= [1] x + [0] = [ge_active(x, y)] [mark(div(x, y))] = [1] x + [4] > [1] x + [1] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [1] x + [0] >= [1] x + [0] = [ge(x, y)] [ge_active(x, 0())] = [1] x + [0] >= [0] = [true()] [ge_active(0(), s(y))] = [4] >= [4] = [false()] [ge_active(s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [1] ? [1] x + [4] = [div(x, y)] [div_active(0(), s(y))] = [5] > [4] = [0()] [div_active(s(x), s(y))] = [1] x + [1] ? [1] x + [8] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [1] y + [1] x + [0] >= [1] x + [0] = [mark(x)] [if_active(false(), x, y)] = [1] y + [1] x + [4] > [1] y + [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , div_active(0(), s(y)) -> 0() , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [0] [0] = [0] [mark](x1) = [1] x1 + [1] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [4] [true] = [4] [minus](x1, x2) = [0] [false] = [2] [ge](x1, x2) = [4] [div](x1, x2) = [1] x1 + [0] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] [if_active](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [0] >= [0] = [minus(x, y)] [minus_active(0(), y)] = [0] >= [0] = [0()] [minus_active(s(x), s(y))] = [0] >= [0] = [minus_active(x, y)] [mark(0())] = [1] > [0] = [0()] [mark(s(x))] = [1] x + [1] >= [1] x + [1] = [s(mark(x))] [mark(minus(x, y))] = [1] > [0] = [minus_active(x, y)] [mark(ge(x, y))] = [5] > [4] = [ge_active(x, y)] [mark(div(x, y))] = [1] x + [1] >= [1] x + [1] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [1] y + [1] x + [1] z + [1] >= [1] y + [1] x + [1] z + [1] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [4] >= [4] = [ge(x, y)] [ge_active(x, 0())] = [4] >= [4] = [true()] [ge_active(0(), s(y))] = [4] > [2] = [false()] [ge_active(s(x), s(y))] = [4] >= [4] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] >= [1] x + [0] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [0] ? [4] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [1] y + [1] x + [4] > [1] x + [1] = [mark(x)] [if_active(false(), x, y)] = [1] y + [1] x + [2] > [1] y + [1] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { minus_active(s(x), s(y)) -> minus_active(x, y) , mark(s(x)) -> s(mark(x)) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , mark(0()) -> 0() , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , div_active(0(), s(y)) -> 0() , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [1] x1 + [0] [0] = [0] [mark](x1) = [1] x1 + [7] [s](x1) = [1] x1 + [2] [ge_active](x1, x2) = [6] [true] = [6] [minus](x1, x2) = [1] x1 + [0] [false] = [6] [ge](x1, x2) = [0] [div](x1, x2) = [1] x1 + [6] [div_active](x1, x2) = [1] x1 + [6] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [1] [if_active](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [1] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [1] x + [0] >= [1] x + [0] = [minus(x, y)] [minus_active(0(), y)] = [0] >= [0] = [0()] [minus_active(s(x), s(y))] = [1] x + [2] > [1] x + [0] = [minus_active(x, y)] [mark(0())] = [7] > [0] = [0()] [mark(s(x))] = [1] x + [9] >= [1] x + [9] = [s(mark(x))] [mark(minus(x, y))] = [1] x + [7] > [1] x + [0] = [minus_active(x, y)] [mark(ge(x, y))] = [7] > [6] = [ge_active(x, y)] [mark(div(x, y))] = [1] x + [13] >= [1] x + [13] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [1] y + [1] x + [1] z + [8] >= [1] y + [1] x + [1] z + [8] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [6] > [0] = [ge(x, y)] [ge_active(x, 0())] = [6] >= [6] = [true()] [ge_active(0(), s(y))] = [6] >= [6] = [false()] [ge_active(s(x), s(y))] = [6] >= [6] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [6] >= [1] x + [6] = [div(x, y)] [div_active(0(), s(y))] = [6] > [0] = [0()] [div_active(s(x), s(y))] = [1] x + [8] ? [1] x + [15] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] y + [1] x + [1] z + [1] >= [1] y + [1] x + [1] z + [1] = [if(x, y, z)] [if_active(true(), x, y)] = [1] y + [1] x + [7] >= [1] x + [7] = [mark(x)] [if_active(false(), x, y)] = [1] y + [1] x + [7] >= [1] y + [7] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { mark(s(x)) -> s(mark(x)) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , div_active(0(), s(y)) -> 0() , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [0] [0] = [0] [mark](x1) = [0] [s](x1) = [1] x1 + [1] [ge_active](x1, x2) = [0] [true] = [0] [minus](x1, x2) = [0] [false] = [0] [ge](x1, x2) = [0] [div](x1, x2) = [5] [div_active](x1, x2) = [1] x1 + [0] [if](x1, x2, x3) = [1] x1 + [0] [if_active](x1, x2, x3) = [1] x1 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [0] >= [0] = [minus(x, y)] [minus_active(0(), y)] = [0] >= [0] = [0()] [minus_active(s(x), s(y))] = [0] >= [0] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [0] ? [1] = [s(mark(x))] [mark(minus(x, y))] = [0] >= [0] = [minus_active(x, y)] [mark(ge(x, y))] = [0] >= [0] = [ge_active(x, y)] [mark(div(x, y))] = [0] >= [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [0] >= [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [0] >= [0] = [ge(x, y)] [ge_active(x, 0())] = [0] >= [0] = [true()] [ge_active(0(), s(y))] = [0] >= [0] = [false()] [ge_active(s(x), s(y))] = [0] >= [0] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [0] ? [5] = [div(x, y)] [div_active(0(), s(y))] = [0] >= [0] = [0()] [div_active(s(x), s(y))] = [1] x + [1] > [0] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] x + [0] >= [1] x + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [0] >= [0] = [mark(x)] [if_active(false(), x, y)] = [0] >= [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { mark(s(x)) -> s(mark(x)) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [0] [0] = [0] [mark](x1) = [1] x1 + [0] [s](x1) = [1] x1 + [2] [ge_active](x1, x2) = [1] x1 + [0] [true] = [0] [minus](x1, x2) = [0] [false] = [0] [ge](x1, x2) = [1] x1 + [0] [div](x1, x2) = [1] x1 + [1] x2 + [0] [div_active](x1, x2) = [1] x1 + [1] x2 + [0] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] [if_active](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [0] >= [0] = [minus(x, y)] [minus_active(0(), y)] = [0] >= [0] = [0()] [minus_active(s(x), s(y))] = [0] >= [0] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [1] x + [2] >= [1] x + [2] = [s(mark(x))] [mark(minus(x, y))] = [0] >= [0] = [minus_active(x, y)] [mark(ge(x, y))] = [1] x + [0] >= [1] x + [0] = [ge_active(x, y)] [mark(div(x, y))] = [1] y + [1] x + [0] >= [1] y + [1] x + [0] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [1] x + [0] >= [1] x + [0] = [ge(x, y)] [ge_active(x, 0())] = [1] x + [0] >= [0] = [true()] [ge_active(0(), s(y))] = [0] >= [0] = [false()] [ge_active(s(x), s(y))] = [1] x + [2] > [1] x + [0] = [ge_active(x, y)] [div_active(x, y)] = [1] y + [1] x + [0] >= [1] y + [1] x + [0] = [div(x, y)] [div_active(0(), s(y))] = [1] y + [2] > [0] = [0()] [div_active(s(x), s(y))] = [1] y + [1] x + [4] >= [1] y + [1] x + [4] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [1] y + [1] x + [1] z + [0] >= [1] y + [1] x + [1] z + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [1] y + [1] x + [0] >= [1] x + [0] = [mark(x)] [if_active(false(), x, y)] = [1] y + [1] x + [0] >= [1] y + [0] = [mark(y)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { mark(s(x)) -> s(mark(x)) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , div_active(x, y) -> div(x, y) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) We use the processor 'matrix interpretation of dimension 1' to orient following rules strictly. Trs: { div_active(x, y) -> div(x, y) } The induced complexity on above rules (modulo remaining rules) is YES(?,O(n^1)) . These rules are moved into the corresponding weak component(s). Sub-proof: ---------- The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following constructor-based matrix interpretation satisfying not(EDA). [minus_active](x1, x2) = [0] [0] = [0] [mark](x1) = [2] x1 + [0] [s](x1) = [1] x1 + [0] [ge_active](x1, x2) = [0] [true] = [0] [minus](x1, x2) = [0] [false] = [0] [ge](x1, x2) = [0] [div](x1, x2) = [1] x1 + [1] [div_active](x1, x2) = [1] x1 + [2] [if](x1, x2, x3) = [1] x1 + [1] x2 + [1] x3 + [0] [if_active](x1, x2, x3) = [1] x1 + [2] x2 + [2] x3 + [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [0] >= [0] = [minus(x, y)] [minus_active(0(), y)] = [0] >= [0] = [0()] [minus_active(s(x), s(y))] = [0] >= [0] = [minus_active(x, y)] [mark(0())] = [0] >= [0] = [0()] [mark(s(x))] = [2] x + [0] >= [2] x + [0] = [s(mark(x))] [mark(minus(x, y))] = [0] >= [0] = [minus_active(x, y)] [mark(ge(x, y))] = [0] >= [0] = [ge_active(x, y)] [mark(div(x, y))] = [2] x + [2] >= [2] x + [2] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [2] y + [2] x + [2] z + [0] >= [2] y + [2] x + [2] z + [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [0] >= [0] = [ge(x, y)] [ge_active(x, 0())] = [0] >= [0] = [true()] [ge_active(0(), s(y))] = [0] >= [0] = [false()] [ge_active(s(x), s(y))] = [0] >= [0] = [ge_active(x, y)] [div_active(x, y)] = [1] x + [2] > [1] x + [1] = [div(x, y)] [div_active(0(), s(y))] = [2] > [0] = [0()] [div_active(s(x), s(y))] = [1] x + [2] >= [2] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [2] y + [1] x + [2] z + [0] >= [1] y + [1] x + [1] z + [0] = [if(x, y, z)] [if_active(true(), x, y)] = [2] y + [2] x + [0] >= [2] x + [0] = [mark(x)] [if_active(false(), x, y)] = [2] y + [2] x + [0] >= [2] y + [0] = [mark(y)] We return to the main proof. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict Trs: { mark(s(x)) -> s(mark(x)) , mark(if(x, y, z)) -> if_active(mark(x), y, z) } Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) We use the processor 'matrix interpretation of dimension 2' to orient following rules strictly. Trs: { mark(s(x)) -> s(mark(x)) , mark(if(x, y, z)) -> if_active(mark(x), y, z) } The induced complexity on above rules (modulo remaining rules) is YES(?,O(n^1)) . These rules are moved into the corresponding weak component(s). Sub-proof: ---------- The following argument positions are usable: Uargs(s) = {1}, Uargs(div_active) = {1}, Uargs(if_active) = {1} TcT has computed the following constructor-based matrix interpretation satisfying not(EDA) and not(IDA(1)). [minus_active](x1, x2) = [0] [0] [0] = [0] [0] [mark](x1) = [4 0] x1 + [0] [0 2] [0] [s](x1) = [1 0] x1 + [1] [0 0] [1] [ge_active](x1, x2) = [0] [4] [true] = [0] [0] [minus](x1, x2) = [0] [0] [false] = [0] [0] [ge](x1, x2) = [0] [4] [div](x1, x2) = [1 3] x1 + [1 0] x2 + [0] [0 0] [0 0] [1] [div_active](x1, x2) = [1 6] x1 + [4 0] x2 + [0] [0 0] [0 0] [2] [if](x1, x2, x3) = [1 0] x1 + [1 0] x2 + [1 0] x3 + [1] [0 0] [0 1] [0 1] [0] [if_active](x1, x2, x3) = [1 0] x1 + [4 0] x2 + [4 0] x3 + [2] [0 0] [0 2] [0 2] [0] The following symbols are considered usable {minus_active, mark, ge_active, div_active, if_active} The order satisfies the following ordering constraints: [minus_active(x, y)] = [0] [0] >= [0] [0] = [minus(x, y)] [minus_active(0(), y)] = [0] [0] >= [0] [0] = [0()] [minus_active(s(x), s(y))] = [0] [0] >= [0] [0] = [minus_active(x, y)] [mark(0())] = [0] [0] >= [0] [0] = [0()] [mark(s(x))] = [4 0] x + [4] [0 0] [2] > [4 0] x + [1] [0 0] [1] = [s(mark(x))] [mark(minus(x, y))] = [0] [0] >= [0] [0] = [minus_active(x, y)] [mark(ge(x, y))] = [0] [8] >= [0] [4] = [ge_active(x, y)] [mark(div(x, y))] = [4 0] y + [4 12] x + [0] [0 0] [0 0] [2] >= [4 0] y + [4 12] x + [0] [0 0] [0 0] [2] = [div_active(mark(x), y)] [mark(if(x, y, z))] = [4 0] y + [4 0] x + [4 0] z + [4] [0 2] [0 0] [0 2] [0] > [4 0] y + [4 0] x + [4 0] z + [2] [0 2] [0 0] [0 2] [0] = [if_active(mark(x), y, z)] [ge_active(x, y)] = [0] [4] >= [0] [4] = [ge(x, y)] [ge_active(x, 0())] = [0] [4] >= [0] [0] = [true()] [ge_active(0(), s(y))] = [0] [4] >= [0] [0] = [false()] [ge_active(s(x), s(y))] = [0] [4] >= [0] [4] = [ge_active(x, y)] [div_active(x, y)] = [4 0] y + [1 6] x + [0] [0 0] [0 0] [2] >= [1 0] y + [1 3] x + [0] [0 0] [0 0] [1] = [div(x, y)] [div_active(0(), s(y))] = [4 0] y + [4] [0 0] [2] > [0] [0] = [0()] [div_active(s(x), s(y))] = [4 0] y + [1 0] x + [11] [0 0] [0 0] [2] > [4 0] y + [10] [0 0] [2] = [if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0())] [if_active(x, y, z)] = [4 0] y + [1 0] x + [4 0] z + [2] [0 2] [0 0] [0 2] [0] > [1 0] y + [1 0] x + [1 0] z + [1] [0 1] [0 0] [0 1] [0] = [if(x, y, z)] [if_active(true(), x, y)] = [4 0] y + [4 0] x + [2] [0 2] [0 2] [0] > [4 0] x + [0] [0 2] [0] = [mark(x)] [if_active(false(), x, y)] = [4 0] y + [4 0] x + [2] [0 2] [0 2] [0] > [4 0] y + [0] [0 2] [0] = [mark(y)] We return to the main proof. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak Trs: { minus_active(x, y) -> minus(x, y) , minus_active(0(), y) -> 0() , minus_active(s(x), s(y)) -> minus_active(x, y) , mark(0()) -> 0() , mark(s(x)) -> s(mark(x)) , mark(minus(x, y)) -> minus_active(x, y) , mark(ge(x, y)) -> ge_active(x, y) , mark(div(x, y)) -> div_active(mark(x), y) , mark(if(x, y, z)) -> if_active(mark(x), y, z) , ge_active(x, y) -> ge(x, y) , ge_active(x, 0()) -> true() , ge_active(0(), s(y)) -> false() , ge_active(s(x), s(y)) -> ge_active(x, y) , div_active(x, y) -> div(x, y) , div_active(0(), s(y)) -> 0() , div_active(s(x), s(y)) -> if_active(ge_active(x, y), s(div(minus(x, y), s(y))), 0()) , if_active(x, y, z) -> if(x, y, z) , if_active(true(), x, y) -> mark(x) , if_active(false(), x, y) -> mark(y) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) Empty rules are trivially bounded Hurray, we answered YES(O(1),O(n^1))