Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the following problem, please explain (no code required) the resulting algorithm and also it's complexity: 7-6 Fuzzy sorting of intervals Consider a sorting problem

For the following problem, please explain (no code required) the resulting algorithm and also it's complexity:

image text in transcribed

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,bil, where a s bi. We wish to fuzzy-sort these intervals, i.e., to produce a permutation (i, i2, ..., in) of the intervals such that forj1,2,....n, there exist cj [ai,.bij] satisfying 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.) h Argue that your algorithm runs in expected time (n Ign) in general, but runs in expected time (n) when all of the intervals overlap (i.e., when there exists a value x such that x e ai, bil 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

Answered: 1 week ago

Answered: 1 week ago

Question

=+What is the nature of the plant or site-level role of unions?

Answered: 1 week ago

Question

=+such as the dirigenti in Italy?

Answered: 1 week ago