Question: A set S in a vector space is convex if , for any two points x , y in S , the line segment joining
A set S in a vector space is convex if for any two points x y in S the line segment joining x and y is entirely contained within S Formally, S is convex if for all xy in S and in the point x y in S
For example the set X shown below is convex because you can take any two points in the set and join a straight line between them such that all points on the line belong to the set X Set Y is not convex because the line joining points A and B have some points that are not contained within the set Y Problem Identify Convex and non Convex set from the following illustrations. marks Definition of Convex Hull
Definition The smallest convex set refers to the minimal convex boundary that encloses all the points, meaning there is no other convex set with a smaller area or volume in higher dimensions that still contains all the points.Figure : If we needed to find the convex hull for the points given above, simply joining the points one by one does not suffice as the line joining the two points shown in purple lies entirely outside the set and hence the above boundary of the points doesnt represent a convex hull
Problem Show that the convex hull of a finite set of points more than two points is a convex polygon. You can assume that the points are noncollinear. marks
Solution.Problem Find the convex hull of the set of points Do this by drawing the convex hull for this point set. marks
Solution.
Properties of Convex Hull Minimality
Problem Prove that the convex hull of a set of points is minimal. marks Solution.
Intersection Property
Problem Prove that the convex hull is the intersection of all convex sets containing a given set. marks
Solution.
Uniqueness
Problem Prove that the convex hull of a set of points is unique. marks Solution.
Divide and Conquer Approach for Convex Hull Splitting the Set of Points
Problem Split a given set of points into two subsets by a vertical line. Some considerations when you are splitting:
Avoid Collinearity: Ensure the line doesnt overlap any points you want to separate.
Subset Sizes: Decide if you want equalsized subsets or if different sizes are acceptable.
Boundary Conditions: Determine whether points on the line belong to the left or right subset.
marks
Solution.
Problem Why is it necessary to divide the points with respect to the median and not the mean?
marks
Solution.
Merging the Convex Hulls
Definition The Upper Tangent The upper tangent between two convex hulls is the line segment that touches both hulls at exactly one point each and lies above all other points in both hulls.Definition The Lower Tangent Similarly, the lower tangent is the line segment that touches both hulls at exactly one point each and lies below all other points in both hulls.Problem Given the following code to merge convex hulls including the code for the upper tangent, write the code finding the lower tangent. marksAlgorithm Convex Hull Merging Process
: : : : : : : : :
: : :
: : : : : : :
Input: Two convex hulls, Hull A and Hull B Output: Merged convex hull
procedure FindUpperTangentHull A Hull B
Set i index of the rightmost point of Hull A
Set j index of the leftmost point of Hull B
while line segment Hull AiHull Bj is not an upper tangent do
if not an upper tangent for Hull A then Move i counterclockwise in Hull A
else if not an upper tangent for Hull B then Move j clockwise in Hull B
return Hull AiHull Bj as the upper tangent
procedure FindLowerTangentHull A Hull B
procedure MergeHullsHull A Hull B
upperT angent FindUpperTangentHull A Hull B lowerT angent FindLowerTangentHull A Hull B Initialize an empty list for the merged hull
Traverse points from upperTangent to lowerTangent on Hull A Traverse points from upperTangent to lowerTangent on Hull B return the merged convex hull
Solution.
Problem Given the points and find the upper and lower tangents between the convex hulls of the sets and For finding the lower tangent, use the algorithm you wrote for the previous question. marks
Solution.
Problem Merge the convex hulls and using the algorithm
mentioned above. marks
Solution.
Problem Why not select the highest point for the upper tangent and the lowest points for the
lower tangent? Why use the mentioned algorithm? marks
Solution.
Problem Explain why the merging step in the divide and conquer algorithm takes On time.
marks
Solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
