開発環境
- OS X Lion - Apple(OS)
- Emacs、BBEdit - Bare Bones Software, Inc. (Text Editor)
- Scheme (プログラミング言語)
- MIT/GNU Scheme (処理系)
計算機プログラムの構造と解釈(Gerald Jay Sussman(原著)、Julie Sussman(原著)、Harold Abelson(原著)、和田 英一(翻訳)、ピアソンエデュケーション、原書: Structure and Interpretation of Computer Programs (MIT Electrical Engineering and Computer Science)(SICP))の4(超言語的抽象)、4.4(論理型プログラミング)、4.4.1(推論的情報検索)、プログラムしての論理、問題 4.61を解いてみる。
その他参考書籍
問題 4.61
応答。
;; (?x next-to ?y in (1 (2 3) 4)) (1 next-to (2 3) in (1 (2 3) 4)) ((2 3) next-to 4 in (1 (3 4) 4)) ;; (?x next-to 1 in (2 1 3 1)) (2 next-to 1 in (2 1 3 1)) (3 next-to 1 in (2 1 3 1))
質問システムの実装はまだ(この先に実装もあるみたい)なので、実装できたら入出力結果を確認してみることに。
0 コメント:
コメントを投稿