Can a specialized version of the disjoint-set data structure support union and find on a set of intervals in constant time?
-
Specifically, is there a way to maintain disjoint intervals of integers from 1 to N, while being able to support the following operations in constant time? Union: Merge two adjacent intervals. Find: Determine which interval a specified integer is in.
-
Answer:
http://academiccommons.columbia.edu/download/fedora_content/download/ac:143186/CONTENT/cucs-473-89.pdf notes that there exists an amortized constant-time algorithm for the interval union-find algorithm that outperforms the standard amortized [math]\alpha(n)[/math] disjoint set algorithm. The paper notes that this algorithm works whenever the structure of the unions is known in advance. It, however, requires a random-access machine whereas the standard algorithm only requires a pointer machine. http://digitool.library.colostate.edu///exlibris/dtl/d3_1/apache_media/L2V4bGlicmlzL2R0bC9kM18xL2FwYWNoZV9tZWRpYS8xNjY3MDE=.pdf by Gabow and Tarjan describes the actual "static tree set union" algorithm. One point of interest is that, surprisingly, there are quite a few applications of this "slight but theoretically significant improvement." The details, however, are complicated and are left to the reader to examine :)
Johnny Ho at Quora Visit the source
Related Q & A:
- Can a teen legally work 2 part-time jobs?Best solution by Yahoo! Answers
- How can I turn a trial version game into the full version?Best solution by Yahoo! Answers
- Can I use a PAL version camera?Best solution by forum.videohelp.com
- Can I set my email to be sent out on a certain time or special time?Best solution by ehow.com
- Can I be a Principal and a Preschool Director at the same time?Best solution by Ask.Metafilter.Com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.