1)
Invalid: p →\to→ q and q do not support the conclusion of p
2)
Algorithm makes
n(n−1)...1=n!n(n-1)...1=n!n(n−1)...1=n! operations
so,
f(n)=O(n!)f(n)=O(n!)f(n)=O(n!)
for n = 10:
sum=10+9+8+...+2+1=55sum=10+9+8+...+2+1=55sum=10+9+8+...+2+1=55
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!