Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Stable Triamorous Arrangement Problem In class we saw the stable marriage algorithm ( this algorithm and its analysis can be found in an accom

The Stable Triamorous Arrangement Problem
In class we saw the stable marriage algorithm (this algorithm and its analysis can be found in an accom-
panying handout), where the elements of two sets are paired together based on their preferences. In this
exercise, you will adapt this algorithm so that it can be applied to find an alternative relationship structure
which is popular at Burning Man. Here the input will be three sets A={A1,dots,An},B={B1,dots,Bn}
and C={C1,dots,Cn}, all of the same size, and for each element of each set we have a preference list. So,
for example, for each AinA, there is a set PA which lists A's preference on the set BC. So, for example,
we might have
PA={(B1,C1)>(B3,C5)>(B4,C1)>cdots}
if A's favorite pair is (B1,C1), second favorite pair is (B3,C5), and so on. Likewise, for BinB or CinC there
are preference lists PB and PC which list, respectively, B's and C's preferences on the elements of AC and
AB. Design an algorithm which, given such sets and preferences, finds a stable triamorous arrangement,
M, which is a set of triples (A,B,C) such that every AinA,BinB and CinC appear in exactly one triple, and
moreover so that the arrangement has no unstable throuple. An unstable throuple is a triple (A,B,C)!inM
such that each item of the triple prefers the other two to their specified pair in M. So, for example, A prefers
(B,C) to the (B',C') that A is paired with in M(and similarly for B and C). Analyze your algorithm (i.e.,
compute runtime and additionally prove that your algorithm outputs a stable triamorous arrangement).
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Deductive And Object Oriented Databases Second International Conference Dood 91 Munich Germany December 18 1991 Proceedings Lncs 566

Authors: Claude Delobel ,Michael Kifer ,Yoshifumi Masunaga

1st Edition

3540550151, 978-3540550150

More Books

Students also viewed these Databases questions