LARGEST EMPTY.pdf - Library(ISI Kolkata) - Indian Statistical Institute
LARGEST EMPTY.pdf - Library(ISI Kolkata) - Indian Statistical Institute
LARGEST EMPTY.pdf - Library(ISI Kolkata) - Indian Statistical Institute
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
J. Chaudhuri et al. / Journal of Algorithms 46 (2003) 54–78 77<br />
5. Conclusion<br />
In this paper, we have considered the problem of locating the largest empty rectangle,<br />
of any arbitrary orientation, among a set of points. An algorithmic technique is proposed<br />
to solve this problem which inspects all the PMERs present in the plane. One may hope<br />
for a faster algorithm without considering all the PMERs.<br />
Acknowledgments<br />
The authors acknowledge Prof. Micha Sharir for suggesting the example in Fig. 5, which<br />
proves that the upper bound of the number of PMERs is Ω(n 3 ). We thank the referees of<br />
the paper for valuable suggestions which improved the presentation of the paper.<br />
Appendix A. Area calculation<br />
Let us consider a set of MERs denoted by six-tuples {p i ,p j ,p k ,p l ,φ,ψ}. ThePMER<br />
is a member in this set which has largest area. Let the grid angle corresponding to the<br />
PMER be θ.Thevalueofθ is obtained as follows:<br />
At grid angle θ, the lines corresponding to the north and south boundaries of the PMER<br />
will be (y −y i ) = m∗(x −x i ) and (y −y k ) = m∗(x −x k ), respectively, where m = tan(θ).<br />
The lines at the east and west boundaries will be (y − y l ) = (−1/m) ∗ (x − x l ) and<br />
(y − y j ) = (−1/m)∗ (x − x j ), respectively. So we have the coordinates of its four corners<br />
as follows:<br />
( m(yl − y i ) + (m 2 x i + x l )<br />
north-east:<br />
m 2 , m(x l − x i ) + (m 2 )<br />
y l + y i )<br />
+ 1<br />
m 2 ,<br />
+ 1<br />
( m(yj − y i ) + (m 2 x i + x j )<br />
north-west:<br />
m 2 , m(x j − x i ) + (m 2 )<br />
y j + y i )<br />
+ 1<br />
m 2 ,<br />
+ 1<br />
( m(yl − y k ) + (m 2 x k + x l )<br />
south-east:<br />
m 2 , m(x l − x k ) + (m 2 )<br />
y l + y k )<br />
+ 1<br />
m 2 ,<br />
+ 1<br />
( m(yj − y k ) + (m 2 x k + x j )<br />
south-west:<br />
m 2 , m(x j − x k ) + (m 2 )<br />
y j + y k )<br />
+ 1<br />
m 2 .<br />
+ 1<br />
The area of the rectangle is<br />
A θ = (m(y l − y j ) + (x l − x j ))((y k − y i ) + m(x i − x k ))<br />
m 2 , φ θ ψ.<br />
+ 1<br />
This is a unimodal function in 0 θ π/2. Its maximum value can be obtained by solving<br />
δ<br />
δθ A θ = 0. Now we have<br />
δ<br />
δθ A 1 [<br />
θ = (yk<br />
m 2 − y i )(y l − y j ) + (x i − x k )(x l − x j ) ]<br />
+ 1<br />
+ 2m [ (x i − x k )(y l − y j ) + (y k − y i )(x l − x j ) ]<br />
− m 2[ (y l − y j )(y k − y i ) + (x l − x j )(x i − x k ) ] , where m = tan(θ).