6. Consider the following brute-force algorithm for solving the composite
7. State the decision version for each of the following problems and outline
a polynomial-time algorithm that verifies whether or not a proposed so-
lution solves the problem. (You may assume that a proposed solution
8. BShow that the partition problem is polynomially reducible to the deci-
sion version of the knapsack problem.
9. BShow that the following three problems are polynomially reducible to
each other.
(i) Determine, for a given graph =hiand a positive integer ≤||,
whether contains a clique of size or more. (A clique of size in a
10. Determine whether the following problem is NP-complete. Given several
sequences of uppercase and lowercase letters, is it possible to select a
letter from each sequence without selecting both the upper- and lowercase
versions of any letter? For example, if the sequences are Abc, BC, aB, and
11. BWhich of the following diagrams do not contradict the current state
of our knowledge about the complexity classes P,NP,andNPC (NP-
22