Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a question in book Algorithm Design, Chapter 5 Question 3. https://www.chegg.com/homework-help/Algorithm-Design-1st-edition-chapter-5-problem-3E-solution-9780321295354 Suppose youre consulting for a bank thats concerned about fraud detection, and

This is a question in book "Algorithm Design", Chapter 5 Question 3.

https://www.chegg.com/homework-help/Algorithm-Design-1st-edition-chapter-5-problem-3E-solution-9780321295354

Suppose youre consulting for a bank thats concerned about fraud detection, and they come to you with the following problem. They have a collection of n bank cards that theyve confiscated, suspecting them of being used in fraud. Each bank card is a small plastic object, contain- ing a magnetic stripe with some encrypted data, and it corresponds to a unique account in the bank. Each account can have many bank cards corresponding to it, and well say that two bank cards are equivalent if they correspond to the same account.

Its very difficult to read the account number off a bank card directly, but the bank has a high-tech "equivalence tester" that takes two bank cards and, after performing some computations, determines whether they are equivalent.

Their question is the following: among the collection of n cards, is there a set of more than n/2 of them that are all equivalent to one another? Assume that the only feasible operations you can do with the cards are to pick two of them and plug them in to the equivalence tester. Show how to decide the answer to their question with only O(n log n) invocations of the equivalence tester.

P.S. I'm not quite sure do I need to give the code of equivalence tester or not

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago