Traversal of complex data structures concerns browsing trees or graphs. The problem can be stated as the Plan Generation Problem (PGP), regarding graphs.
Let denote the set of nodes (states), be the set of arcs (operators), and let and be the initial state and the desired goal state, respectively. For simplicity of problem statement assume that if two nodes are connected directly with and arc , there is no other arc connecting these nodes. The simplest mathematical formulation of the Plan Generation Problem is as follows.
A Plan Generation Problem is the four-tuple:
(2.1) |
Note that the solution defines in a unique way a finite sequence of states , such that , , . The sequence forms a solution path in the graph. Note that the above problem is indeterministic one - there can be one or more solutions or no solution may satisfy the constraints. Alternatively, one may require to find all such sequences.
A related problem, which is still in C1, is browsing a tree structure. There are the following basic tree analysis problems:
Note that solving the above problems require a Plan Generation Problem solving component.
A tree is a finite, non-empty set of nodes, partitioned into two disjoint subsets: a single node and sets that are trees:
(2.2) |
Let be a descendant of in some tree
then:
(2.3) |
Igor Wojnicki 2005-11-07