Question: Every man in a village of 100 married couples has cheated on his wife. Every wife in the village instantly knows when a man other than her husband has cheated, but does not know when her own husband has. The village has a law that does not allow for adultery. Any wife who can prove that her husband is unfaithful must kill him that very day. The women of the village would never disobey this law. One day, the queen of the village visits and announce that at least one husband has been unfaithful. What happens?
In logically thinking...
Lets say n is the number of cheaters. Some wifes think there are n cheaters and some wifes think there are n-1 cheaters as they assume their husbands are innocent.
If n = 1, the wife who thinks the number of cheaters are zero. She will kill her husband when the queen announces at least one.
If n = 2, some wifes will know number of cheaters are 2 and some wifes will know number of cheater is 1. In the first (1) day, the wife who knows the number of cheater is 1 will not sure whether her husband is cheater or not. In the second (2) day, if no one kill their husbands and it implies her own husband is the cheater.
In conclusion, in n th day, the cheaters will be killed by their wifes.
From inner thinking, I will kill my own husband in the very first day. In Chinese, it is so called "kill 1 alert 100". ;)
Tuesday, March 27, 2007
Friday, March 23, 2007
Extensible Test Framework
In short release cycle, most test software is written without clear thought on underlying plan. Nowadays, most software components are brought from different companies. The final product is the integration of the acquiring companies' product. When automating the test case, it is usually just implemented to suit for certain users' view depends on how broad knowledge the test developers have. How can we do systematic testing through discovery approach with limited time?
Lets say deployment testing. There are different ways to deploy an application to the server. Applications can be deployed via java application, ant tasks, scripting, and IDE etc. However, the correlation for deployment are between applications, deployment vehicle, procedures and verifiers. To study the relation to one another of different form of deployment processes, we can build an extensible test framework. i.e. Even we don't aware of scripting which can be counted as one kind of vehicle, we can still build the test components up and extend the vehicle when it is needed in the future.
Lets say deployment testing. There are different ways to deploy an application to the server. Applications can be deployed via java application, ant tasks, scripting, and IDE etc. However, the correlation for deployment are between applications, deployment vehicle, procedures and verifiers. To study the relation to one another of different form of deployment processes, we can build an extensible test framework. i.e. Even we don't aware of scripting which can be counted as one kind of vehicle, we can still build the test components up and extend the vehicle when it is needed in the future.
Subscribe to:
Posts (Atom)