Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Show that the deferred acceptance algorithm terminates.

Short Answer

Expert verified

the deferred acceptance algorithm terminates.

Step by step solution

01

Step 1:

We shall prove this by contradiction method.

So, let

n denote a man and,

piproposal list of womenwi .

Now, we will assume that the algorithm never terminates.

This is possible only when there exists an integeri1,2,...,n and thenpi remains empty in every iteration.

02

Step 2:

When there are equal number of women and men ten there exists an integerjk1,2,...,n whereijk . So, thatPi contains at least two proposals in theKth iteration of the algorithm.

Now, at least one proposal will be rejected in theKth iteration.

Then there will be infinite number of iterations which implies that there are infinite numbers of rejected proposals.

03

Step 3:

We know that in each iteration at least one proposal should be rejected. But this is impossible because there are at mostn2 rejected proposals.

This is the contradiction which implies that we assume that the algorithm never terminates is not correct and proves that the deferred acceptance algorithm terminates.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free