Professional Documents
Culture Documents
Summer Project: Arkaprava Paul October 15,2019
Summer Project: Arkaprava Paul October 15,2019
Arkaprava Paul
October 15,2019
Problem Statement
1
Example
2
A possible assignment for k=4 and n=6
3
Observations
2n
• The possible values for r is finite, to be precise it is exactly, k
which is O(nk )
4
• It is noticed that the values that r can take is actually
polynomial, as r is essentially the distance between the segments
, either horizontal or vertical. The number of possible values
2n
that r can take is 2 ≈ O(n2 )
• Given a set of vertical lines such that the leftmost line and the
right- most line having a distance 2r, then there exists a vertical
line such that no line is farther from it by a distance r if ∀ lines
there exists an adjacent line(to the left or right) which is at a
distance not farther than r .
5
A Reformulation of this problem in graph
terminology
Definitions
Vertex Cover : A set of vertices such that each edge of
the graph is incident to at least one vertex of the set.
K5
6
Graphical representation of the original problem
7
For k=1, we can find r, in time O(nlogn), we need to
sort the segments in ascending order along the
vertical axis first, and then the horizontal axis , and
select the n2 th segment.