prolog-dif Questions

3

Solved

I come up against this all the time, and I'm never sure which way to attack it. Below are two methods for processing some season facts. What I'm trying to work out is whether to use method 1 or 2, ...
Jarlathus asked 16/3, 2012 at 21:17

3

Solved

I've looked through the similar questions but can't find anything that's relevant to my problem. I'm struggling to find an algorithm or set of 'loops' that will find a path from CityA to CityB, usi...
Semicentennial asked 29/11, 2011 at 21:57

2

Solved

Possible Duplicate: Prolog delete: doesn't delete all elements that unify with Element In Prolog if you write this: delete([(1,1),(1,2),(1,1),(3,4)],(1,_),L). the result will b...
Dennet asked 11/11, 2011 at 22:18

2

Solved

(This is NOT a coursework question. Just my own personal learning.) I'm trying to do an exercise in Prolog to delete elements from a list. Here's my code : deleteall([],X,[]). deleteall([H|T],X,R...
Folium asked 22/6, 2011 at 14:25

© 2022 - 2024 — McMap. All rights reserved.