Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Prolog Visualizer Tutorial
Search
Zhixuan Lai
May 02, 2015
Programming
500
0
Share
Prolog Visualizer Tutorial
http://www.cdglabs.org/prolog/
Zhixuan Lai
May 02, 2015
More Decks by Zhixuan Lai
See All by Zhixuan Lai
Taming WebSocket with Scarlet - Droidcon SF
zhxnlai
0
300
Taming WebSocket with Scarlet
zhxnlai
6
5.6k
Other Decks in Programming
See All in Programming
From Formal Specification to Property Based Test
ohbarye
0
440
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
390
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
280
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
110
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
130
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
220
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
1.3k
Agentic Elixir
whatyouhide
0
420
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
120
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
160
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
290
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
290
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Heart Work Chapter 1 - Part 1
lfama
PRO
6
35k
RailsConf 2023
tenderlove
30
1.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
270
Documentation Writing (for coders)
carmenintech
77
5.3k
The agentic SEO stack - context over prompts
schlessera
0
760
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Thoughts on Productivity
jonyablonski
76
5.1k
A designer walks into a library…
pauljervisheath
211
24k
Statistics for Hackers
jakevdp
799
230k
Transcript
Prolog Visualizer Tutorial
Visualization Program Controls Examples
Step 0 of 144 This is where you start Step
1 of 144
Step 0 of 144 Initial goal A copy of the
program Step 1 of 144
Step 0 of 144 Dashed box indicates the current state
of the search Step 1 of 144
Step 0 of 144 Unifying Step 2 of 144
Step 0 of 144 Unification failed because the names of
the clauses are different Step 3 of 144
Step 0 of 144 Failed rules are crossed out Step
4 of 144
Step 0 of 144 These rules failed too Step 16
of 144
Step 0 of 144 But not this rule Step 17
of 144
Step 0 of 144 substitution before after Applying the substitution,
you get a new rule This rule unifies with the goal Step 18 of 144
Step 0 of 144 Current goal is duplicated here for
better readability Step 18 of 144
Step 0 of 144 Body of the rule after substitution
Step 19 of 144
Step 0 of 144 grandfather(X, Y) is replaced by father(X,
Z) and father(Z, Y). these are the new goals Current state has changed Step 20 of 144
Step 0 of 144 The grey path shows where you
came from current goal is in bold Step 20 of 144
Step 0 of 144 Unifying Step 21 of 144
Step 0 of 144 This rule also succeeds Step 22
of 144
This is a partial solution If X is orville, any
Y such that father(abe, Y) will be a solution father(Z, Y) is the is new goal. After the substitution (X = oriville, Z = abe), it becomes father(abe, Y) Step 23 of 144
Current state has changed Step 24 of 144
Unifying Step 28 of 144
Succeeded Step 29 of 144
This leads to a solution Step 31 of 144
Backtrack Step 44 of 144
More solutions… Step 66 of 144
…