Design And Analysis Of Algorithms Set 5
On This Page
This set of Design and Analysis of Algorithms Multiple Choice Questions & Answers (MCQs) focuses on Design And Analysis Of Algorithms Set 5
Q1 | Quick sort uses join operation rather than merge operation.
- true
- false
Q2 | How many sub arrays does the quick sort algorithm divide the entire array into?
- one
- two
- three
- four
Q3 | Which is the worst method of choosing a pivot element?
- first element as pivot
- last element as pivot
- median-of-three partitioning
- random element as pivot
Q4 | The shortest distance between a line and a point is achieved when?
- a line is drawn at 90 degrees to the given line from the given point
- a line is drawn at 180 degrees to the given line from the given point
- a line is drawn at 60 degrees to the given line from the given point
- a line is drawn at 270 degrees to the given line from the given point
Q5 | What is the shortest distance between the line given by -2x + 3y + 4 = 0 and the point (5,6)?
- 4.5 units
- 5.4 units
- 4.3 units
- 3.3 units
Q6 | What is the distance between the lines 3x- 4y+7=0 and 3x-4y+5=0?
- 1 unit
- 0.5 unit
- 0.8 unit
- 0.4 unit
Q7 | What will be the slope of the line given by ax + by + c = 0?
- -a/b
- -b/a
- -c/a
- a/c
Q8 | What will be the slope of the line given by 10x + 5y + 8=0?
- -5
- -2
- -1.25
- 5
Q9 | Which of the following areas do closest pair problem arise?
- computational geometry
- graph colouring problems
- numerical problems
- string matching
Q10 | What is the runtime efficiency of using brute force technique for the closest pair problem?
- o(n)
- o(n log n)
- o(n2)
- o(n3 log n)
Q11 | The most important condition for which closest pair is calculated for the points (pi, pj) is?
- i>j
- i!=j
- i=j
- i