7 thieves wanted to lock the treasure looted from a ship. They wanted to put N no. of locks to the treasure where each lock had multiple keys. Find the minimum number of locks N and minimum no. of keys K with every thief subject to the following conditions:-
All the locks should open each time a majority of thieves(4 or more) try to open the locks.
At least one lock remains unopened if less than 4 thieves try opening them.
All locks should have same no. of keys.
All thieves must have same no. of keys with them.
You have Some Terminal Condition, which necessitates taking two pills a day: one Pill A and one Pill B. If you neglect to take either pill, you die; if you take more than one A or more than one B, you die. If you don’t take them at exactly the same time, you die. [...]
N ants are randomly spread on rod 1 meter long. They can move either to the left or to the right. They move at a constant speed of 1 m/s and when they meet, they shake hands and reverse their direction. Assume that the shaking of hands involves no time delay. If an ant [...]