Help with structures



I'm trying to understand structures. Specifically, how to change them or
make one go away. Using the example of cars here:
http://www.cs.may.ie/~jpower/Courses/PROLOG/structures.html

If you have:
has(joe, car(ford,3,5000)).
has(joe, car(opel,2,6000)).

What if joe sells his ford? How do you "get rid" of that statement?

Similarly, what if the third attribute is not price, but value, and the car
is now considered antique. How do you make
has(joe, car(ford,3,5000)).
"turn into"
has(joe, car(ford,25,25000)).
?

I had an intro class about four years ago, and all we did were the simple
'family relationships' type problems. Now, having finally gotten around to
taking the second class in the series, I'm being asked to read in atoms from
a text file and somehow represent objects based on the input... and they
will have to change and disappear during this process. (Yes, it's a
homework assignment.)

Thanks,
Wendy Smoak




.



Relevant Pages

  • Re: Cars illegally imported by "luuk khon ruay"
    ... Police seized four luxury vehicles Monday from a department store ... He did not identify the owners or their family relationships. ... The four cars were seized at a carpark by a miniature race circuit ...
    (soc.culture.thai)
  • Re: Crashes vs. Congestion - Whats the Cost to Society?
    ... communications be in all cars starting sometime in the next decade. ... auto system won't let me sideswipe the car next to me, ... You know absolutely nothing about the design and claim that this is how it ... These type problems are studied intensively in system designs. ...
    (misc.transport.road)