|
Revision 4601, 0.7 KB
(checked in by pmoura, 7 weeks ago)
|
|
Added svn:mime-type property to source files (set to text/x-logtalk).
|
-
Property svn:mime-type set to
text/x-logtalk
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | :- object(blind_search(_), |
|---|
| 3 | instantiates(class), |
|---|
| 4 | specializes(search_strategy)). |
|---|
| 5 | |
|---|
| 6 | :- info([ |
|---|
| 7 | version is 1.0, |
|---|
| 8 | author is 'Paulo Moura', |
|---|
| 9 | date is 1998/3/23, |
|---|
| 10 | comment is 'Blind search state space strategies.', |
|---|
| 11 | parnames is ['Bound']]). |
|---|
| 12 | |
|---|
| 13 | :- public(bound/1). |
|---|
| 14 | :- mode(bound(?integer), zero_or_one). |
|---|
| 15 | :- info(bound/1, |
|---|
| 16 | [comment is 'Search depth bound.', |
|---|
| 17 | argnames is ['Bound']]). |
|---|
| 18 | |
|---|
| 19 | :- protected(search/4). |
|---|
| 20 | :- mode(search(+object, +nonvar, +integer, -list), zero_or_more). |
|---|
| 21 | :- info(search/4, |
|---|
| 22 | [comment is 'State space search solution.', |
|---|
| 23 | argnames is ['Space', 'State', 'Bound', 'Path']]). |
|---|
| 24 | |
|---|
| 25 | bound(Bound) :- |
|---|
| 26 | parameter(1, Bound). |
|---|
| 27 | |
|---|
| 28 | solve(Space, State, Path) :- |
|---|
| 29 | ::bound(Bound), |
|---|
| 30 | ::search(Space, State, Bound, Path). |
|---|
| 31 | |
|---|
| 32 | :- end_object. |
|---|