summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/ancestor_2
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/family_relations/ancestor_2')
-rw-r--r--prolog/problems/family_relations/ancestor_2/sl.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/prolog/problems/family_relations/ancestor_2/sl.py b/prolog/problems/family_relations/ancestor_2/sl.py
index 0308cde..081732b 100644
--- a/prolog/problems/family_relations/ancestor_2/sl.py
+++ b/prolog/problems/family_relations/ancestor_2/sl.py
@@ -4,13 +4,17 @@ name = 'ancestor/2'
slug = 'X je prednik od Y'
description = '''\
-<p><code>ancestor(?X, ?Y)</code>: <code>X</code> je prednik (oče, mama, dedek, …) od <code>Y</code>.</p>
-<pre>
-?- ancestor(patricia, X).
- X = john ;
- X = michael ;
- X = michelle.
-</pre>'''
+<p><code>ancestor(?X, ?Y)</code>: <code>X</code> je prednik (oče, mama, babica,
+pradedek, …) od <code>Y</code>.</p> <pre>
+?- ancestor(patricia, Y).
+ Y = john ;
+ Y = michael ;
+ Y = michelle.
+</pre>
+<p><a target="_blank" href="[%@resource famrel.svg%]">Družinska drevesa</a> so
+podana s predikati <code>parent/2</code>, <code>male/1</code> in
+<code>female/1</code>.</p>
+'''
plan = ['''\
<p>Sedaj pa bo potrebna rekurzija... kako lahko problem prevedem na (en korak) manjši problem?</p>