From efc1dd926c83a0e772ccc87ffcf03218cbd90ed0 Mon Sep 17 00:00:00 2001 From: Aleksander Sadikov Date: Tue, 9 Aug 2016 19:37:34 +0200 Subject: English translation for ancestor/2 and descendant/2 updated. --- prolog/problems/family_relations/ancestor_2/en.py | 4 ++-- prolog/problems/family_relations/descendant_2/en.py | 6 +++--- 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 parent/2, male/1, and ''' plan = ['''\ -

It's time to use recursion for the first time... how can we transpose the problem to a smaller one +

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)?

A parent of someone, who is a parent of Y,
 is also an ancestor of Y.

@@ -39,7 +39,7 @@ hint = { 'grandparent_used': '''\

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).

+Try to reduce the problem into a "smaller" one, e.g. an ancestor in one step less (a closer ancestor).

''', '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 = '''\ -

descendant(X, Y): X is a descendant (child, grandchild, great-grandchild, ...) +

descendant(X, Y): X is a descendant (child, grandchild, great-grandchild, ...) of Y.

 ?- descendant(patricia, X).
@@ -16,7 +16,7 @@ described with predicates parent/2, male/1, and
 '''
 
 plan = ['''\
-

I believe recursion is needed... how can we transpose the problem to a smaller one +

I believe recursion is needed... how can we reduce the problem into a smaller one (a single step smaller that is)?

A descendant of someone, who is a child of Y,
 is also a descendant of Y.

@@ -40,7 +40,7 @@ hint = { 'grandparent_used': '''\

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).

+Try to reduce the problem into a "smaller" one, e.g. a descendant in one step less (a closer descendant).

''', 'grandparent_used_markup': '''\ -- cgit v1.2.1