Question: 6 . Problem 7 - 6 ( page 1 8 8 ) on fuzzy sorting of intervals . 7 - 6 Fuzzy sorting of intervals

6. Problem 7-6(page 188) on fuzzy sorting of intervals.7-6 Fuzzy sorting of intervals
Consider a sorting problem in which we do not know the numbers exactly. In-
stead, for each number, we know an interval on the real line to which it belongs.
That is, we are given n closed intervals of the form ai,bi, where aibi. We
wish to fuzzy-sort these intervals, i.e., to produce a permutation (:i1,i2,dots,in:) of
the intervals such that for j=1,2,dots,n, there exist cjin[aij,bij] satisfying
c1c2cdotscn.
a. Design a randomized algorithm for fuzzy-sorting n intervals. Your algorithm
should have the general structure of an algorithm that quicksorts the left end-
points (the ai values), but it should take advantage of overlapping intervals to
improve the running time. (As the intervals overlap more and more, the prob-
lem of fuzzy-sorting the intervals becomes progressively easier. Your algorithm
should take advantage of such overlapping, to the extent that it exists.)
b. Argue that your algorithm runs in expected time (nlgn) in general, but runs
in expected time (n) when all of the intervals overlap (i.e., when there exists a
value x such that xin[ai,bi] for all i). Your algorithm should not be checking
for this case explicitly; rather, its performance should naturally improve as the
amount of overlap increases.
 6. Problem 7-6(page 188) on fuzzy sorting of intervals.7-6 Fuzzy sorting

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!