Indicate the input size for an algorithm that solves:
l. In Lesson 1, algorithm's complexity is measured on input size instead of
input values. Please indicate the input size for an algorithm that solves the following problem: Given: a number n and two primes p,q Question: is it the case that n = pq?
In Lesson 2, we learned linear-time selection algorithm where the input array of numbers are cut into groups of size 5. Show that, when the group size is 7, the algorithm still runs in linear time.