YES We show the termination of the relative TRS R/S: R: p(s(x)) -> x fac(|0|()) -> s(|0|()) fac(s(x)) -> times(s(x),fac(p(s(x)))) S: rand(x) -> x rand(x) -> rand(s(x)) -- SCC decomposition. Consider the non-minimal dependency pair problem (P, R), where P consists of p1: fac#(s(x)) -> fac#(p(s(x))) p2: fac#(s(x)) -> p#(s(x)) and R consists of: r1: p(s(x)) -> x r2: fac(|0|()) -> s(|0|()) r3: fac(s(x)) -> times(s(x),fac(p(s(x)))) r4: rand(x) -> x r5: rand(x) -> rand(s(x)) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the non-minimal dependency pair problem (P, R), where P consists of p1: fac#(s(x)) -> fac#(p(s(x))) and R consists of: r1: p(s(x)) -> x r2: fac(|0|()) -> s(|0|()) r3: fac(s(x)) -> times(s(x),fac(p(s(x)))) r4: rand(x) -> x r5: rand(x) -> rand(s(x)) The set of usable rules consists of r1, r2, r3, r4, r5 Take the reduction pair: lexicographic combination of reduction pairs: 1. matrix interpretations: carrier: N^3 order: lexicographic order interpretations: fac#_A(x1) = x1 s_A(x1) = ((1,0,0),(1,1,0),(0,0,1)) x1 + (0,2,1) p_A(x1) = x1 fac_A(x1) = ((0,0,0),(1,0,0),(1,1,0)) x1 + (1,1,0) |0|_A() = (0,0,1) times_A(x1,x2) = (0,0,0) rand_A(x1) = x1 + (1,1,1) 2. lexicographic path order with precedence: precedence: fac > times > s > |0| > rand > fac# > p argument filter: pi(fac#) = 1 pi(s) = [1] pi(p) = [] pi(fac) = [] pi(|0|) = [] pi(times) = [] pi(rand) = [] The next rules are strictly ordered: p1 We remove them from the problem. Then no dependency pair remains.