Design & Analyze of Algorithm
Design & Analyze of Algorithm
1. What is an algorithm?
a) A step-by-step procedure to solve a problem
b) A flowchart
c) A programming language
d) A data structure
18. What is the approximation ratio of the greedy algorithm for the
vertex cover problem?
a) 2
b) 3
c) 4
d) 5
20. What is the approximation ratio of the greedy algorithm for the
set covering problem?
a) 2
b) 3
c) 4
d) It depends on the specific instance of the problem.