Professional Documents
Culture Documents
:
Name :
3 (a) Determine the Convex Hull Problem. Using your own example, discuss the
brute force method for solving convex hull. Calculate time complexity. 10
OR
(b) Why are approximation algorithms good?
Apply an approximate algorithm for TSP that returns a tour with a cost that is 10
never twice as high as the cost of an ideal tour for the given example
Page 1 of
2
PART - B (20 Marks)
4 Distinguish procedures for 0/1 Knapsack and fractional knapsack problem, Identify
the algorithm methodologies used for these Knapsack problems, Solve the following
Knapsack problem using Greedy method approach. Here Knapsack capacity W=10.
10
Item Weight Value
A 4 40
B 7 42
C 5 25
D 3 12
5 Determine the largest number of triangles (including triangles with no area) that can
be made by connecting the intersection points of the given 'n' line segments, each of
which is either horizontal or vertical for the below line segments.
10
|
---|-------|--
| | -----
| --|--|- |
| | |
Page 2 of
2