Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A large number n of dinosaur bones are discovered at an archeological site, and each bone is labeled by a distinct integer in {1,2,...,n}. Researchers

image text in transcribed
A large number n of dinosaur bones are discovered at an archeological site, and each bone is labeled by a distinct integer in {1,2,...,n}. Researchers examine some pairs of these bones to try to determine the number of different species of dinosaurs the bones come from. From this examination, they create a list L that contain a total of m items: each item in L is of the form Si, j), which means the bone labelled i and the bone labelled j are from the same specie, or of the form D(k.1), which means that the bone labelled k and the bone labelled I are from different species. But, unfortunately, researchers may make mistakes: for example, they could create a list L = ...,S(3, 2),..., D(5,2),..., S(5,3),... which must be incorrect (do you see why?). Design an efficient algorithm for the following task: n. The algorithm's input is a list L of m items as described above, where m (Recall that n is the total mumber of bones that were discovered.) . If the list L is incorrect as explained above) then the algorithm outputs ERROR FOUND else the algorithm outputs an integer k, where k is the maximum possible number of different species the bones are from, according to the input list L. Describe your algorithm in clear and concise English and analyze its worst-case time complexity. The worst-case running time of your algorithm must be asymptotically better than Omn)

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions