Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we have a set U={1,2,,n}. Let S be an unknown subset of U, such that we do not know its size or members. However,

image text in transcribed

Suppose we have a set U={1,2,,n}. Let S be an unknown subset of U, such that we do not know its size or members. However, we do have a devise that can answer the following queries: given a subset T of U of our choosing, the devise tells us whether T and S have an element in common or not. We want to use this devise to learn S in its entirety and output it. 1. How many possible subsets S are there? 2. Give an algorithm that finds S using n queries. 3. Show that at least n queries are necessary to learn S. (Hint: Try to adapt the idea behind the proof that comparison-based sorting requires (nlogn) comparisons to this setting.)

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

What should be included in a code of ethics?

Answered: 1 week ago

Question

=+ f. instituting laws against driving while intoxicated

Answered: 1 week ago