Professional Documents
Culture Documents
Assign 3
Assign 3
Assign 3
the user is an
'g', 'h', 'i',
'w', 'x', 'y',
'G', 'H', 'I',
'W', 'X', 'Y',
alphabet or not.
'j', 'k', 'l', 'm', 'n', 'o
'z'], [], l),
'J', 'K', 'L', 'M', 'N', 'O
'Z'], l,
b).
c).
e).
d).
f).
g).
f).
% initialization
initialization_dfs(L):append([a], [], L).
% declaring membership criterion for checking whether an element is a member of
the visited nodes.
checking_membership(A, B, C):-