calculate-source-patterns

Class summary
reordering-search-state
Method summary
cost reordering-search-state
remaining-matching-units reordering-search-state
remaining-source-units reordering-search-state
solution-structure reordering-search-state
Function summary
duplicate-search-state nss queue
find-matching-units pattern source cost-params
reorder-source-units pattern source cost-params
reordering-solution-p solution-structure
search-reordering-solutions matching-units source-unit-numbers pattern-length cost-params
reordering-search-state    [Class]
:solution-structure    [Initarg]
:remaining-matching-units    [Initarg]
:remaining-source-units    [Initarg]
:cost    [Initarg]
cost   reordering-search-state  [Generic function]

Returns and (with setf) changes the cost of the specified reordering-search-state

remaining-source-units   reordering-search-state  [Generic function]

Returns and (with setf) changes the remaining-source-units of the specified reordering-search-state

remaining-matching-units   reordering-search-state  [Generic function]

Returns and (with setf) changes the remaining-matching-units of the specified reordering-search-state

solution-structure   reordering-search-state  [Generic function]

Returns and (with setf) changes the solution-structure of the specified reordering-search-state

reorder-source-units   pattern source cost-params  [Function]

Input: list of cxn-units as pattern list of transient structure units as source list of cost-paramaters for calculating reordering-cost Returns: list of subsets of source with:

  • as many units as in pattern

  • aligned order (matching-units at same place, all combinations of other units)

find-matching-units   pattern source cost-params  [Function]

given pattern and source (lists of fcg-units), and cost-params return:

  • list of objects with all possibilities for binding units in pattern with source, maximizing number of matching units objects contain: solution-structure, cost and non-matched-units of source

search-reordering-solutions   matching-units source-unit-numbers pattern-length cost-params  [Function]

Given an a-list of numbers of matching units, the numbers of units in source, the number of units in the construction and cost params, returns a series of solution states This is implemented as a search process.

reordering-solution-p   solution-structure  [Function]

solution structure is a solution if it has a non-nil cdr returns true if so, false otherwise

duplicate-search-state   nss queue  [Function]

returns nil if nss is a search space with equivalent solution-structure to any search state in queue