Main Page: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
In [[mathematics]], the '''Riemann–Siegel theta function''' is defined in terms of the [[Gamma function]] as
The '''missionaries and cannibals problem''', and the closely related '''jealous husbands problem''', are classic [[river-crossing problems]].<ref name=a>[http://links.jstor.org/sici?sici=0025-5572%28198906%292%3A73%3A464%3C73%3A%22JHA%22M%3E2.0.CO%3B2-S "The Jealous Husbands" and "The Missionaries and Cannibals"], Ian Pressman and David Singmaster, ''The Mathematical Gazette'', '''73''', #464 (June 1989), pp. 73&ndash;81.</ref>  The missionaries and cannibals problem is a well-known [[toy problem]] in [[artificial intelligence]], where it was used by [[Saul Amarel]] as an example of problem representation.<ref>[http://www.cc.gatech.edu/~jimmyd/summaries/amarel1968-1.html On representations of problems of reasoning about actions], Saul Amarel, pp. 131&ndash;171, ''Machine Intelligence 3'', edited by Donald Michie, Amsterdam, London, New York: Elsevier/North-Holland, 1968.</ref><ref>p. 9, [http://dx.doi.org/10.1007/11829263_1 Searching in a Maze, in Search of Knowledge: Issues in Early Artificial Intelligence], Roberto Cordeschi, pp. 1&ndash;23, ''Reasoning, Action andj Interaction in AI Theories and Systems: essays dedicated to Luigia Carlucci Aiello'', edited by Oliviero Stock and Marco Schaerf, Lecture Notes in Computer Science #4155, Berlin/Heidelberg: Springer, 2006, ISBN 978-3-540-37901-0.</ref>


:<math>\theta(t) = \arg \left(
==The problem==
\Gamma\left(\frac{2it+1}{4}\right)
In the missionaries and cannibals problem, three missionaries and three cannibals must cross a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals (if they were, the cannibals would eat the missionaries.) The boat cannot cross the river by itself with no people on board.<ref name=a />
\right)
- \frac{\log \pi}{2} t</math>


for real values of tHere the argument is chosen in such a way that a continuous function is obtained and <math>\theta(0)=0</math> holds, i.e., in the same way that the [[principal branch]] of the [[logarithm|log]] Gamma function is defined.
In the jealous husbands problem, the missionaries and cannibals become three married couples, with the constraint that no woman can be in the presence of another man unless her husband is also presentUnder this constraint, there cannot be both women and men present on a bank with women outnumbering men, since if there were, some woman would be husbandless.  Therefore, upon changing men to missionaries and women to cannibals, any solution to the jealous husbands problem will also become a solution to the missionaries and cannibals problem.<ref name=a />


It has an [[asymptotic expansion]]
==Solving==
Amarel devised a system for solving the Missionaries and Cannibals problem whereby the current state is represented by a simple vector <a,b,c>. The vector's elements represent the number of missionaries on the wrong side, the number of cannibals on the wrong side, and the number of boats on the wrong side, respectively. Since the boat and all of the missionaries and cannibals start on the wrong side, the vector is initialized to <3,3,1>. Actions are represented using vector subtraction/addition to manipulate the state vector. For instance, if a lone cannibal crossed the river, the vector <0,1,1> would be subtracted from the state to yield <3,2,0>. The state would reflect that there are still three missionaries and two cannibals on the wrong side, and that the boat is now on the opposite bank. To fully solve the problem, a simple tree is formed with the initial state as the root. The five possible actions (<1,0,1>, <2,0,1>, <0,1,1>, <0,2,1>, and <1,1,1>) are then ''subtracted'' from the initial state, with the result forming children nodes of the root. Any node that has more cannibals than missionaries on either bank is in an invalid state, and is therefore removed from further consideration. The valid children nodes generated would be <3,2,0>, <3,1,0>, and <2,2,0>. For each of these remaining nodes, children nodes are generated by ''adding'' each of the possible action vectors. The algorithm continues alternating subtraction and addition for each level of the tree until a node is generated with the vector <0,0,0> as its value. This is the goal state, and the path from the root of the tree to this node represents a sequence of actions that solves the problem.


:<math>\theta(t) \sim \frac{t}{2}\log \frac{t}{2\pi} - \frac{t}{2} - \frac{\pi}{8}+\frac{1}{48t}+ \frac{7}{5760t^3}+\cdots</math>
==Solution==
The earliest solution known to the jealous husbands problem, using 11 one-way trips, is as follows.  The married couples are represented as ''<math>\alpha</math>'' (male) and ''a'' (female), ''<math>\beta</math>'' and ''b'', and ''<math>\gamma</math>'' and ''c''.<ref name=b>Jealous Husbands Crossing the River: A Problem from Alcuin to Tartaglia,
Raffaella Franci, pp. 289&ndash;306, ''From China to Paris: 2000 Years Transmission of Mathematical Ideas'', edited by Yvonne Dold-Samplonius, Joseph W. Dauben, Menso Folkerts, and Benno van Dalen, Stuttgart: Franz Steiner Verlag, 2002, ISBN 3-515-08223-9.</ref><sup>,&nbsp;p.&nbsp;291.</sup>


which is not convergent, but whose first few terms give a good approximation for <math>t \gg 1</math>. Its Taylor-series at 0 which converges for <math>|t| < 1/2</math> is
{| class="wikitable"
 
! Trip number
<math>\theta(t) = -\frac{t}{2} \log \pi + \sum_{k=0}^{\infty} \frac{(-1)^k \psi^{(2k)}\left(\frac{1}{4}\right) }{(2k+1)!} \left(\frac{t}{2}\right)^{2k+1}</math>
! Starting bank
 
! Travel
where <math>\psi^{(2k)}</math> denotes the [[Polygamma function]] of order <math>2k</math>.
! Ending bank
The Riemann–Siegel theta function is of interest in studying the [[Riemann zeta function]], since it can rotate the Riemann zeta function such that it becomes the totally real valued [[Z function]] on the [[critical line]] <math>s = 1/2 + i t</math> .
|-
 
| (start)
== Curve discussion ==
| <math>\alpha</math>a <math>\beta</math>b <math>\gamma</math>c
 
|
The Riemann–Siegel theta function is an odd [[real analytic function]] for real values of ''t''. It has 3 roots at 0 and <math>\pm 17.8455995405\ldots</math> and it is an increasing function for values |''t''| > 6.29, because it has exactly one minima and one maxima at <math>\pm 6.289835988\ldots</math> with absolute value <math>
|
3.530972829\ldots</math>. Lastly it has a unique inflection point at t=0 with <math>\theta^\prime(0)= -\frac{\ln \pi + \gamma + \pi/2 + 3 \ln 2}{2} = -2.6860917\ldots</math> where the theta function has its derivation minimum.
 
==Theta as a function of a complex variable==
We have an infinite series expression for the log Gamma function
 
:<math>\log \Gamma \left(z\right) = -\gamma z -\log z 
+ \sum_{n=1}^\infty
\left(\frac{z}{n} - \log \left(1+\frac{z}{n}\right)\right),</math>
 
where ''γ'' is [[Euler–Mascheroni constant|Euler's constant]]. Substituting <math>(2it+1)/4</math> for ''z'' and taking the imaginary part termwise gives the following series for ''θ''(''t'')
 
:<math>\theta(t) = -\frac{\gamma + \log \pi}{2}t - \arctan 2t
+ \sum_{n=1}^\infty \left(\frac{t}{2n}
- \arctan\left(\frac{2t}{4n+1}\right)\right).</math>
 
For values with imaginary part between -1 and 1, the arctangent function is [[holomorphic function|holomorphic]], and it is easily seen that the series converges uniformly on compact sets in the region with imaginary part between -1/2 and 1/2, leading to a holomorphic function on this domain. It follows that the [[Z function]] is also holomorphic in this region, which is the critical strip.
 
We may use the identities
 
:<math>\arg z = \frac{\log z - \log\bar z}{2i}\quad\text{and}\quad\overline{\Gamma(z)}=\Gamma(\bar z)</math>
 
to obtain the closed-form expression
 
:<math>\theta(t) = \frac{\log\Gamma\left(\frac{2it+1}{4}\right)-\log\Gamma\left(\frac{-2it+1}{4}\right)}{2i} - \frac{\log \pi}{2} t,</math>
 
which extends our original definition to a holomorphic function of t.  Since the principal branch of log Γ has a single branch cut along the negative real axis, θ(t) in this definition inherits branch cuts along the imaginary axis above i/2 and below -i/2.
 
{| style="text-align:center"
|+ '''Riemann–Siegel theta function in the complex plane'''
|[[Image:Riemann Siegel Theta 1.jpg|1000x140px|none]]
|[[Image:Riemann Siegel Theta 2.jpg|1000x140px|none]]
|[[Image:Riemann Siegel Theta 3.jpg|1000x140px|none]]
|-
|-
|<math>
|1
-1 < \Re(t) < 1
|<math>\beta</math>b <math>\gamma</math>c
</math>
|<math>\alpha</math>a
|<math>
|
-5 < \Re(t) < 5
</math>
|<math>
-40 < \Re(t) < 40
</math>
|}
 
==Gram points==
The Riemann zeta function on the critical line can be written
 
:<math>\zeta\left(\frac{1}{2}+it\right) = e^{-i \theta(t)}Z(t),</math>
:<math>Z(t) = e^{i \theta(t)} \zeta\left(\frac{1}{2}+it\right).</math>
 
If '''<math>t</math>''' is a [[real number]], then the [[Z function]] <math>Z\left(t\right)</math> returns ''real'' values.
 
Hence the zeta function on the critical line will be ''real'' when
<math>\sin\left(\,\theta(t)\,\right)=0</math>. Positive real values of '''<math>t</math>''' where this occurs are called '''Gram points''', after [[Jørgen Pedersen Gram|J. P. Gram]], and can of course also be described as the points where <math>\frac{\theta(t)}{\pi}</math> is an integer.
 
A '''Gram point''' is a solution '''<math>g_{n}</math>''' of
:<math>\theta\left(g_{n}\right) = n\pi.</math>
 
Here are the smallest non negative '''Gram points'''
{| class="wikitable" border="1"
|-
|-
! <math>n</math>
|2
! <math>g_{n}</math>
|<math>\beta</math>b <math>\gamma</math>c
! <math>\theta(g_{n})</math>
|←<math>\alpha</math>
|a
|-
|-
|style="text-align:right;"| -3
|3
|style="text-align:right;"| 0
|<math>\alpha</math> <math>\beta</math> <math>\gamma</math>
|style="text-align:right;"| 0
|bc →
|a
|-
|-
|style="text-align:right;"| -2
|4
|style="text-align:right;"|  3.4362182261...
|<math>\alpha</math> <math>\beta</math> <math>\gamma</math>
|style="text-align:right;"| -π
| ← a
|b c
|-
|-
|style="text-align:right;"| -1
|5
|style="text-align:right;"|  9.6669080561...
|<math>\alpha</math>a
|style="text-align:right;"| -π
| <math>\beta</math><math>\gamma</math> →
|b c
|-
|-
|style="text-align:right;"| 0
|6
| 17.8455995405...
|<math>\alpha</math>a
|style="text-align:right;"| 0
|← <math>\beta</math>b
|<math>\gamma</math>c
|-
|-
|style="text-align:right;"| 1
|7
| 23.1702827012...
|a b
|style="text-align:right;"| π
|<math>\alpha</math><math>\beta</math> →
|<math>\gamma</math>c
|-
|-
|style="text-align:right;"| 2
|8
| 27.6701822178...
|a b
|style="text-align:right;"|
|← c
|<math>\alpha</math> <math>\beta</math> <math>\gamma</math>
|-©
|9
|b
|a c →
|<math>\alpha</math> <math>\beta</math> <math>\gamma</math>
|-
|-
|style="text-align:right;"| 3
|10
| 31.7179799547...
|b
|style="text-align:right;"| 3π
|← <math>\beta</math>
|<math>\alpha</math>a <math>\gamma</math>c
|-
|-
|style="text-align:right;"| 4
|11
| 35.4671842971...
|
|style="text-align:right;"| 4π
|<math>\beta</math>b →
|<math>\alpha</math>a <math>\gamma</math>c
|-
|-
|style="text-align:right;"| 5
|(finish)
| 38.9992099640...
|
|style="text-align:right;"| 5π
|
|<math>\alpha</math>a <math>\beta</math>b <math>\gamma</math>c
|}
 
This is a shortest solution to the problem, but is not the only shortest solution.<ref name=b /><sup>,&nbsp;p.&nbsp;291.</sup>
 
If however, only one man can get out of the boat at a time and husbands must be on the shore to count as with his wife as opposed to just being in the boat at the shore: move 5 to 6 is impossible, for as soon as ''<math>\gamma</math>'' has stepped out ''b'' on the shore won't be with her husband, despite him being just in the boat.
 
As mentioned previously, this solution to the jealous husbands problem will become a solution to the missionaries and cannibals problem upon replacing men by missionaries and women by cannibals.  In this case we may neglect the individual identities of the missionaries and cannibals.  The solution just given is still shortest, and is one of four shortest solutions.<ref>[http://portal.acm.org/citation.cfm?id=144045.144106 Cannibals and missionaries], Ruby Lim, pp. 135&ndash;142, ''Conference proceedings: APL '92, the International Conference on APL, 6–10 July 1992, St. Petersburg, Russia'', edited by Lynne C. Shaw, et al., New York: Association for Computing Machinery, 1992, ISBN 0-89791-477-5.</ref>
 
If a woman in the boat at the shore (but not ''on'' the shore) counts as being by herself (i.e. not in the presence of any men on the shore), then this puzzle can be solved in 9 one-way trips:
 
{| class="wikitable"
! Trip number
! Starting bank
! Travel
! Ending bank
|-
|-
|style="text-align:right;"| 6
| (start)
| 42.3635503920...
|<math>\alpha</math>a <math>\beta</math>b <math>\gamma</math>c
|style="text-align:right;"| 6π
|
|
|-
|-
|style="text-align:right;"| 7
|1
| 45.5930289815...
|<math>\beta</math>b <math>\gamma</math>c
|style="text-align:right;"| 7π
|<math>\alpha</math>a →
|
|-
|-
|style="text-align:right;"| 8
|2
| 48.7107766217...
|<math>\beta</math>b <math>\gamma</math>c
|style="text-align:right;"| 8π
|← a
|<math>\alpha</math>
|-
|-
|style="text-align:right;"| 9
|3
| 51.7338428133...
|<math>\beta</math> <math>\gamma</math>c
|style="text-align:right;"| 9π
|ab →
|<math>\alpha</math>
|-
|-
|style="text-align:right;"| 10
|4
| 54.6752374468...
|<math>\beta</math> <math>\gamma</math>c
|style="text-align:right;"| 10π
| ← b
|<math>\alpha</math>a
|-
|-
|style="text-align:right;"| 11
|5
| 57.5451651795...
|<math>\gamma</math>c
|style="text-align:right;"| 11π
| <math>\beta</math>b →
|<math>\alpha</math>a
|-
|-
|style="text-align:right;"| 12
|6
| 60.3518119691...
|<math>\gamma</math>c
|style="text-align:right;"| 12π
|← b
|<math>\alpha</math>a <math>\beta</math>
|-
|-
|style="text-align:right;"| 13
|7
| 63.1018679824...
|<math>\gamma</math>
|style="text-align:right;"| 13π
|bc →
|<math>\alpha</math>a <math>\beta</math>
|-
|-
|style="text-align:right;"| 14
|8
| 65.8008876380...
|<math>\gamma</math>
|style="text-align:right;"| 14π
|← c
|<math>\alpha</math>a <math>\beta</math>b
|-©
|9
|  
|<math>\gamma</math>c →
|<math>\alpha</math>a <math>\beta</math>b
|-
|-
|style="text-align:right;"| 15
|(finish)
| 68.4535449175...
|
|style="text-align:right;"| 15π
|
|<math>\alpha</math>a <math>\beta</math>b <math>\gamma</math>c
|}
|}


The choice of the index ''n'' is a bit crude. It is historically chosen in such a way that the index is 0 at the first value which is larger than the smallest positive zero (at imaginary part 14.13472515 ...) of the Riemann zeta function on the critical line. Notice, this <math>\theta</math>-function oscillates for absolute-small real arguments and therefore is not uniquely invertible in the interval [-24,24]! Thus the [[Odd function|odd]] theta-function has its symmetric Gram point with value 0 at index -3.
==Variations==
Gram points are useful when computing the zeros of <math>Z\left(t\right)</math>. At a Gram point '''<math>g_{n}</math>''',
An obvious generalization is to vary the number of jealous couples (or missionaries and cannibals), the capacity of the boat, or both.  If the boat holds 2 people, then 2 couples require 5 trips; with 4 or more couples, the problem has no solution.<ref>[http://www.sciencenews.org/view/generic/id/4512/title/Math_Trek__Tricky_Crossings Tricky Crossings], Ivars Peterson, ''Science News'', '''164''', #24 (December 13, 2003); accessed on line February 7, 2008, URL update March 12, 2011</ref> If the boat can hold 3 people, then up to 5 couples can cross; if the boat can hold 4 people, any number of couples can cross.<ref name=b /><sup>,&nbsp;p.&nbsp;300.</sup>
 
:<math>\zeta\left(\frac{1}{2}+ig_n\right) = \cos(\theta(g_n))Z(g_n) = (-1)^n Z(g_n),</math>
 
and if this is ''positive'' at ''two'' successive Gram points, <math>Z\left(t\right)</math> must have a zero in the interval.
 
According to '''Gram’s law''', the [[real part]] is ''usually'' positive while the [[imaginary part]] alternates with the '''gram points''', between ''positive'' and ''negative'' values at somewhat regular intervals.
 
:<math>(-1)^n \, Z\left(g_{n}\right) > 0</math>
 
The number of roots, <math>N\left(T\right)</math>, in the strip from 0 to ''T'', can be found by
:<math>N\left(T\right) = \frac{\theta(T)}{\pi} + 1+S(T),</math>
where <math>S(T)</math> is an error term which grows asymptotically like <math>\log T</math>.
 
Only if <math>g_{n}</math> '''would obey Gram’s law''', then finding the number of roots in the strip simply becomes


:<math>N\left(g_{n}\right) = n + 1.</math>
If an island is added in the middle of the river, then any number of couples can cross using a two-person boat.  If crossings from bank to bank are not allowed, then 8''n''&minus;6 one-way trips are required to ferry ''n'' couples across the river;<ref name=a /><sup>,&nbsp;p.&nbsp;76</sup> if they are allowed, then 4''n''+1 trips are required if ''n'' exceeds 4, although a minimal solution requires only 16 trips if ''n'' equals 4.<ref name=a /><sup>,&nbsp;p.&nbsp;79.</sup>  If the jealous couples are replaced by missionaries and cannibals, the number of trips required does not change if crossings from bank to bank are not allowed; if they are however the number of trips decreases to 4''n''&minus;1, assuming that ''n'' is at least 3.<ref name=a /><sup>,&nbsp;p.&nbsp;81.</sup>


Today we know, that in the long run, '''Gram's law''' fails for about 1/4 of all Gram-intervals to contain exactly 1 zero of the Riemann zeta-function. Gram was afraid that it may fail for larger indices (the first miss is at index 126 before the 127th zero) and thus claimed this only for not too high indices. Later Hutchinson coined the phrase ''Gram's law'' for the (false) statement that all zeroes on the critical line would be separated by Gram points.
==History==
The first known appearance of the jealous husbands problem is in the medieval text ''[[Propositiones ad Acuendos Juvenes]]'', usually attributed to [[Alcuin]] (died 804.)  In Alcuin's formulation the couples are brothers and sisters, but the constraint is still the same&mdash;no woman can be in the company of another man unless her brother is present.<ref name=a /><sup>,&nbsp;p.&nbsp;74.</sup>  From the 13th to the 15th century, the problem became known throughout Northern Europe, with the couples now being husbands and wives.<ref name=b /><sup>,&nbsp;pp.&nbsp;291&ndash;293.</sup>  The problem was later put in the form of masters and valets; the formulation with missionaries and cannibals did not appear until the end of the 19th century.<ref name=a /><sup>,&nbsp;p.&nbsp;81</sup>  Varying the number of couples and the size of the boat was considered at the beginning of the 16th century.<ref name=b /><sup>,&nbsp;p.&nbsp;296.</sup>  Cadet de Fontenay considered placing an island in the middle of the river in 1879; this variant of the problem, with a two-person boat, was completely solved by Ian Pressman and [[David Singmaster]] in 1989.<ref name=a />


==See also==
==See also==
*[[Z function]]
*[[Fox, goose and bag of beans puzzle]]
*[[Transport puzzle]]
*[[Circumscription (logic)]]


==References==
==References==
*{{Citation | last1=Edwards | first1=H. M. | authorlink = Harold Edwards (mathematician) | title=Riemann's Zeta Function | publisher=[[Dover Publications]] | location=New York | isbn=978-0-486-41740-0 | mr=0466039 | year=1974}}
{{reflist}}
*{{citation|first=J. P.|last= Gram|title= Note sur les zéros de la fonction &zeta;(s) de Riemann|journal= Acta Mathematica|volume=27|issue=1|pages=289&ndash;304|year=1903|doi=10.1007/BF02421310}}


==External links==
[[Category:Logic puzzles]]
*{{MathWorld|title=Riemann-Siegel Functions|urlname=Riemann-SiegelFunctions}}
*[http://functions.wolfram.com/ZetaFunctionsandPolylogarithms/RiemannSiegelTheta/ Wolfram Research – Riemann-Siegel Theta function] (includes function plotting and evaluation)


{{DEFAULTSORT:Riemann-Siegel theta function}}
[[pt:Problema dos canibais e missionários]]
[[Category:Zeta and L-functions]]
[[uk:Задача про місіонерів та канібалів]]
[[zh:传教士和吃人恶魔问题]]

Revision as of 16:16, 13 August 2014

The missionaries and cannibals problem, and the closely related jealous husbands problem, are classic river-crossing problems.[1] The missionaries and cannibals problem is a well-known toy problem in artificial intelligence, where it was used by Saul Amarel as an example of problem representation.[2][3]

The problem

In the missionaries and cannibals problem, three missionaries and three cannibals must cross a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals (if they were, the cannibals would eat the missionaries.) The boat cannot cross the river by itself with no people on board.[1]

In the jealous husbands problem, the missionaries and cannibals become three married couples, with the constraint that no woman can be in the presence of another man unless her husband is also present. Under this constraint, there cannot be both women and men present on a bank with women outnumbering men, since if there were, some woman would be husbandless. Therefore, upon changing men to missionaries and women to cannibals, any solution to the jealous husbands problem will also become a solution to the missionaries and cannibals problem.[1]

Solving

Amarel devised a system for solving the Missionaries and Cannibals problem whereby the current state is represented by a simple vector <a,b,c>. The vector's elements represent the number of missionaries on the wrong side, the number of cannibals on the wrong side, and the number of boats on the wrong side, respectively. Since the boat and all of the missionaries and cannibals start on the wrong side, the vector is initialized to <3,3,1>. Actions are represented using vector subtraction/addition to manipulate the state vector. For instance, if a lone cannibal crossed the river, the vector <0,1,1> would be subtracted from the state to yield <3,2,0>. The state would reflect that there are still three missionaries and two cannibals on the wrong side, and that the boat is now on the opposite bank. To fully solve the problem, a simple tree is formed with the initial state as the root. The five possible actions (<1,0,1>, <2,0,1>, <0,1,1>, <0,2,1>, and <1,1,1>) are then subtracted from the initial state, with the result forming children nodes of the root. Any node that has more cannibals than missionaries on either bank is in an invalid state, and is therefore removed from further consideration. The valid children nodes generated would be <3,2,0>, <3,1,0>, and <2,2,0>. For each of these remaining nodes, children nodes are generated by adding each of the possible action vectors. The algorithm continues alternating subtraction and addition for each level of the tree until a node is generated with the vector <0,0,0> as its value. This is the goal state, and the path from the root of the tree to this node represents a sequence of actions that solves the problem.

Solution

The earliest solution known to the jealous husbands problem, using 11 one-way trips, is as follows. The married couples are represented as α (male) and a (female), β and b, and γ and c.[4], p. 291.

Trip number Starting bank Travel Ending bank
(start) αa βb γc
1 βb γc αa →
2 βb γc α a
3 α β γ bc → a
4 α β γ ← a b c
5 αa βγ b c
6 αa βb γc
7 a b αβ γc
8 a b ← c α β γ
9 b a c → α β γ
10 b β αa γc
11 βb → αa γc
(finish) αa βb γc

This is a shortest solution to the problem, but is not the only shortest solution.[4], p. 291.

If however, only one man can get out of the boat at a time and husbands must be on the shore to count as with his wife as opposed to just being in the boat at the shore: move 5 to 6 is impossible, for as soon as γ has stepped out b on the shore won't be with her husband, despite him being just in the boat.

As mentioned previously, this solution to the jealous husbands problem will become a solution to the missionaries and cannibals problem upon replacing men by missionaries and women by cannibals. In this case we may neglect the individual identities of the missionaries and cannibals. The solution just given is still shortest, and is one of four shortest solutions.[5]

If a woman in the boat at the shore (but not on the shore) counts as being by herself (i.e. not in the presence of any men on the shore), then this puzzle can be solved in 9 one-way trips:

Trip number Starting bank Travel Ending bank
(start) αa βb γc
1 βb γc αa →
2 βb γc ← a α
3 β γc ab → α
4 β γc ← b αa
5 γc βb → αa
6 γc ← b αa β
7 γ bc → αa β
8 γ ← c αa βb
9 γc → αa βb
(finish) αa βb γc

Variations

An obvious generalization is to vary the number of jealous couples (or missionaries and cannibals), the capacity of the boat, or both. If the boat holds 2 people, then 2 couples require 5 trips; with 4 or more couples, the problem has no solution.[6] If the boat can hold 3 people, then up to 5 couples can cross; if the boat can hold 4 people, any number of couples can cross.[4], p. 300.

If an island is added in the middle of the river, then any number of couples can cross using a two-person boat. If crossings from bank to bank are not allowed, then 8n−6 one-way trips are required to ferry n couples across the river;[1], p. 76 if they are allowed, then 4n+1 trips are required if n exceeds 4, although a minimal solution requires only 16 trips if n equals 4.[1], p. 79. If the jealous couples are replaced by missionaries and cannibals, the number of trips required does not change if crossings from bank to bank are not allowed; if they are however the number of trips decreases to 4n−1, assuming that n is at least 3.[1], p. 81.

History

The first known appearance of the jealous husbands problem is in the medieval text Propositiones ad Acuendos Juvenes, usually attributed to Alcuin (died 804.) In Alcuin's formulation the couples are brothers and sisters, but the constraint is still the same—no woman can be in the company of another man unless her brother is present.[1], p. 74. From the 13th to the 15th century, the problem became known throughout Northern Europe, with the couples now being husbands and wives.[4], pp. 291–293. The problem was later put in the form of masters and valets; the formulation with missionaries and cannibals did not appear until the end of the 19th century.[1], p. 81 Varying the number of couples and the size of the boat was considered at the beginning of the 16th century.[4], p. 296. Cadet de Fontenay considered placing an island in the middle of the river in 1879; this variant of the problem, with a two-person boat, was completely solved by Ian Pressman and David Singmaster in 1989.[1]

See also

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

pt:Problema dos canibais e missionários uk:Задача про місіонерів та канібалів zh:传教士和吃人恶魔问题

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 "The Jealous Husbands" and "The Missionaries and Cannibals", Ian Pressman and David Singmaster, The Mathematical Gazette, 73, #464 (June 1989), pp. 73–81.
  2. On representations of problems of reasoning about actions, Saul Amarel, pp. 131–171, Machine Intelligence 3, edited by Donald Michie, Amsterdam, London, New York: Elsevier/North-Holland, 1968.
  3. p. 9, Searching in a Maze, in Search of Knowledge: Issues in Early Artificial Intelligence, Roberto Cordeschi, pp. 1–23, Reasoning, Action andj Interaction in AI Theories and Systems: essays dedicated to Luigia Carlucci Aiello, edited by Oliviero Stock and Marco Schaerf, Lecture Notes in Computer Science #4155, Berlin/Heidelberg: Springer, 2006, ISBN 978-3-540-37901-0.
  4. 4.0 4.1 4.2 4.3 4.4 Jealous Husbands Crossing the River: A Problem from Alcuin to Tartaglia, Raffaella Franci, pp. 289–306, From China to Paris: 2000 Years Transmission of Mathematical Ideas, edited by Yvonne Dold-Samplonius, Joseph W. Dauben, Menso Folkerts, and Benno van Dalen, Stuttgart: Franz Steiner Verlag, 2002, ISBN 3-515-08223-9.
  5. Cannibals and missionaries, Ruby Lim, pp. 135–142, Conference proceedings: APL '92, the International Conference on APL, 6–10 July 1992, St. Petersburg, Russia, edited by Lynne C. Shaw, et al., New York: Association for Computing Machinery, 1992, ISBN 0-89791-477-5.
  6. Tricky Crossings, Ivars Peterson, Science News, 164, #24 (December 13, 2003); accessed on line February 7, 2008, URL update March 12, 2011