Prolog - The House of Windsor.

home
 Bib
 Algorithms
 Bioinfo
 FP
 Logic
 MML
 Prog.Lang
and the
 mmlist

Logic
 Prolog
  Introduction
  Examples

Prolog is excellent for queries on relational data (as in the Mathematical sense of a "relation"), e.g.

born(charles,   elizabeth2, philip).
born(anne,      elizabeth2, philip).
born(andrew,    elizabeth2, philip).
born(edward,    elizabeth2, philip).

born(diana,     frances,    edwardSpencer).

born(william,   diana,      charles).
born(henry,     diana,      charles).

born(Peter,     anne,       markPhillips).
born(Zara,      anne,       markPhillips).

born(beatrice,  sarah,      andrew).
born(eugenie,   sarah,      andrew).

born(louise,    sophie,     edward).
born(james,     sophie,     edward).

born(george,    catherine,  william).
born(charlotte, catherine,  william).

? born(S, elizabeth2, Y) and born(G, M, S).


Note, Peter Phillips and Zara Phillips do not have titles because they are female-line descendants of royalty.)

Also see [aunts and uncles].

window on the wide world:

Computer Science Education Week

Linux
 Ubuntu
free op. sys.
OpenOffice
free office suite,
ver 3.4+

The GIMP
~ free photoshop
Firefox
web browser
FlashBlock
like it says!

© L. Allison   http://www.allisons.org/ll/   (or as otherwise indicated),
Faculty of Information Technology (Clayton), Monash University, Australia 3800 (6/'05 was School of Computer Science and Software Engineering, Fac. Info. Tech., Monash University,
was Department of Computer Science, Fac. Comp. & Info. Tech., '89 was Department of Computer Science, Fac. Sci., '68-'71 was Department of Information Science, Fac. Sci.)
Created with "vi (Linux + Solaris)",  charset=iso-8859-1,  fetched Thursday, 29-Oct-2020 04:09:06 AEDT.