root/trunk/examples/searching/NOTES.txt

Revision 4662, 1.8 KB (checked in by pmoura, 5 days ago)

Updated copyright notice.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.35.0
4
5Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12To load this example and for sample queries, please see the SCRIPT.txt file.
13
14You will also need to load the following files in the library directory:
15dates_loader, types_loader, events_loader, metapredicates_loader, and
16hierarchies_loader. Alternatively, you can just load the library all_loader
17file.
18
19Some of the code in this folder is adapted, with permission, from the book
20"Prolog Programming for Artificial Intelligence" by Ivan Bratko.
21
22For a description of the search problems, please see a classical AI book
23(such as the one above) or visit the url <http://www.plastelina.net/games>.
24
25This example defines two hierarchies of objects, one for representing
26state-spaces and another for representing search methods:
27
28    state_space
29        farmer
30        water_jug
31        salt(Quantity, Measure1, Measure2)
32        heuristic_state_space
33            bridge
34            eight_puzzle
35            miss_cann
36
37    search_strategy
38        blind_search(Bound)
39            breadth_first(Bound)
40            depth_first(Bound)
41        heuristic_search(Threshold)
42            best_first(Threshold)
43            hill_climbing(Threshold)
44
45Taken together, these two hierarchies implement a framework for solving
46state-space search problems in Logtalk. There is also a monitor object,
47"performance", which tries to measure the time taken to find a solution,
48the branching factor while searching for a solution, and the number of
49transitions made to find a solution.
Note: See TracBrowser for help on using the browser.