summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
Diffstat (limited to 'prolog')
-rw-r--r--prolog/problems/family_relations/ancestor_2/en.py4
-rw-r--r--prolog/problems/family_relations/descendant_2/en.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/prolog/problems/family_relations/ancestor_2/en.py b/prolog/problems/family_relations/ancestor_2/en.py
index 8e253bd..edd3727 100644
--- a/prolog/problems/family_relations/ancestor_2/en.py
+++ b/prolog/problems/family_relations/ancestor_2/en.py
@@ -16,7 +16,7 @@ described with predicates <code>parent/2</code>, <code>male/1</code>, and
'''
plan = ['''\
-<p>It's time to use recursion for the first time... how can we transpose the problem to a smaller one
+<p>It's time to use recursion for the first time... how can we reduce the problem into a smaller one
(a single step smaller that is)?</p>
<p><img src="[%@resource Prolog_ancestor_03.svg%]" alt="A parent of someone, who is a parent of Y,
is also an ancestor of Y." /></p>
@@ -39,7 +39,7 @@ hint = {
'grandparent_used': '''\
<p>The solution using the grandparent relation will not be general enough, try using recursion instead.
-Try to transpose the problem into a "smaller" one, e.g. an ancestor in one step less (a closer ancestor).</p>
+Try to reduce the problem into a "smaller" one, e.g. an ancestor in one step less (a closer ancestor).</p>
''',
'grandparent_used_markup': '''\
diff --git a/prolog/problems/family_relations/descendant_2/en.py b/prolog/problems/family_relations/descendant_2/en.py
index 1217e2a..7752ad6 100644
--- a/prolog/problems/family_relations/descendant_2/en.py
+++ b/prolog/problems/family_relations/descendant_2/en.py
@@ -2,7 +2,7 @@ name = 'descendant/2'
slug = 'the descendant relation'
description = '''\
-<p><code>descendant(X, Y)</code>: <code>X</code> is a descendant (child, grandchild, great-grandchild, ...)
+<p><code>descendant(X, Y)</code>: <code>X</code> is a descendant (child, grandchild, great-grandchild, ...)
of <code>Y</code>.</p>
<pre>
?- descendant(patricia, X).
@@ -16,7 +16,7 @@ described with predicates <code>parent/2</code>, <code>male/1</code>, and
'''
plan = ['''\
-<p>I believe recursion is needed... how can we transpose the problem to a smaller one
+<p>I believe recursion is needed... how can we reduce the problem into a smaller one
(a single step smaller that is)?</p>
<p><img src="[%@resource Prolog_descendant_03.svg%]" alt="A descendant of someone, who is a child of Y,
is also a descendant of Y." /></p>
@@ -40,7 +40,7 @@ hint = {
'grandparent_used': '''\
<p>The solution using the grandparent relation will not be general enough, try using recursion instead.
-Try to transpose the problem into a "smaller" one, e.g. a descendant in one step less (a closer descendant).</p>
+Try to reduce the problem into a "smaller" one, e.g. a descendant in one step less (a closer descendant).</p>
''',
'grandparent_used_markup': '''\