the woman shoots the woman
the woman shoots the man
the woman shoots a woman
the woman shoots a man
the woman shoots
the man shoots the woman
the man shoots the man
the man shoots a woman
the man shoots a man
the man shoots
a woman shoots the woman
a woman shoots the man
a woman shoots a woman
a woman shoots a man
a woman shoots
a man shoots the woman
a man shoots the man
a man shoots a woman
a man shoots a man
a man shoots
s(Z) :- np(X), vp(Y), append(X,Y,Z).
np(Z) :- det(X), n(Y), append(X,Y,Z).
vp(Z) :- v(X), np(Y), append(X,Y,Z).
vp(Z) :- v(Z). det([the]). det([a]).
n([woman]). n([man]). v([shoots]).
(Learn Prolog Now!)
DISCLAIMER
This is HOW Me Do IT! Grrr... this blog memo is mainly written for OWN PURPOSES. This post is based on "Google Here, There, and Everywhere". Whether this is PLAGIARY or RESEARCH, there has never been a claim that this is an original work, nor is it necessarily the best solution, and not for Scopus consumption :). Please provide feedback, especially if you have alternative explanations. Hopefully, this note will be helpful in the future when you have forgotten how to solve this trivia problem.
DISKLAIMER
INIlah yang KUlakukan! Grrr... memo blog ini terutama ditulis untuk KEPERLUAN SENDIRI. Tulisan ini berbasis "Google Sana, Google Sini, Coba Itu, Coba Ini, Lalu Tanya-tanyi". Entah ini PLAGIAT, entah ini RISET, yang jelas tidak pernah ada klaim bahwa ini merupakan karya asli, serta belum tentu pula merupakan solusi terbaik, serta bukan untuk konsumsi Scopus :). Mohon kiranya memberikan tanggapan, terutama jika memiliki solusi alternatif. Semoga catatan ini akan bermanfaat di masa mendatang, saat sudah lupa cara menyelesaikan masalah trivia ini.
This is the Way!
Bapak lagi belajar Prolog ya?
BalasHapusHehe...
Bapak lagi belajar Prolog ya
BalasHapusBapak lagi belajar Prolog
Bapak lagi belajar