A group of n red pirates and a group of n blue pirates have a shared treasure chest and one unique lock and key for each pirate. Using hardware that is probably already lying around their two ships, they want to protect the chest so that any pair of pirates, one red and one blue, can open the chest using their two locks and keys, but no group of red or blue pirates can open the chest without

having at least one pirate from the other group. How do they set this up?

What will be an ideal response?


The red pirates link their locks together in a chain and wrap that chain through
a latch on the chest that is big enough to let locks slide through it. Likewise, the blue
pirates link their locks together in a chain and wrap that chain through the same latch.
Now, to open the chest, they need one red pirate to open the chain of red-pirate locks and
they need one blue pirate to open the chain of blue-pirate locks.

Computer Science & Information Technology

You might also like to view...

Which of the following is an error:

a) referencing a private attribute of a class in a member function b) failing to include the .cpp file c) calling a member function without the dot notation outside the class d) putting a semicolon after the class definition

Computer Science & Information Technology

Click the ____ button in the Insert File dialog box to attach a document to the contact.

A. Add Document B. Insert C. Attach Document D. Attach

Computer Science & Information Technology

DeQuervain's ____________________ is a painful condition affecting the tendons on the thumb side of the wrists.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What file type below, associated with VMWare, stores VM paging files that are used as RAM for a virtual machine??

A. ?.nvram B. ?.vmem C. .?vmpage D. ?.vmx

Computer Science & Information Technology