FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aima-java/core/src/main/java/aima/core/search/api/Node.java at AIMA4e · aimacode/aima-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
aimacode
/
aima-java
Public
Notifications
You must be signed in to change notification settings
Fork
810
Star
1.6k
Code
Issues
85
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
aima-java
/
core
/
src
/
main
/
java
/
aima
/
core
/
search
/
api
/
Node.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (54 loc) · 1.65 KB
Breadcrumbs
aima-java
/
core
/
src
/
main
/
java
/
aima
/
core
/
search
/
api
/
Node.java
Copy path
File metadata and controls
59 lines (54 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package
aima
.
core
.
search
.
api
;
/**
* Artificial Intelligence A Modern Approach (4th Edition): Figure ??, page ??.
* <br>
*
* Figure ?? Nodes are the data structures from which the search tree is
* constructed. Each has a parent, a state, and various bookkeeping fields.
* Arrows point from child to parent.<br>
* <br>
* Search algorithms require a data structure to keep track of the search tree
* that is being constructed. For each node n of the tree, we have a structure
* that contains four components:
* <ul>
* <li>n.STATE: the state in the state space to which the node corresponds;</li>
* <li>n.PARENT: the node in the search tree that generated this node;</li>
* <li>n.ACTION: the action that was applied to the parent to generate the node;
* </li>
* <li>n.PATH-COST: the cost, traditionally denoted by g(n), of the path from
* the initial state to the node, as indicated by the parent pointers.</li>
* </ul>
*
* @param <A>
* the type of the action.
* @param <S>
* the type of the state that node contains.
*
* @author Ciaran O'Reilly
* @author Ravi Mohan
* @author Mike Stampone
*/
public
interface
Node
<
A
,
S
> {
/**
*
* @return the state in the state space to which the node corresponds.
*/
S
state
();
/**
*
* @return the node in the search tree that generated this node.
*/
Node
<
A
,
S
>
parent
();
/**
*
* @return the action that was applied to the parent to generate the node.
*/
A
action
();
/**
*
* @return the cost, traditionally denoted by <em>g(n)</em>, of the path
* from the initial state to the node, as indicated by the parent
* pointers.
*/
double
pathCost
();
}
Back
|
FazBrowse Home
|
New Git URL