Input TRS: 1: concat(leaf,Y) -> Y 2: concat(cons(U,V),Y) -> cons(U,concat(V,Y)) 3: lessleaves(X,leaf) -> false 4: lessleaves(leaf,cons(W,Z)) -> true 5: lessleaves(cons(U,V),cons(W,Z)) -> lessleaves(concat(U,V),concat(W,Z)) Dependency Pairs: #1: #concat(cons(U,V),Y) -> #concat(V,Y) #2: #lessleaves(cons(U,V),cons(W,Z)) -> #lessleaves(concat(U,V),concat(W,Z)) #3: #lessleaves(cons(U,V),cons(W,Z)) -> #concat(U,V) #4: #lessleaves(cons(U,V),cons(W,Z)) -> #concat(W,Z) Number of SCCs: 2 SCC { #1 } QKBOPS(sum)... removes: #1 I(cons) = 1 + x2 \pi(cons) = [] I(#concat) = 1 + x1 + x2 \pi(#concat) = [2,1] PREC: #concat > cons USABLE RULES: { } Number of SCCs: 1 SCC { #2 } QKBOPS(sum)... removes: #2 I(concat) = 1 + x1 + x2 \pi(concat) = [1] I(cons) = 1 + x1 + x2 \pi(cons) = [1,2] I(leaf) = 1 I(#lessleaves) = x2 \pi(#lessleaves) = 2 PREC: concat = cons = leaf USABLE RULES: { 2 1 } Number of SCCs: 0