1.

What is the distance between the lines 3x-4y+7=0 and 3x-4y+5=0?(a) 1 unit(b) 0.5 unit(c) 0.8 unit(d) 0.4 unitThis question was addressed to me at a job interview.Question is taken from Computational Geometry in section Computational Geometry of Data Structures & Algorithms II

Answer»

The correct option is (d) 0.4 UNIT

Explanation: As the GIVEN LINES are parallel so the DISTANCE between them can be calculated by using the formula (c1-c2)/(√a^2+b^2). So we get the distance as 0.4 unit.



Discussion

No Comment Found

Related InterviewSolutions