PBeFS is a C++20 library for the sequential and parallel best-first search of
two kinds of problems. The first is the A* search [9] of an implicit
state-space graph, i.e., a graph given by an initial state, a goal predicate
and a procedure that generates the successors of a state (cf. [10]),
and the second the Branch-and-Bound (B&B) of a tree whose nodes have a bound
and possibly a feasible value. In fact, A* is the special case of B&B in which
the bound of a node is include/PBeFS/core holds
the helpers and the parameters of the parallel searches, which do not depend on
the kind of search, include/PBeFS/astar the graph searches with their
domains, and include/PBeFS/bnb the tree searches. core.h, astar.h and
bnb.h include one layer and PBeFS.h all of them, in each case without the
searches over MPI.
The manual gives the algorithms of the library with their invariants, their
proofs, their pseudocode and their code. Its Markdown sources are in
manual/, and it is built into a PDF,
manual/PBeFS-manual.pdf, also attached to each
release, and into the web site https://dmeoli.github.io/PBeFS/manual/.
We are concerned with finding a path of minimum cost from the initial state to
a goal state, in a graph with nonnegative edge costs, when h is admissible (it
never overestimates the cost of reaching a goal). For the searches that do not
reopen the closed nodes we also assume that h is consistent, i.e.,
All the algorithms are templates over the problem, a type satisfying the
concept Domain of include/PBeFS/astar/Domain.h, which gives state_type
and an arithmetic cost_type together with the methods initial_state(),
is_goal( s ), heuristic( s ), hash( s ) and
for_each_successor( s , h_s , f ). The latter calls f( t , c , h_t ) for
each successor t of s. Note that h(s) is passed in, and hence h(t) can be
computed incrementally when the heuristic allows it (as the Manhattan distance
of the sliding-tile puzzle does). Since all calls are resolved at compile time,
no virtual function is paid in the inner loop, which is one of the design
choices of the fast implementation of Burns et al. [4].
An algorithm that needs more than a Domain asks for a refinement of the
concept. FeatureDomain describes a state as a set of propositions (as Zobrist
hashing requires). In turn, IncrementalFeatureDomain gives the features that
a move changes, from which the Zobrist hash of a successor is computed from
that of its parent, and AbstractFeatureDomain adds a projection of the
features, for Abstract Zobrist hashing [5]. AbstractStateDomain and
NBlockDomain give an abstraction of the state space (for AHDA* and PBNF
[3]), PairwiseDomain a heuristic between any two states (for PA*SE
[6]), and PerfectHashDomain an injective map of the states to the
integers. For the searches by edges [121], EdgeDomain gives the
actions of a state, which cost nothing to list, and evaluates the edge of one
action at a time, which may cost much (a collision check, a simulation). Also,
HeterogeneousEdgeDomain separates the cheap edges from the expensive ones
[122], and LazyEdgeDomain gives the successor of an action and a
lower bound on the cost of its edge before the edge is evaluated
[124].
As examples, the library provides several domains. Among them, the sliding-tile
puzzle of any size with the Manhattan distance (SlidingTile.h) satisfies all
of the concepts above, while Grid.h is pathfinding with 4 or 8 moves on a
grid with cell costs, read from a Moving AI map [15] or generated at
random. This header also reads the boards of Burns et al. [3], whose
moves to a corner may cut a blocked cell and whose costs are either unit or
life costs (leaving a cell of the row Grid.h, and it is therefore consistent.
SequenceAlignment.h is the optimal alignment of several protein sequences (up
to 10 by default) as a shortest path in the HyperplaneDistribution of Distribution.h, for any
LevelDomain, is the hyperplane work distribution of Kobayashi et al.
[43]. It gives the planes thickness() is their rule for SequenceAlignment::random_sequences().
Also, ExplicitGraph.h holds a weighted graph given by its arcs, which serves
for the route-finding problem on the map of Romania of Russell and Norvig
[13]. The header RobotNav2D.h is the navigation of a square robot
by long straight motions, each checked for collisions cell by cell, on Moving
AI maps scaled up. This is the domain on which the searches by edges were
compared [122], [123], and its maps and pairs of points
are in data/robot-nav-2d, under the license of the code of those experiments.
Furthermore, the bidirectional searches need a BidirectionalDomain, which
adds the goal state, for_each_predecessor( s , h_s , f ) along the edges
reversed and a backward heuristic, estimating the cost from the initial state.
They take the least cost of an edge from a MinCostDomain. The sliding-tile
puzzles, the grids and the explicit graphs satisfy both concepts, and also
PredecessorDomain (the predecessors without the backward heuristic, which
LPA* needs): the predecessors of a tile board are its successors, those of a
grid cell its free neighbors at the cost of leaving them, and those of a graph
node its arcs reversed, kept apart. Finally, DynamicGraph.h holds a directed
graph whose arc costs, blocked nodes and goals change, with the gridworlds of
the experiments of Koenig, Likhachev and Furcy [54] and their
changes. An EventDomain (as Grid and DynamicGraph) reports each change of
the cost of an edge with the cost before and after it, coalesced per edge, as
Ramalingam and Reps [144] report insertions and deletions as
changes from and to
The sequential search (astar( d ) in AStar.h) is A* with the goal test at
the expansion and a node reopened when a cheaper path to it is found. Ties on f
are broken in favor of the larger g, which on domains with many states in the
last f layer usually reaches the goal much earlier. Optionally
(SearchOptions::goal_at_generation, off by default), the search keeps the
cheapest goal generated so far and stops as soon as no entry of OPEN has a
smaller f. With an admissible heuristic this is still optimal, and when a goal
is generated from a node of f below the optimum (as with the blind heuristic)
it expands no node of the last f layer at all.
Next to it, idastar( d ) (IDAStar.h) is the iterative-deepening A* of Korf
[7], a depth-first search bounded by f and repeated with a growing
bound. It keeps only the current path, and hence solves the problems whose
CLOSED would not fit in memory, such as the 24-puzzle, at the price of
expanding again the states reached by more than one path. Between the two,
ddd_astar( d ) (DDDAStar.h) keeps OPEN and CLOSED in files on the disk, in
buckets of equal g and h split by the hash of the state, which it expands by
increasing f and then g, removing the duplicates of each file in memory against
the closed files of the same h. This is the External A* of Edelkamp, Jabbar and
Schrödl [39] with the hash-based delayed duplicate detection of Korf
[40]. Its memory is that of the largest file of a bucket instead of
that of all the states, at the price of the time of the disk, and it needs
integer costs, a consistent heuristic and states that are trivially copyable.
Two baselines complete the sequential side: breadth_first( d )
(BreadthFirst.h), which ignores costs and heuristic and returns a path of
fewest edges, optimal only when the edges cost the same, and
cost_bounded_dfs( d , bound ), the single iteration of IDA* with a given
bound, whose path, if any, has no node of BatchAStar.h) takes the BatchHeuristicDomain), it computes the heuristic of the new successors of a
cycle in one call, heuristic_batch(), as a learned heuristic on an
accelerator wants. A goal does not stop the search before each node of smaller
We now list the parallel searches, each with the reference for its correctness and its typical behavior.
-
SPAStar(SPAStar.h) is the Simple Parallel A* of Algorithm 2 of [1], in which the workers share one OPEN and one CLOSED list, protected by locks. It is the baseline of the survey, and it is not expected to scale beyond a few threads, since each expansion goes through the shared lists. -
MultiAStar(MultiAStar.h) is a portfolio: each worker runs A* on its own, with the ties broken in a different order, and the first one to end gives the path. It needs$p$ times the memory of A*, and it pays only when the expansions of the last$f$ layer depend much on the ties. -
MQAStar(MQAStar.h) is SPA* with a relaxed OPEN list, the MultiQueue of [37] from ADS:$2p$ queues under a lock each, a node being pushed into one drawn at random and popped from the better of two. Hence, the workers rarely wait for one another, at the price of expanding nodes a little out of the order of f, and the search ends when a counter of the nodes in OPEN or being expanded falls to 0. -
HDAStar(HDAStar.h) is Hash Distributed A* [2]: a distribution function assigns each state to a worker, which keeps OPEN and CLOSED for the states it owns and receives, packed in batches, those generated by the others. The search ends when no worker has a node with f smaller than the incumbent and no batch is traveling. The distribution is a template parameter (Distribution.h), and among the distributions are those compared by Jinnai and Fukunaga [5], i.e., Zobrist hashing (HDA*[Z]), Abstract Zobrist hashing (AZHDA*), Zobrist hashing of an abstract state (AHDA* [3]) and the perfect hash modulo the number of workers (HDA*[P], the "bad" case of [3]), and it also provides the hash of the closed list and, as the baseline without duplicate detection across workers, a random assignment. Also the channels are a template parameter. WithLockedChannelsOf(inboxes under a lock, which the receiver waits for) and the optionsync_send(each node pushed singly when it is generated) the search is PRA*, the Parallel Retracting A* of Evett et al. [127] without its retraction, and with the abstract distribution it is APRA*; these are the synchronous forms that Burns et al. [3] compare with the asynchronous one. With the optionoutsource, a worker whose next node is at least that much better than the next node of another worker lends it to that worker, which expands it at once while the node stays in the CLOSED list of its owner. - The distributions of
AutoDistribution.hare built from the structure of aFeatureDomain, as Jinnai and Fukunaga do for planning [5], [141], [138]. AFeatureModelexpands a sample of the instance by A*, up to a given number of expansions or to the goal (in which case it holds the states of f < f* that any distribution has to expand). It takes the groups of the features from aFeatureGroupDomainor infers them from the moves, and weighs each edge of the transition graph of a group (its DTG) both by the ground operators that realize it and by the moves of the sample that cross it. On this model, GAZHDA* cuts each DTG in two balanced halves. GRAZHDA* cuts it where the sparsity (the product of the sizes of the two sides over the weight of the edges cut) is largest, with the weights of [5] or, as a variant of ours, with those of the sample (the expanded states on each side and the moves across). This cut is searched by enumeration up to 20 nodes and by the passes of Fiduccia and Mattheyses [142] above, and it gives the two halves of the 15-puzzle and the two lines against three of the 24-puzzle reported in [5]. FAZHDA* ignores the groups that the moves change most often. DAHDA* keeps the groups chosen by the greedy abstraction of Zhou and Hansen [139] until they hold a fraction of the features, and ignores the others, as the AHDA* of [3] does with a bound on the abstract states, and OZHDA* chooses the Zobrist table in such a way that the most frequent operators leave the owner unchanged. Since the key of Zobrist hashing is a linear map over GF(2) of the vector of the features, a move keeps its owner when its change vector is in the kernel of that map, and all these distributions are choices of a subspace of that kernel. KZHDA* chooses it directly. It inserts the change vectors of the most frequent operators of the sample into a basis by Gaussian elimination, as many as give the largest estimated efficiency, and draws the table uniformly among those that vanish on it. Finally,auto_distribution()estimates the communication overhead, the load balance and the efficiency of each of them (and of those given by the caller) on the sample, and returns the one of largest estimated efficiency, which also tunes on the instance the fractions of the last three methods.SlidingTile::tile_abstraction()gives the hand-made projections of the sliding-tile puzzle compared in [5] and [141], and the statistics of a parallel search give the communication overhead, the load balance and, from the expansions of A*, the search overhead of [5], whichAStarBenchprints next to their estimates. -
HDAStarMPI(HDAStarMPI.h) is the same search with one MPI process per worker, a nonblocking exchange of the batches and the termination detection of Mattern [11] (four counters reduced withMPI_Iallreduce). At the end, the path is rebuilt state by state, each one sent by the process that holds it. -
TDS(TDS.h) is the Transposition-table Driven Scheduling of Romein et al. [131], the parallel IDA* from which HDA* takes its asynchronous scheme. Here the transposition table is split among the workers by the distribution of HDA*. Each node goes to the owner of its entry, which pushes it on its stack only if its state was not already pushed in the iteration with a$g$ not larger, and hence no subtree is searched twice in an iteration. Each iteration ends when the mailbox detects that no worker has work, the next bound being the least$f$ pruned over all the workers. The table keeps each state generated, as the CLOSED list of A* (there is no replacement of the entries). IDA*, IDPSDD and TDS take the bounds of IDA*-CR of Sarkar et al. [132] as an option (DeepeningOptionsinDeepening.h). Instead of the least$f$ pruned, the next bound is then the largest$f$ of the first buckets of a histogram of the$f$ pruned by an iteration that hold a given multiple of its expansions, or the bound plus twice its last step when fewer nodes were pruned. With this option, the iteration that finds the first goal above that least$f$ is completed as a depth-first branch-and-bound, and the path stays optimal. Without the completion, its cost exceeds the optimum by at most the jump of the bound. -
HDLPAStar(HDLPAStar.h) is the incremental search ofLPAStarrun by the workers of HDA*, each of which owns the states that a distribution assigns to it and repairs them. An overconsistent expansion sends to the owner of each successor the lookahead$g + c$ that it offers. An underconsistent one sends an invalidation, which makes the owner scan the predecessors again (reading their$g$ in the tables of the other workers) only where it names the parent. The owner of the virtual goal wakes the others when its key rises. An episode, between two barriers, runs the underconsistent expansions in a first phase, in which a state raised is not lowered again (when its new parent was raised too), and then a monotone second phase. Without that rule two workers may count to infinity on a cycle that the change has cut off, while with it each episode ends with an optimal path whatever the interleaving (see section 6.9 of the manual). A first search, or a restart, is only the second phase. An episode either repairs or restarts, by the number of the changes and a budget past which a repair is stopped and restarted (a prediction learned from the past repairs may be added). A window on the least key of all the workers, as the buckets of$\Delta$ -stepping [145], keeps them near the order of LPA*.HDDStarLite, in the same header, is D* Lite run in the same way. -
SafePBNF(SafePBNF.h) is the livelock-free Parallel Best-NBlock-First search of Burns et al. [3], in which an abstraction partitions the state space into nblocks. A worker expands for a while the nodes of an nblock whose duplicate detection scope (its abstract successors) is not in use by another worker; hence, no lock is taken on the single node. With the optionsafefalse it is plain PBNF, in which a worker leaves its nblock only for a better free one, and which may livelock on an infinite state space. -
PSDD,BFPSDD,IDPSDDandDynamicBoundedPSDD(PSDD.h) acquire the nblocks as SafePBNF does, but by layers. PSDD is the parallel structured duplicate detection of Zhou and Hansen [128], whose layers are those of a breadth-first search, with the nodes of$f$ above a bound pruned as in their breadth-first heuristic search [129], and BFPSDD is the best-first version of Burns et al. [3], whose layer holds the nblocks of least$f$ . In both, the goal is tested at the generation, but the search ends only when no node below the incumbent is left. The path is therefore optimal among those within the bound whatever the costs of the edges, not only when they are all equal. IDPSDD raises the bound of PSDD as IDA* does, and DynamicBoundedPSDD takes it from the cost of a weighted A*. OnGrid, the nblocks are rectangles (GridNBlocks), squares by default, and hence the coarse abstraction of [3], a map cut into a given number of columns and rows, is available as well. -
PASE(PASE.h) is the Parallel A* for Slow Expansions of Phillips et al. [6], which expands in parallel only the states that the pairwise heuristic proves not to be reachable through a cheaper path from a state still in OPEN. With a weight on the heuristic it is their wPASE, whose cost is within the inflation of the test of the optimum. PASE may pay off only when an expansion costs much more than the bookkeeping, andSlowDomain.hadds a given amount of artificial work per expansion to study this regime. -
EPASE(EPASE.h) is the Edge-based Parallel A* for Slow Evaluations of Mukherjee, Aine and Likhachev [121] (ePASE, and w-ePASE with a weight), which applies the test of PASE to the edges. A worker evaluates one edge at a time, the edges of a state are evaluated in parallel, and an edge whose state stops being the best is not evaluated at all. Thus, EPASE evaluates fewer edges than PASE and keeps busy more workers than the branching factor. As in the paper, one worker selects and hands out the edges, waking the others one at a time. With an option it is GePASE [122], which evaluates the cheap edges of a state together and the expensive ones apart. With another option it is the anytime A-ePASE (or A-GePASE) [123], which lowers the weight after each path as ARA [48] does, evaluating each edge at most once over all the iterations.SlowEdgeDomain(inSlowDomain.h) makes the edges of any domain cheap or expensive to evaluate, and some of them missing. On the 2D navigation of [122], with as many workers as its code, EPASE evaluates as many edges as that code (within the variation between two runs) or fewer. PASE, which applies the successors of an expansion together where that code applies each one as soon as its edge is evaluated, evaluates up to about a quarter more. That code, however, returned paths longer than the optimum on up to 11 of 50 instances with no weight, which the test of the end of PASE and EPASE avoids (cf. the page of the parallel searches). -
PWAStar(PWAStar.h) is the Parallel Weighted A* that is the baseline of [121] and [124], i.e., weighted A* whose workers evaluate the edges of one expansion at a time. Its speedup is therefore bounded by the branching factor, while its expansions are those of the sequential search. -
MPLP(MPLP.h) is the Massively Parallelized Lazy Planning of Mukherjee, Aine and Likhachev [124]. A worker repeats a weighted A* that uses the cost of the edges evaluated and a lower bound for the others, while the other workers evaluate the edges, first those of the paths found; a path whose edges are all evaluated is accepted when it costs no more than any path found, hence within the weight of the optimum. With one worker it is the lazy shortest path of Dellin and Srinivasa [125]. -
FarmAStar(FarmAStar.h) is a centralized parallel A* written as a farm with feedback, i.e., the master-worker scheme of [1]: a master holds OPEN and CLOSED, and the workers generate the successors of the nodes it sends them. With the optionsynchronousit is the K-best-first search of Felner, Kraus and Korf [130], whose master waits for all the tasks of a round and inserts their successors in the order in which it sent them. Its expansions are then the same at each run. -
ParallelIDAStar(ParallelIDAStar.h) is the parallel IDA* below a frontier. A* (or uniform-cost search, or a tree of fixed depth) runs until OPEN holds a given number of units, as in the AIDA* of Reinefeld and Schnecke [55] and the A*+IDA* of Bu and Korf [56]. Then the iterations of IDA* run below the units on the workers, each unit with its own threshold, and a unit whose subtree has no node of f between its last bound and the current one sits the iteration out. This scheme is synchronous (a barrier per iteration, the first goal found being optimal) or asynchronous (the units taken by increasing threshold with no barrier, until all the thresholds reach the incumbent). Its units are scheduled by work stealing or from a shared cursor, longest first. Also, an idle worker may take half of the successors not yet tried at the bottom of the stack of a busy one, as in the splitting of Rao and Kumar [58]. Furthermore, the first levels below a unit may be looked up in the table of the frontier, which prunes many of the duplicates that IDA* expands again. With one unit and one worker it expands exactly the nodes ofIDAStar, and with the depth rule and each unit at each bound it is the parallel IDA* of the code of Siag et al. [57].ParallelIDAStarMPI(ParallelIDAStarMPI.h) runs the synchronous scheme with one MPI process per worker. Each process builds the same frontier, and at each iteration the units are given to the processes by the longest processing time first of Graham [66] on their last expansions.
The shared-memory searches are templates also over the executor of ADS that
runs the workers, i.e., its pool of C++ threads
(ADS::ThreadPool,
the default),
ADS::OpenMPExecutor
or
ADS::FastFlowExecutor.
From ADS they also take their channels, the mailbox that detects the end of
HDA* and of the distributed B&B, and the farm with feedback (on FastFlow the
farm is a farm of FastFlow, and the channels a mesh of single-producer
single-consumer queues). A caller that runs many searches may give them an
executor by set_executor(), which saves the start of the threads at each
search. Their options are in ParallelOptions: the number of workers, the size
of a batch, the number of expansions between two flushes of a partially filled
batch and the seed of the distribution.
When an optimal path costs too much to find, a weight SearchOptions::weight) makes some searches order OPEN by Solution::bound holds the lower bound on Weight.h). In OPEN, the ties of OpenKind::heap_low_g (LowGOpenList) in favor of the smaller one,
i.e., of the smaller drop_duplicates, a closed node reached through a cheaper path is
reopened only when the saving exceeds
With anytime, the parallel searches go on after the first path, the incumbent
pruning by Solution::improvements records each path
found with its time. With a schedule of weights, SafePBNF is the Anytime
Restarting PBNF of [3], which lowers the weight at the end of each
iteration and orders OPEN again, as ARA* does. The sequential anytime searches
are in AnytimeAStar.h. Anytime Weighted A* (AWA*) of Hansen and Zhou
[47] reports with each path the least
All the other bounded-suboptimal searches are sequential. Thus, the optimistic
search of Thayer and Ruml [49] (OptimisticSearch.h) searches with
the weight ImprovedOptimisticSearch.h) proves or improves the first
path with an A* restarted from the root that reopens each node at most once. In
turn, the focal search FocalSearch.h) expands, among the nodes of DistanceDomain (or by PotentialSearch.h) expands the node of largest
Last, LPAStar (LPAStar.h) is the Lifelong Planning A* of Koenig, Likhachev
and Furcy [54]. The caller changes the costs of some edges in the
domain and reports each change with its old and new cost (edge_changed(), or
take_events() of an EventDomain; update( v ) when the old cost is not
known). Then solve() repairs the previous search instead of starting anew. A
decrease costs Grid::cell_changed() patches the moves around a cell whose
cost changed and records their changes). DStarLite, in the same header, is
the D* Lite of Koenig and Likhachev [143], i.e., LPA* on the
reversed domain from the goal to a robot that moves, whose keys grow by the
estimate of each move.
The front-to-end bidirectional searches run a forward search from the initial
state and a backward one from the goal over one table of the nodes, each node
with its g in both directions. A state reached by one direction with a finite g
in the other thus lowers the incumbent by the same lookup that detects the
duplicates (the immediate solution detection of [94]). These
searches stop when the incumbent is not larger than a lower bound on the
optimal cost drawn from their open lists. The bounds, with their proofs, and
the guarantees of each search are on the page "Bidirectional search" of the
documentation. BiBestFirst.h expands one node at a time, the one of least
priority. It gives the bidirectional Dijkstra's algorithm, MM of Holte et al.
[61], [81], which never expands a node beyond half of the
optimal cost, MMe [82], the fractional MM of Shaham et al.
[83], which meets at a given fraction of it, and BAE*
[88], [89], which adds to f the error of the heuristic of
the other direction and needs consistent heuristics. NBS.h is the
Near-Optimal Bidirectional Search of Chen et al. [85], which expands
both ends of a pair of least lower bound, and hence at most twice the minimum
vertex cover of the must-expand graph of Eckerle et al. [84].
DVCBS.h is the search of Shperberg et al. [86], which expands one
cluster of nodes of equal g of a minimum vertex cover of the dynamic
must-expand graph, computed in time linear in the clusters. Last, GBFHS.h is
the Generalized Breadth-First Heuristic Search of Barley et al.
[87], which raises a bound on the cost by one unit at a time and
splits it into two limits on the depths. Without heuristics, it is the
bidirectional breadth-first search (bibfs()).
With consistent heuristics a search does not open a node that the other
direction has closed, as in BS* [90], since each path through it is
known already. BidirectionalOptions holds this assumption, the least cost of
an edge, the choice of the direction (by priority, in turn, or by the size of
the open lists [91]), the fraction of fMM and of the split of GBFHS,
the eager variant of NBS and DVCBS, and the request of the largest of all the
valid bounds. ReverseDomain swaps the initial and the goal state of a
BidirectionalDomain, and A* on it is the reverse A*, while BlindDomain
drops both heuristics.
ParallelBidirectional.h runs the two directions at once on two workers of an
executor, sharing the table and the incumbent. Each worker writes only the
fields of its direction and publishes the least keys of its open list, from
which either worker computes the bound of the algorithm, and it stops both when
the incumbent reaches that bound. With f as the priority and the two rejections
of the NBA* of Pijls and Post [92] this is PNBA* of Rios and
Chaimowicz [93]. With the priorities of the bidirectional Dijkstra's
algorithm, of MM and of BAE* it is the parallel version of each.
The external searches go beyond the memory. PEMSearch.h is the framework
PEM-BiHS of Siag et al. [57], whose open and closed lists are files
of buckets of equal g and heuristics, split by the hash of the state. In it,
the partitions of a bucket are loaded, checked for duplicates against the
closed buckets of the same heuristics and expanded by the workers of an
executor. The meetings of the two directions are found when a copy is expanded,
the delayed solution detection of Sturtevant and Chen [94]. It gives
PEM-A*, the reverse PEM-rA* (on a ReverseDomain), PEMM and PEM-BAE*, with a
cap on the bytes on the disk. IDDAStar.h is A* with immediate duplicate
detection in external memory, A*-IDD of Lin and Fukunaga [95]. Its
closed list is a file of records read at random, found through a table in
memory of positions packed in as few bits as they need, and written by blocks
of one partition of the states; a probe therefore reads the disk only for the
blocks of the partition of the state. It suits a solid state drive, where
DDDAStar suits sequential access.
When a path of least cost is not required, the greedy best-first search (GBFS)
of Doran and Michie [96], which selects the node of least h, usually
reaches a goal after a small fraction of the expansions of A*. In
GreedySearch.h, GreedySearch performs it, as well as the search ordered by
SearchOptions, which
GreedyOptions makes infinite by default), whose path costs at most DeferredDomain its heuristic is then never computed before). Several queues
may alternate in round robin, one per heuristic of a MultiHeuristicDomain; a
queue may break the ties of one heuristic by another, and Pareto queues order
the vectors of the heuristics [98]. Also, the queues of the
preferred successors of a PreferredDomain are boosted whenever a heuristic
reaches a new least value [97]. Further options are the type-based
exploration of Xie et al. [99], the epsilon-greedy selection of
Valenzano et al. [100], and the breaking of the remaining ties by
the order of insertion, by g or at random.
EnforcedHillClimbing is the local search of FF [101], a
breadth-first search from the current state for a better one, with only the
preferred successors or with them first, and a fallback on GBFS.
IteratedSearch runs a sequence of such searches, each bounded by the cost of
the best path found before it, all of them sharing the evaluations
(HeuristicCache). With lama_phases() it is the schedule of LAMA
[102], and in general the restarting search of Richter, Thayer and
Ruml [103]. The width-based searches of Lipovetzky and Geffner
(WidthSearch.h) need the features of a state: iw() is IW(k), the
breadth-first search that prunes the states that make no tuple of at most k
features true for the first time, and siw() achieves the goal features of a
GoalFeatureDomain one at a time with IW [104]. Last, bfws() is
the best-first width search ordered by novelty, then by the goal features still
to achieve (or by h), then by g. Its novelty is computed for each value of
these and of the relevant features of a relaxed plan of a
RelevantFeatureDomain [105].
Among the parallel searches, the greedy ones (ParallelGreedy.h) share one
OPEN and one CLOSED list. They differ in the condition under which a worker may
take the best node of OPEN, which decides how far they stray from the
sequential GBFS. KPGBFS takes it always [106], and may expand
arbitrarily more states than GBFS [108]. PUHF [108] and
PUHF2, PUHF3 and PUHF4 [109] take only the nodes that some breaking
of the ties lets GBFS expand, i.e., those of the bench transition system of
Heusner, Keller and Helmert [112]. SPUHF keeps the idle workers on
a speculative search apart. OBAT [110] explores one bench at a
time, by deferring the nodes that may leave the bench. It expands at most
HDGBFS is GBFS on the hash distribution of HDA* [107].
Last, the library has the searches that the parallel ones build on or are
compared with. Partial Expansion A* [42], [113] puts in
OPEN only the successors whose f does not exceed the stored value of their
parent. This parent goes back to OPEN with the least f of the others, but those
already stored with a g not larger (which could only be generated again as
duplicates). Enhanced Partial Expansion A* [114] generates only
those successors, on the operator selection function of a
PartialExpansionDomain (PartialExpansion.h, satisfied by SlidingTile and
by Grid with 4 and 8 moves and weighted cells). On the 15-puzzle it stores
and generates about half of the nodes of A*. FringeSearch [115]
keeps the frontier of IDA* between its iterations, RBFS is the linear-space
best-first search of Korf [116], and BeamSearch keeps the best B
nodes of each layer of a breadth-first search [117].
RealTimeSearch is LRTA* [118] and, with a lookahead of more than
one expansion, LSS-LRTA* [119], which interleave a bounded search
with the moves of an agent and learn the heuristic. HPAStar (HPAStar.h) is
the hierarchical pathfinding of Botea, Müller and Schaeffer [120]
on the grids, which searches a graph of the entrances between clusters of cells
and refines its path within the clusters.
These searches have been checked against those of HOG2 [165] on counts that do not depend on the machine (the cost of the path, the expansions, the generated nodes and the trials of LSS-LRTA* up to convergence), on instances of Korf and on random grids of 4 and 8 moves. Here A* and LSS-LRTA* agree with HOG2 up to the breaking of the ties. PEA* selects no more nodes on the grids, and as many on the 15-puzzle but on one instance, where it selects more. Our EPEA* runs also on the grids of 8 moves, where the one of HOG2 stops on an assertion. Fringe Search, RBFS and HPA* could not be compared, since those of HOG2 do not build in its current tree.
A MultiObjectiveDomain (MultiObjective.h) is a domain whose edges cost a
vector of ParetoSolution, i.e., one path for each
vector of the Pareto front of the paths from the start to a goal, in
lexicographic order. MOAStar (MOAStar.h) is the framework of Ren et al.
[182], in which the labels (the paths) are extracted by the
lexicographic order of f and checked, with the first component dropped, against
the frontier of the paths expanded at their state and against the solutions
[185]. With the minimum of the second components it is BOA* of
Hernández et al. [181], whose checks take constant time. With a
balanced tree (the AVL tree of ADS) it is EMOA* [182], whose check
for three objectives takes logarithmic time, and with an array it is LTMOA*
[183]. Furthermore, the option lazy drops the checks at the
generation, which gives LazyLTMOA*, and the option order permutes the
objectives of the lexicographic order. For integer costs, OPEN is a heap or
MOBucketQueue, a bucket for each value of NAMOAStarDR is NAMOA* [180] with the dimensionality reduction of
Pulido, Mandow and Pérez de la Cruz [185], which also checks each
new label against the labels of its state in OPEN and removes those it
dominates.
Two parallel searches are in ParallelMOAStar.h. MOAStarPar is the parallel
MOA* of Ahmadi et al. [184], whose workers search on different
orders of the objectives. They share upper bounds that compare fewer and fewer
components, down to one, as the solutions of the other workers advance. It
takes any of the three frontiers (LTMOA*-par with the array, BOA* on the two
orders for two objectives) and up to HDMOAStar is our hash-distributed search, in which each worker owns the
states of a hash, as in HDA*, and keeps the frontiers of its states with the
full vectors, in a Fenwick tree of truncated frontiers over layers of
The domains are MultiObjectiveGraph (MultiObjectiveGraph.h) and
MultiObjectiveGrid (MultiObjectiveGrid.h). Here MultiObjectiveGraph is a
graph given by its arcs, whose heuristic is the ideal point, i.e., the distance
to the target by each objective taken apart. It is built by
read_dimacs_objectives from the road graphs of DIMACS [64], the
distances and the times (tools/bench/fetch_dimacs.sh <dir> NY --times
downloads both). From the graph are computed the further objectives of the
papers: the number of arcs [188], the degree of the arcs
[182] [184] and a random integer in [1, 100]
[183]. MultiObjectiveGrid holds the grids of [182],
whose moves cost random integers. Both are run by tools/MOABench, e.g.,
MOABench --graph USA-road-d.NY.gr,USA-road-t.NY.gr --extra degree --queries pairs.txt --algo par --threads 3 --header, and prints the size of the front
and the counters of each run.
The symbolic searches (symbolic.h, which needs the library PBeFS::Symbolic
and hence Sylvan [194]) store sets of states instead of single
states, each set a Binary Decision Diagram (BDD) [163] of its
characteristic function. They expand a set at once by a relational product with
the transition relation, as in symbolic model checking [190]. A
SymbolicDomain (SymbolicDomain.h) gives the variables of a state, each with
a finite range, the initial values, the goal as partial assignments, and the
operators. Each operator has a cost, a precondition and effects (possibly
conditional) that set a variable to a constant (as in SAS+ [133])
or to the value of another variable (which describes the moves of the
permutation puzzles in a few effects). Optionally, the domain gives a heuristic
as a sum of terms on few variables, toward the goal and toward the start.
SymbolicModel (SymbolicModel.h) compiles the domain into the relations of
the operators, merged by cost into partitions up to a number of nodes as in the
symbolic planners [193], and into the sets of the states of each
value of the heuristic. Its method strengthen() raises the heuristic to the
largest of itself and of the symbolic pattern databases of given patterns of
variables [196]. These databases may be seeded by a perimeter
around the targets, as the perimeter abstractions of Felner and Ofek
[199] and of SymBA* [198]. They may also be added when
no operator writes two patterns, or chosen during a bidirectional blind search
from the perimeter of each direction, as SymBA* does; consistent() checks
each of them. As for the order of the variables, it is that of the domain, a
given one, or one found by a local search on the spans of the operators
(SymbolicLayout).
SymbolicSearch (SymbolicSearch.h) is BDDA* [191],
[192] with buckets of g and h, or, with list, the List BDDA* of
[193], which splits a set by h only when it is expanded. With h = 0
it is Dijkstra's algorithm on sets [196], and with unit costs
(symbolic_bfs()) the breadth-first search. It runs forward by images,
backward by preimages, or bidirectionally. In the last case it stops on the
bound of the explicit bidirectional searches. At each step it chooses the
direction whose next image is estimated cheaper, as the symbolic planners do
[193] (by counts of nodes here, not by times). Also, top_k()
gives the k cheapest plans, states repeated, forward or bidirectionally as in
symk [195]. Moreover, symbolic_reachable() gives by layers all
the states reachable from the start or from the goals; in all cases, the path
of a solution is rebuilt from the sets expanded. Furthermore, the images of the
partitions of a set are computed one after the other, as tasks of the
work-stealing scheduler Lace of Sylvan,
which balances them, or on the workers of an executor of ADS. Each relational
product is parallel inside Sylvan. Since the diagrams are canonical, the costs,
the paths and the counters (sets expanded, products, nodes) do not depend on
the workers.
Its domains are the sliding-tile puzzle and the pancakes (SymbolicPuzzles.h,
with the Manhattan distance and the gap heuristic) and any SAS+ task, with
axioms too (SymbolicSAS.h). AStarBench runs them with --algo sym-bfs,
sym-dijkstra or sym-bdda on the tiles and the pancakes (with
--symstats 1, the counters of the search go to stderr). The encodings, the
proofs of BDDA* and of the bidirectional stopping rule, the choice of Sylvan
over CUDD [197] and the limits of the implementation are in the
page "Symbolic search" of the theory (docs/theory/symbolic-search.md).
With the same machinery, PBeFS runs a best-first search with an incumbent,
i.e., a Branch-and-Bound (B&B), on a problem satisfying the concept
BranchAndBound of BranchAndBound.h. Such a problem gives a copyable
node_type, a sense (minimization or maximization), the root node, and two
methods: evaluate( n ) returns the bound of the node n, whether it is
infeasible and possibly a feasible value, while branch( n , sink ) gives the
children of n, each with a bound that is cheap to compute. Alternatively,
make_worker( i ) gives each worker a separate evaluator (e.g., with a copy of
a model and of a solver). Such an evaluator may also take the incumbent value
by cutoff( z ) before each evaluation (e.g., to stop a relaxation that cannot
improve it). Note that a B&B tree has no duplicates; hence, there is no closed
list. A node is evaluated only when it is extracted, which pays off when the
bound is "expensive" (say, a Linear Program). It is pruned when it is
generated, when it is extracted and after its evaluation. Nodes can be
extracted best-first, depth-first, breadth-first, by an estimate of the
problem, or by plunging (a dive into the best child, then best-first). A search
ends when no open node can improve the incumbent beyond an absolute or relative
tolerance, usually well before the queue is empty. It reports the bound and the
gap also when a node or time limit stops it. On request, the Solution also
holds the leaves of the tree explored. A search can start from any set of nodes
instead of the root, which allows one to reoptimize after a change of the data
that leaves the branching valid, or to resume a search stopped by a limit.
The search is sequential (branch_and_bound( p , options )), or parallel in
one of the following schemes, the first three on the three runtimes:
- a queue shared by the workers, as in SPA* (
SharedBranchAndBound); - a queue per worker, with the children sent to their owners as in HDA*
(
DistributedBranchAndBound); - master-worker on a farm with feedback (
FarmBranchAndBound); - one MPI process per worker (
MPIBranchAndBoundSearch, whose nodes travel as bytes); - synchronous rounds (
DeterministicBranchAndBound), whose outcome depends neither on the timing of the workers nor on their number, as in the deterministic mode of FiberSCIP [18], and hence the experiments of a paper can be repeated exactly; - the SelfSplit of Fischetti, Monaci and Salvagnin [19]
(
SelfSplitBranchAndBound), whose workers search apart, without exchanging anything, the subtrees of a first sampling of the tree. The sampling ends with a dive to a leaf, so that the workers start from an incumbent. Then the outcome depends only on the number of the workers. If they share their incumbent, they prune more at the price of that determinism; - work stealing [20] (
StealingBranchAndBound), whose workers keep the children they generate and take about half of the queue of another worker [36] only when theirs is empty. Each worker thus stays in its part of the tree, which pays when moving the evaluator of a worker to a distant node is costly; - the MultiQueue of ADS (
MultiQueueBranchAndBound), the queue of MQA*, whose workers share the open nodes with no lock common to all of them, at the price of a relaxed order of extraction.
The searches that need no external library can also be chosen by a value, or by
its name read from a file of parameters (parallel_branch_and_bound( p , bb_scheme( "selfsplit" ) , options )). Hence, a program built on the library
gets each new scheme with no change. In the taxonomy of Gendron and Crainic
[16], all of them build one tree in parallel (their type 2),
asynchronously but for the rounds. They have a single pool of open nodes (the
shared queue, the MultiQueue, the farm and the rounds) or a pool per worker
(the distributed queues, the work stealing, the SelfSplit and MPI). In their
terms, the parallelism inside a node (their type 1) is left to the evaluation
of the problem. The search of several trees at once (their type 3) is provided
only at the start, by the racing ramp-up below. SafePBNF and PA*SE have no
counterpart, since they exist to handle duplicates and re-expansions, which a
tree does not have; for the same reason, the owner of a node only balances the
load.
A problem may also give the children of a node one at a time, by a cursor, and
then a depth-first search builds only those it visits (with prune_level, the
children coming by their estimates, a child pruned ends its siblings). A
problem may also give the child k of a node without its evaluation, and then a
node can be rebuilt from the path of its choices. On these rest the depth-first
searches of the skeletons of Archibald et al. [67] [68]
(SkeletonBranchAndBound). Their workers share the work in one of four ways:
by spawning as tasks the children of the nodes above a depth, by spawning the
children left on their stack after a budget of backtracks, by letting an idle
worker steal from the stack of a busy one, or by taking the nodes of a depth in
a fixed order of discrepancy, which makes the runtimes repeatable. A task is a
node or, with indexed, the path that leads to it, a few bytes whatever the
node. Each search may seek an optimal value, decide whether a value within a
target exists (stopping at the first one), or enumerate the tree, counting its
feasible nodes; all the schemes run in the three modes.
Before any of the schemes, several settings may race on the root, sharing their
incumbents. The search goes on from the tree of the one with the best bound, as
in the racing ramp-up of the Ubiquity Generator [69]. Any of them
may run in segments that write a checkpoint of their open nodes, from which a
run stopped at any time is resumed with any scheme and any number of workers
(checkpointed_branch_and_bound()). Over MPI, besides the distributed search,
the processes may be organized as a master, hubs and workers, as in ALPS
[70] (MPIHubBranchAndBoundSearch): each worker searches its
subtrees and receives work only when its hub pairs it with a donor, by the
quantity and by the quality (the mean bound of its best nodes) of the work of
the cluster. For the trees whose nodes of a depth have the same number of
children, as those of the permutation problems, the work may be an interval of
leaves in a mixed radix, an idle worker taking the second half of the interval
of another one, as in the Integer-Vector-Matrix of Mezmaz et al. and Gmys et
al. [71] [72] (IntervalBranchAndBound). Each node is
evaluated by one worker only, and with the optimum given the nodes evaluated do
not depend on the steals.
The examples of the layer, besides the knapsack, are the following: the trees
of the Unbalanced Tree Search of Olivier et al. [73] (UTS.h, with
the trees T1 to T3 of the benchmark); the maximum clique by the bound of a
greedy coloring on bitsets, as in the algorithms of Tomita and Kameda and of
San Segundo et al. [74] [75], with a reader of the graphs
of the DIMACS challenges (MaxClique.h); the maximum common induced subgraph
by the label classes of McSplit [76] (MaxCommonSubgraph.h); the
subgraph isomorphism by forward checking (SubgraphIsomorphism.h); the
quadratic assignment by the bound of Gilmore and Lawler [77], with a
reader of QAPLIB [78] (QAP.h); and the permutation flowshop by the
one-machine and two-machine bounds of Lageweg, Lenstra and Rinnooy Kan
[79], with the branching of the head, of the tail, alternated or
chosen at each node, and the instances of Taillard [80] generated
from their seeds (Flowshop.h). The design is discussed in
docs/branch-and-bound.md. Tests check the variants
on the 0-1 knapsack against the dynamic program, and the domains against
references outside the library (e.g., the size of the trees of UTS by a plain
recursion, the cliques by the algorithm of Bron and Kerbosch and the common
subgraphs by the cliques of the modular product of the graphs).
All the data structures of the searches are those of ADS. OPEN is either a
4-ary heap
(ADS::DaryHeap),
for any cost type, or a two-level bucket queue
(ADS::BucketQueue,
on f first, then on g) for integer costs. The latter is reported in
[4] to be somewhat faster than a heap on the sliding-tile puzzles.
Neither supports decrease-key, and an entry made stale by a cheaper path is
skipped when it surfaces. CLOSED (NodeTable.h) is an open-addressing hash
table
(ADS::PointerTable)
that stores the hash of a state next to its node, which spares most probes the
comparison of the states, and spreads the slots by Fibonacci hashing. Nodes are
allocated from an arena
(ADS::Arena),
and both the table and the arena are requested from the operating system as
transparent huge pages, where available. In the sequential search the slots of
the successors are also prefetched before being probed, since on large
instances most probes are cache misses (the parallel searches do the same with
the batches they receive).
When ADS is built with Boost, the table stays that of
ADS (ADS_POINTERTABLE_BOOST=0), since boost::unordered_flat_set cannot be
prefetched and is slower on the large searches; the
ADS::FlatHashTable
of the searches with external memory, instead, follows Boost
(boost::unordered_flat_map), which is faster there. From ADS come as well the
queues inside the other searches. Thus, the free list of SafePBNF and the OPEN
of PA*SE are B+-trees
(ADS::BTreeMap),
which give both the least key and the scan in order that their tests of
interference need. In the B&B, the queue is a pair of indexed heaps on the same
nodes
(ADS::IndexedHeapPair),
one by the key of the selection and one by the bound, which the test of
termination needs. Each search returns a Solution holding the status (solved,
unsolvable or stopped at the node limit), the cost, the path and the counters
of the search. For the parallel ones, these include the load balance and the
communication overhead of [2].
The structures of A* can be replaced at compile time, with the same interface
(Structures.h), by those of the standard library (std::deque,
std::unordered_map and std::priority_queue) or of Boost
(boost::object_pool, boost::unordered_flat_map and
boost::heap::d_ary_heap). In this case the searches do not change, and
neither does the order of their expansions, but for the ties of f and g in
OPEN, which the sets break differently. Neither the standard library nor Boost
has a bucket queue, and hence with them both OPEN lists are a heap. With the
structures of ADS the domains on a graph take their adjacency from ADS too.
Thus, the grids take it from
ADS::GridGraph,
which computes the moves from a cell and their costs from a vector of the costs
of the cells (a move paying the cell it leaves, as in the domain). The explicit
graphs take it from
ADS::ArrayGraph,
built from the arcs before the first expansion. With the other two sets, the
moves of a grid are computed from its map, since neither the standard library
nor Boost has a graph of a grid with blocked cells and diagonal moves (a graph
in compressed rows of a map of 20000 by 20000 cells would take tens of GB).
Also, the arcs of an explicit graph are kept in a list per node or in the
compressed_sparse_row_graph of Boost. The standard library and Boost are
there to measure the searches against them (tools/bench/structures.sh), and
the B&B does not depend on the set.
PatternDatabase.h gives the sliding-tile puzzles the additive pattern
databases of Korf and Felner [22] and of Felner, Korf and Hanan
[23] in place of the Manhattan distance. A table holds, for each
placement of the tiles of a pattern (ranked as a k-permutation of the cells),
its distance from the goal in an abstraction that keeps only the tiles of the
pattern. Here the blank is either ignored, in which case the table is
consistent, or minimized over the cells it can reach for free, which gives a
stronger but inconsistent table, as in [22]. Each table is built by
a breadth-first search by layers on the workers of any runtime. AdditivePDB
sums the tables of a partition of the tiles and takes the maximum with the
reflection about the main diagonal, and SlidingTilePDB is SlidingTile with
that heuristic, on which any search of the library runs unchanged:
#include "PBeFS/PBeFS.h"
using namespace PBeFS_di_unipi_it;
PDBOptions o;
o.blank = BlankRule::minimized;
o.cache = "pdb-cache"; // built once, then loaded
const AdditivePDB< 4 , 4 > pdb( partition_15_7_8() ,
FifteenPuzzle::korf_goal() , o );
const SlidingTilePDB< 4 , 4 > d( FifteenPuzzle::parse( "14 13 15 7 11 12 "
"9 5 6 0 2 1 4 8 10 3" ) , pdb );
const auto s = AStar< SlidingTilePDB< 4 , 4 > >( d ).solve(); // cost 57The entries are stored in a byte, in 4 bits as the excess over the Manhattan distance of the tiles of the pattern (the default), modulo 3 in 1.6 bits [25] or in 1 bit [27] (the heuristic of a successor then follows from that of its parent), by the least excess of groups of consecutive ranks (the max-compression of [24]), or by rank and select over the nonzero excesses; all of them are in the packed arrays and in the rank and select of ADS. All tables are saved to files with a versioned header and a checksum, and a cache directory keeps them. For the theory (the admissibility of the sum and of the reflection, the consistency, the recovery of the exact value from the residues), see the page "Pattern databases" of the documentation.
The following table gives the nodes expanded by A* on the 100 instances of Korf
(tools/bench/pdb.sh), which do not depend on the machine; all the costs found
are the optimal ones. In each row, the column "heuristic" gives the Manhattan
distance or a partition of the 15 tiles into patterns (5-5-5 is three patterns
of 5 tiles), with the reflection unless "no reflection" is written. After
"max-compressed by k", the entries are max-compressed over groups of k ranks.
Then "blank" is the rule of the blank, and "entries" the encoding of an entry
(4 bits or 1 bit of the excess, or "min" for the least excess of a group).
Last, "memory" is the size of the tables, "expanded" the sum of the expansions
over the 100 instances, and "ratio" the expansions with the Manhattan distance
over those of the row.
| heuristic | blank | entries | memory | expanded | ratio |
|---|---|---|---|---|---|
| Manhattan | 1557138490 | 1 | |||
| 5-5-5, max-compressed by 16 | ignored | min | 49 KB | 681766045 | 2.3 |
| 5-5-5, no reflection | ignored | 1 bit | 197 KB | 369972440 | 4.2 |
| 5-5-5 | ignored | 4 bits | 786 KB | 263234565 | 5.9 |
| 6-6-3 | ignored | 4 bits | 5.8 MB | 167667391 | 9.3 |
| 7-8, no reflection | ignored | 1 bit | 72 MB | 137386424 | 11.3 |
| 7-8, max-compressed by 8 | ignored | min | 36 MB | 119574805 | 13.0 |
| 7-8 | ignored | 4 bits | 288 MB | 43587167 | 35.7 |
| 5-5-5 | minimized | 4 bits | 786 KB | 59968561 | 26.0 |
| 7-8 | minimized | 4 bits | 288 MB | 2019506 | 771 |
The rule of the blank weighs more than the size of the patterns. With the blank
minimized, the partition 7-8 expands about 20000 nodes per instance, i.e., 21
times fewer than with the blank ignored, at the price of about 6000
reexpansions over the 100 instances. The encodings in 1 bit and modulo 3,
however, need the blank ignored and no reflection. Nevertheless, the default of
PDBOptions is the blank ignored, which each encoding accepts and which keeps
the heuristic consistent; hence, the sequential A* never expands a node twice;
the blank minimized is chosen as in the example above.
Also, the tables of the 24-puzzle (6-6-6-6, 255 MB in 4 bits) are built and
looked up as well. SlidingTile packs the boards of more than 16 cells, 5 bits
per cell, into an integer of 128 bits (Word128). Then
SlidingTilePDB< 5 , 5 > with IDA* is then the search of Korf and Felner
[22] on that puzzle. However, the 50 instances of
data/24-puzzle/instances50.txt are beyond the reach of a benchmark, since
IDA* solves only one of them within tools/bench/pdb.sh therefore solves the 50
instances of PDBBench --walk 150, i.e., the ends of random walks of 150 moves
of the blank from the goal (the
| optimal cost | instances | least expanded | mean expanded | most expanded |
|---|---|---|---|---|
| 50-60 | 3 | |||
| 62-66 | 12 | |||
| 68-70 | 9 | |||
| 72-74 | 11 | |||
| 76-78 | 9 | |||
| 80-84 | 5 |
Thus, the mean grows by about one order of magnitude every 6 moves of the optimal cost up to 78. Within a group of costs, however, the expansions of two instances may differ by up to 3 orders of magnitude.
PermutationPDB.h builds the pattern databases of any permutation puzzle,
i.e., a puzzle whose moves permute groups of objects among their positions and
possibly turn them (the concept PermutationDomain). Here the abstract state
of a pattern is the positions and the orientations of its objects, ranked by
one of the rankings of Permutation.h (lexicographic by population counts,
lexicographic by the binary tree of Bonet [62], or the linear-time
ranking of Myrvold and Ruskey [34]). Its table, of 4 or 8 bits per
entry, is built by abstract_distances() (AbstractionPDB.h), the algorithm
of Dial [65] by layers on the table itself, in parallel on any
runtime. This function serves any abstraction whose states are ranked and whose
edges have small integer costs. PermutationHeuristic takes the maximum (or
the sum) of several tables, and PDBDomain gives any Domain that heuristic
besides the one it has.
As permutation puzzles, the library has the pancakes of Dweighter
[63] and their burned variant (Pancake.h), with the gap heuristic
of Helmert [60] and its weakened GAP-x of Holte et al.
[61], TopSpin (TopSpin.h), with the breakpoints, as in
[30], and Rubik's cube (RubiksCube.h). On the cube, the moves are
those of the cubie model of Kociemba, with the pruning of the redundant pairs
of moves of Korf [59] (TreeOperatorDomain, which IDAStar and
ParallelIDAStar use). As heuristic, the cube takes his three tables, the
corners and two sets of six edges. Here the tests check the size of his search
tree at each depth, and the size, largest value and mean of each table, against
his paper, and data/rubik holds his ten instances. Furthermore, the Towers of
Hanoi with four pegs (TowersOfHanoi.h) take the additive tables of ranges of
disks of Felner, Korf and Hanan [23] on the same construction. In
data/hanoi are the 20 instances of 20 disks of Siag et al. [57].
The sliding-tile puzzles keep the tables of PatternDatabase.h, since their
encodings relative to the Manhattan distance and their blank minimized need the
structure of the puzzle. Finally, DimacsGraph.h reads the road graphs of the
9th DIMACS Implementation Challenge [64] into an ExplicitGraph,
with the consistent heuristic of the great-circle distance scaled by the least
ratio of the length of an arc to that of its ends; data/dimacs holds a small
synthetic graph in their format, and tools/bench/fetch_dimacs.sh downloads
the real ones.
Planning.h makes a domain of a classical planning task in the SAS+ formalism
of Bäckström and Nebel [133]. The task is read by SASTask.h from
the file output.sas that the translator of Fast Downward [134]
writes, i.e., the version 3 of the format, without axioms and conditional
effects, which are refused with an exception. Any search and any work
distribution of the library thus runs on the planning tasks as on the other
problems. A state packs the values of the variables into an array of W words of
64 bits (Planning< W >), each variable in a field of the bits its range needs
and none across two words. Successors are enumerated by a decision tree over
the variables, as the successor generator of Fast Downward does, and the costs
are those of the operators, or 1 for a task without metric.
Its heuristics, in SASHeuristics.h, are of two kinds, and the admissible ones
are the following:
- the
$h^{\max}$ of Bonet and Geffner [135]; - the landmark-cut heuristic of Helmert and Domshlak [136];
- a pattern database of a projection of the task onto a set of variables (by
default the goal variables and then their parents in the causal graph, as
long as the abstract space has at most
$2^{16}$ states), computed once by a Dijkstra search backward from the abstract goal [137]; - the merge-and-shrink abstraction of Helmert, Haslum, Hoffmann and Nissim [140], merged linearly in the order of the causal graph and of the goal and shrunk by greedy bisimulation to at most 1000 states (the setting of the experiments of [5]);
- the Cartesian abstractions refined by counterexamples of Seipp and Helmert [200], [201], a single one of the task or the sum of those of the goal facts under saturated cost partitioning [202], both within 1000 abstract states by default;
- the blind heuristic.
The others, which are not admissible, are
Also, the task is an IncrementalFeatureDomain, whose features are the facts
OperatorDomain).
data/planning holds 28 small tasks of the International Planning Competitions
(gripper, blocks, logistics00 and driverlog), whose list, optimal.txt, gives
the cost of an optimal plan of each. They were written by tools/pddl2sas.py
from the PDDL files of the collection of Fast Downward. In them, the actions
are grounded by relaxed reachability, and the atoms are grouped into variables
by the invariants "at most one atom of the group holds", which are proved on
the ground actions. With
--domain planning --file <output.sas> --heur <heuristic>, AStarBench solves
a task with any search of the library, the state in 2 or 16 words.
The library needs a C++20 compiler, CMake 3.21 or GNU
make, and ADS, whose headers CMake finds
by find_package(ADS) (with ADS_ROOT as a hint) or else downloads at the
commit PBEFS_ADS_COMMIT, and which the makefiles take from ADSSDR. OpenMP,
MPI and FastFlow are optional, and each of them is used if it is found.
FastFlow is header-only. CMake looks for it in FASTFLOW_ROOT (/opt/fastflow
by default) and on the include path, and if it is not there it downloads the
commit PBEFS_FASTFLOW_COMMIT (unless PBEFS_FETCH_FASTFLOW is OFF). The
makefiles take its headers from FF_ROOT (/opt/fastflow by default on Linux
and macOS, none on Windows). With CMake one has
git clone https://github.com/dmeoli/PBeFS.git
cmake -S PBeFS -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
ctest --test-dir build
cmake --install build --prefix <prefix>where the following options apply.
PBEFS_WITH_OPENMP,PBEFS_WITH_MPIandPBEFS_WITH_FASTFLOW(allONby default) can exclude a runtime.PBEFS_STRUCTURESchooses the data structures of A*:ads(the default),std, orboost, which needs Boost 1.81 or later; the makefiles take it fromPBeFSSTRUCT.PBEFS_WITH_HIGHWAY(ONby default) lets an ADS downloaded by CMake prefetch through Google Highway if it is found, without which a prefetch does nothing; the makefiles take Highway, hwloc and Boost wherever a program ofextlib/ads-backends.cppbuilds.PBEFS_WITH_SYLVAN(ON) builds the libraryPBeFS::Symbolicof the symbolic searches if Sylvan is found byfind_package(sylvan)or, unlessPBEFS_FETCH_SYLVANisOFF, downloaded at the commitPBEFS_SYLVAN_COMMIT, which needs CMake 3.23; the makefiles take it installed inSYLVAN_ROOT.PBEFS_BUILD_TESTS,PBEFS_BUILD_EXAMPLESandPBEFS_BUILD_TOOLS(ONonly when PBeFS is the top-level project) build the tests, the examples and the benchmark.BUILD_SHARED_LIBS(ONwhen PBeFS is the top-level project, else that of the parent project) builds the libraries shared, andOFFstatic. The installed programs and libraries find the libraries of PBeFS by a run-time path relative to their own directory (on Windows the DLLs are next to the programs), so that noLD_LIBRARY_PATHis needed.PBEFS_BUILD_MODULE(OFFby default) builds the C++20 modulepbefs, the targetPBeFS::PBeFS_module, which exports each name of the headers but those of the namespacesdetail; a program can then writeimport pbefs;in place of the#includeof the headers. Note that the searches on MPI and the symbolic ones are exported only if the module is built with MPI and with Sylvan. This module needs CMake 3.28, the Ninja generator or a Visual Studio one, and Clang 16 withclang-scan-depsor GCC 15, without which the option is turned off with a warning. Its interface,src/PBeFS.cppm, is written bycmake/pbefs_module_exports.pyfrom the AST of the headers.
In CMakePresets.json, the presets give the options of the compiler for the
tests and the tools. Thus, --preset gnu gives the warnings of g++ and
clang++, and --preset msvc those of MSVC with /bigobj, without which the
tester does not compile with MSVC (e.g.,
cmake --preset msvc -S PBeFS -B build). They set PBEFS_CXX_OPTIONS, which
may also be given directly. A CMake project then uses the library with
find_package(PBeFS REQUIRED)
target_link_libraries(myTarget PRIVATE PBeFS::PBeFS)adding PBeFS::OpenMP, PBeFS::MPI or PBeFS::FastFlow for the corresponding
runtime, and PBeFS::Symbolic for the symbolic searches. These are the
components of the package, each present if the library was built with its
runtime and the runtime is found again by the project that uses it. Hence,
find_package(PBeFS REQUIRED COMPONENTS OpenMP) fails without OpenMP, while
find_package(PBeFS) finds the package with no PBeFS::OpenMP. Without CMake,
pkg-config --cflags --libs pbefs gives only the flags of the library.
Furthermore, the packages of vcpkg, conda-forge, Homebrew, Debian and Ubuntu
(libpbefs-dev), Conan, Spack, Nix, the AUR, MSYS2, xmake and Meson WrapDB
install the same files from the recipes of packaging,
each on the package of ADS of its channel. The README there lists the runtimes
of each package. Without installing anything, a CMake project can also take
PBeFS at configure time, with FetchContent (CMake 3.24 or later),
include(FetchContent)
FetchContent_Declare(PBeFS
URL https://github.com/dmeoli/PBeFS/releases/download/v0.1.0/PBeFS-0.1.0.tar.gz
FIND_PACKAGE_ARGS 0.1) # an installed PBeFS, if there is one
FetchContent_MakeAvailable(PBeFS)
target_link_libraries(<target> PRIVATE PBeFS::PBeFS)or with CPM.cmake,
CPMAddPackage("gh:dmeoli/PBeFS@0.1.0")
target_link_libraries(<target> PRIVATE PBeFS::PBeFS)and as a subproject PBeFS builds neither its tests nor its examples nor its
tools. With Meson, one takes it from WrapDB by meson wrap install pbefs and
dependency('pbefs'), in C++20.
Since the searches are templates over the Domain, they are in the headers,
and the library (src) holds only what does not depend on it, i.e., the grid
maps and the measures of a search. Without CMake, the makefile of a program
that uses the library needs only to include one of the three makefiles in the
root. The first, makefile, builds the objects and exports them together with
the include directive and the list of the headers, and the second,
makefile-c, adds the external libraries of the runtimes (the threads, OpenMP
and FastFlow). The third, makefile-inc, gives instead the library already
built, which make -f makefile-lib builds and
make -f makefile-lib install PREFIX=<prefix> installs: the shared
lib/libPBeFS.so (.dylib on macOS), which the programs find at run time in
lib without LD_LIBRARY_PATH, or with PBeFSSTATIC=1 the static
lib/libPBeFS.a, the default on Windows, where a DLL is found only next to the
program or on the PATH. CC chooses the compiler (CC=g++ or
CC=clang++). For the external libraries, the places and
the switches of OpenMP are those of extlib/makefile-default-paths-linux, or
of -macos and -win with PBeFSPLATFORM=macos or win, unless they are
given on the command line or in extlib/makefile-paths, which git ignores.
They are FastFlow in FF_ROOT, ADS in ADSSDR, Boost in BOOST_ROOT, Highway
in HWY_ROOT, hwloc in HWLOC_ROOT and the OpenMP runtime of LLVM in
OMP_ROOT. The switches of OpenMP in OMP_SW and OMP_LIB are those of Apple
clang on macOS, where the g++ of Homebrew takes
OMP_SW=-fopenmp OMP_LIB=-fopenmp. In examples, test and tools a
makefile builds the corresponding programs, and in test the targets check
and check_mpi also run the tests. In the root, make, make test,
make test_mpi and make install do the same for the repository. Both CMake
and the makefiles are tested on Linux, macOS and Windows (with MSYS2, and CMake
also with MSVC), with g++ and with clang++; on Windows, FastFlow, which relies
on POSIX, and MPI are left out.
As an example, a minimal program that solves the instance 1 of Korf [7] sequentially, and then with HDA* and Abstract Zobrist hashing on 8 threads, reads
#include "PBeFS/PBeFS.h"
using namespace PBeFS_di_unipi_it;
int main( void )
{
const FifteenPuzzle d( FifteenPuzzle::parse(
"14 13 15 7 11 12 9 5 6 0 2 1 4 8 10 3" ) );
const auto s = astar( d );
ParallelOptions o;
o.threads = 8;
const AbstractZobristDistribution< FifteenPuzzle > az( d );
const auto p = HDAStar< FifteenPuzzle , decltype( az ) >( d , az , o )
.solve();
return( ( s.cost == 57 ) && ( p.cost == 57 ) ? 0 : 1 );
}The documentation is at
dmeoli.github.io/PBeFS, a site of
Sphinx with the theme of Read the
Docs (light or dark). It is made of
the sections of this README, of the pages of the theory in docs/theory (A*
with its invariants and the cost of its operations, the parallel A* searches,
branch-and-bound and its parallel schemes, with what each one guarantees), and
of the reference of the classes and of the functions that
Breathe renders from the comments of the
headers (through Doxygen). In the reference,
arranged by layer, by group of headers (the searches, the domains, the
runtimes, and so on), by header and by class, the page of each search gives its
pseudocode. To build the site locally, with Doxygen installed, one runs pip install -r docs/requirements.txt and then python3 docs/pages.py && sphinx-build -b html docs build-docs/html.
The programs in examples are, for the most part, the search problems of
chapter 3 of Russell and Norvig [13], each one with its Domain in
a header of include/PBeFS/astar (e.g., NQueens.h or Romania.h), which the
benchmark shares. 8Puzzle solves the instance of figure 3.28 of the book, or
an instance at a given distance from the goal, with the number of misplaced
tiles (h1), the Manhattan distance (h2) or the sequence score of Nilsson
[8], which is not admissible; with -t it repeats the comparison of
h1 and h2 of figure 3.29 (nodes generated and effective branching factor).
15Puzzle solves an instance of Korf, sequentially or with HDA*
(-t <threads>), RouteFinding finds a road between two cities of the map of
Romania of the book, and FindPath finds a path on a weighted grid, random or
read from a Moving AI map, and draws it. VacuumWorld is the vacuum world of
section 3.2.1 on a row of n cells, and NQueens places n queens with the
incremental formulation of the same section, checking the placement apart from
the search. The last three come from the exercises of the book.
MissionariesCannibals carries m missionaries and c cannibals over a river
with a boat of b seats (exercise 3.9), WaterJugs measures a quantity of water
with jugs (exercise 3.6(d)), and TravelingSalesman solves the traveling
salesperson problem with the minimum spanning tree heuristic (exercise 3.30),
checking the tour against the dynamic program of Held and Karp [14].
Each run with a known answer (e.g., the 26 moves of figure 3.28, the 418 km
from Arad to Bucharest and the 11 crossings of the missionaries) is also a test
of ctest, labeled example.
In tools, AStarBench runs any search, runtime and distribution of the
library, and prints a line of CSV per run with the cost, the counters, the
time, the evaluations of the heuristic (or of the edges) and the iterations.
Its domains are the following:
- the 100 instances of Korf (
data/15-puzzle/korf100.txt), the 8-puzzle and the 24-puzzle; - the grids, with unit or weighted cells;
- the boards of Burns et al. (
--domain board), with--origintelling whether the row 0 of the start and of the goal is the last line of the board, as in the files of the authors, or the first one, as in those of later generators; - multiple sequence alignment (
--domain msa), from a file or random, with another substitution matrix by--matrix, a gap penalty by--gap, and the hyperplanes by--dist HWD; - the other problems of the examples, sized by
--size(e.g., the number of queens, or of the cities of a random instance or of a file, with the Euclidean or the Manhattan distance of--metric); - the 2D navigation (
--domain nav2d); - the gridworlds of
DynamicGraph.h, or a Moving AI map whose cells--scalemultiplies, changed by--change,--flipsor--squarefor--episodesepisodes (--domain lpaworld), with a line per episode with the counters of the incremental searches, for A* and HDA* from scratch, LPA*, HD-LPA*, D* Lite and HD-D* Lite; - any domain with its edges made slow (
--edges); - the permutation puzzles, the Towers of Hanoi and the road graphs (e.g.,
--domain hanoi --file data/hanoi/toh20.txt --pdb 8+12 --algo pida --threads 8 --table 6, or--domain rubik --file data/rubik/korf10.txt --pdb korf --cache pdb).
Also, the greedy and the other searches of the section on them have their
options there, e.g., --algo gbfs --eval lazy --queues best:0,pref:0 --boost 1000 for the first phase of LAMA, or --algo pgbfs --rule obat --sge 1.
BranchAndBoundBench does the same for each scheme of the branch-and-bound, on
random 0-1 knapsacks (include/PBeFS/bnb/Knapsack.h), on the traveling
salesperson problem (the tree of the partial tours, bounded by the minimum
spanning tree) and on the domains of the layer (the trees of UTS, the DIMACS
graphs in data/dimacs, the instances of QAPLIB in data/qaplib, those of
Taillard and random subgraph problems). AStarBenchMPI and
BranchAndBoundBenchMPI are their MPI counterparts, to be started with
mpirun. If the environment variable PBEFS_PIN is set, the i-th worker is
pinned to the i-th CPU of the affinity mask of the process (as given, e.g., by
numactl --physcpubind or taskset). On machines with several sockets this is
usually needed for the timings to be repeatable.
Also, tools/bench/structures.sh runs sequential A*, and HDA* and SPA* on 1 to
16 threads, of four builds, one per set of data structures, on instances of
growing size (the 15-puzzle in bands of the instances of Korf, and random grids
of growing side). Then tools/bench/structures.py makes the tables of the
comparison. In both campaigns (campaign.sh and structures.sh) each run is a
separate process, pinned with its workers to given cores of one NUMA node and
with its memory on that node. Each run that the tables compare is made twice,
in two processes. Hence, the gap between the two (the A/A noise, which
tables.py and structures.py report with each table) measures how far two
timings can differ because of the machine only. A campaign holds a lock on each
of its cores, and a second one started on the same cores waits for it;
tools/bench/launch.sh starts a campaign detached, saving its PID. The timings
are meant to be taken on a machine at rest. A virtual machine whose memory is
given and taken back while it runs (such as a VM of Hyper-V with dynamic
memory, which may stay at about 2.4 GB for hours and swap on any large
instance) gives timings that are not comparable with each other, and is not to
be used for them.
The directory data holds the instances of the benchmark, each set with its
origin and license in the header of its files or in a file NOTICE beside
them. Besides the 100 instances of Korf, it has three of them (korf_1,
korf_12, korf_55) in the format of Burns et al., which gives the cell of
each tile. From the code of HDA* of Jinnai and Fukunaga [5] and its
benchmark set come the 50 instances of the 24-puzzle of that code
(instances50.txt) and the 100 of the set (instances100.txt, eight of which
are also in fromkorf8.txt). That set also gives four boards of Burns et al.
and one of its random boards of data/grid). From it come also ten of its instances of 40
random cities of the unit square (data/tsp), of which --size takes the
first data/msa holds the sequences of BAliBASE 3.0 [45] of
the same set and of the code of HDA*, and the 15 instances of BAliBASE 3.0 of
the experiments of [43] and of [5]. However, the larger
boards of that set (grid-gen/grid_gen.cc, which draws each
cell free with the given probability and the start and the goal in the first
and in the last third of each side, and the boards it writes are read as they
are by AStarBench --domain board --origin top.
We are concerned here with how each parallel search of the library scales with
the number of cores on one and the same problem, for each problem of the
examples. These runs are those of table F of tools/bench/campaign.sh, and the
tables below are written from its output by tools/bench/tables.py. Each
problem is taken at a size where the sequential search takes about 1 to 10 s on
one core. For the 15-puzzle these are the instances 1, 10 and 14 of Korf, and
for pathfinding three random grids of
A search is run with the options that its Domain supports. HDA* takes each
work distribution that the Domain gives (Z, AZ, A, P, H and R in the notation
of Jinnai and Fukunaga; the abstractions of AZ and A are given only by the
sliding-tile puzzles, the grids and the vacuum world) on the threads, OpenMP
and FastFlow. SPA* and SafePBNF (the latter where the Domain has nblocks) run
on the threads and on OpenMP. The farm of FastFlow has a master and one worker
less than the cores, and HDA* over MPI has one process per core, with each
distribution but R (which needs a generator per worker). In turn, the
branch-and-bound runs each of its schemes on each runtime, its farm and its
search over MPI. PASE pays only when the expansions are slow (cf. the table of
slow expansions); thus, it is run with HDA, SPA* and the farm on smaller
instances whose expansions carry the artificial work of SlowDomain. Each run
is made twice, as in any campaign (cf. the section above), and the cost it
finds is checked against the one of the sequential search. A difference is
written to F-mismatch.csv and marked in the tables.
The timings were taken on MACHINE (CPU, memory, compiler and flags), on the
cores CORES of the NUMA node NODE, with the memory bound to that node, the
workers pinned one per core (PBEFS_PIN) and no other job on the machine. Here
the time of a run is the wall-clock time of solve(), i.e., from the creation
of the workers to the solution, the tracing of its path included. It does not
include the start of the process, the reading or the generation of the
instance, the construction of the Domain and of the tables of the
distribution, nor the release of the memory of the search. In each table, a row
is a search (the algorithm, the distribution of HDA* in brackets and the
runtime, i.e., thread, openmp, fastflow or mpi), and a column is the number of
cores given to it. A cell is the median over the instances of the speedup over
the sequential search on 1 core, i.e., A* with the OPEN list on buckets or the
branch-and-bound with the best-first selection, the time of a run being the
median of its two repetitions; the smallest and the largest speedup over the
instances follow in parentheses. A cell is empty when some run did not solve
its instance (e.g., HDA*[R] beyond its limit of nodes), and ! marks a cell
with a run whose cost differs from the sequential one. The A/A noise under each
table is the median and the largest relative gap between the two repetitions of
a run.
RESULTS: the tables of tables.py (section "Scaling on the problems of the
examples"), one per problem, followed by the comment table by table, i.e.,
which search scales best on which problem and by how much (as a range), where
the ranking changes with the number of cores, and the exceptions.
The tester test/test.cpp checks each search against references that do not
come from the library, i.e., a breadth-first search of the whole state space of
the 8-puzzle, the optimal costs of the 100 instances of Korf [7],
Dijkstra's algorithm on random grids and on the boards, the dynamic program on
the whole lattice of an alignment, the one of Held and Karp on the cities, and
the distances on the map of Romania. Also, the Pareto fronts of small graphs
and grids are checked against the enumeration of their simple paths
(test/moa.cpp), and the symbolic searches against the explicit searches of
the library on the same instances. For each solution it checks both the cost
and the path, which must start at the initial state, end at a goal and be made
of edges of the Domain whose costs add up to the one reported. Its cases (the
sequential A*, then each parallel search on each runtime with 1 to 8 workers,
and HDA* over MPI with 1, 2 and 4 processes) are listed in test/tests.txt,
which both CMake and the makefiles read. Furthermore, the case registry
checks that the list and the cases of the tester are the same. ctest runs
them together with the examples of known answer.
The CI runs them on the systems and with the compilers of the section on
building, with CMake and with the makefiles. It runs them once more under
AddressSanitizer with UndefinedBehaviorSanitizer and under ThreadSanitizer,
which checks the synchronization of the searches in shared memory. With each of
the other sets of data structures of A* it runs them in Release and under
AddressSanitizer with UndefinedBehaviorSanitizer (with the preconditions of ADS
checked for its set), and on the three systems it builds packaging/test
against the installed package. The line coverage of the tests is on Coveralls.
If PBeFS is useful in a publication, one can cite it as
@software{PBeFS,
author = {Meoli, Donato},
title = {{PBeFS}: Parallel Best-First Search},
url = {https://github.com/dmeoli/PBeFS},
year = {2026}
}The code follows the style of the repository
code-style, i.e., its .clang-format
with what its format.py adds to it (e.g., return( x ); and a space before
each comma), which clang-format has no option for, in its variant spaces,
which .code-format chooses: the indentation and the continuations by spaces
only, and a space after a cast (( void ) x). On a pull request, the
continuous integration checks the lines that the request changes, and posts as
suggestions on them the changes that put them in the style. With that
repository cloned in ~/code-style,
~/code-style/code-format --since origin/main FILE...does the same before a commit (clang-format 22 is needed, e.g.,
pip install clang-format==22.1.5).
This software is released under the GNU Lesser General Public License version 3.0 (see the file LICENSE). Its sequential version was first written for the course of Knowledge Engineering of prof. Floriana Esposito at the University of Bari, and the parallel ones for the course of Parallel and Distributed Systems of prof. Marco Danelutto and prof. Massimo Torquati at the University of Pisa.
[1] A. Fukunaga, A. Botea, Y. Jinnai and A. Kishimoto, A Survey of Parallel A*, arXiv:1708.05296, 2017.
[2] A. Kishimoto, A. Fukunaga and A. Botea, Evaluation of a simple, scalable, parallel best-first search strategy, Artificial Intelligence 195, 222-248, 2013.
[3] E. Burns, S. Lemons, W. Ruml and R. Zhou, Best-first heuristic search for multicore machines, Journal of Artificial Intelligence Research 39, 689-743, 2010.
[4] E. Burns, M. Hatem, M. J. Leighton and W. Ruml, Implementing fast heuristic search code, Proceedings of the Symposium on Combinatorial Search (SoCS) 3, 25-32, 2012.
[5] Y. Jinnai and A. Fukunaga, On hash-based work distribution methods for parallel best-first search, Journal of Artificial Intelligence Research 60, 491-548, 2017.
[6] M. Phillips, M. Likhachev and S. Koenig, PA*SE: Parallel A* for slow expansions, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 24, 208-216, 2014.
[7] R. E. Korf, Depth-first iterative-deepening: an optimal admissible tree search, Artificial Intelligence 27, 97-109, 1985.
[8] N. J. Nilsson, Principles of Artificial Intelligence, Tioga, 1980; reprinted by Springer, 1982.
[9] P. E. Hart, N. J. Nilsson and B. Raphael, A formal basis for the heuristic determination of minimum cost paths, IEEE Transactions on Systems Science and Cybernetics 4(2), 100-107, 1968.
[10] S. Edelkamp and S. Schroedl, Heuristic Search: Theory and Applications, Morgan Kaufmann, 2012.
[11] F. Mattern, Algorithms for distributed termination detection, Distributed Computing 2(3), 161-175, 1987.
[12] M. Aldinucci, M. Danelutto, P. Kilpatrick and M. Torquati, FastFlow: high-level and efficient streaming on multicore, in Programming Multi-core and Many-core Computing Systems, Wiley, 261-280, 2017.
[13] S. Russell and P. Norvig, Artificial Intelligence: A Modern Approach, 3rd edition, Prentice Hall, 2010.
[14] M. Held and R. M. Karp, A dynamic programming approach to sequencing problems, Journal of the Society for Industrial and Applied Mathematics 10(1), 196-210, 1962.
[15] N. R. Sturtevant, Benchmarks for grid-based pathfinding, IEEE Transactions on Computational Intelligence and AI in Games 4(2), 144-148, 2012.
[16] B. Gendron and T. G. Crainic, Parallel branch-and-bound algorithms: survey and synthesis, Operations Research 42(6), 1042-1066, 1994.
[17] D. S. Nau, V. Kumar and L. Kanal, General branch and bound, and its relation to A* and AO*, Artificial Intelligence 23(1), 29-58, 1984.
[18] Y. Shinano, S. Heinz, S. Vigerske and M. Winkler, FiberSCIP: a shared memory parallelization of SCIP, INFORMS Journal on Computing 30(1), 11-30, 2018.
[19] M. Fischetti, M. Monaci and D. Salvagnin, Self-splitting of workload in parallel computation, Integration of AI and OR Techniques in Constraint Programming (CPAIOR 2014), Lecture Notes in Computer Science 8451, 394-404, 2014.
[20] R. D. Blumofe and C. E. Leiserson, Scheduling multithreaded computations by work stealing, Journal of the ACM 46(5), 720-748, 1999.
[21] J. C. Culberson and J. Schaeffer, Pattern databases, Computational Intelligence 14(3), 318-334, 1998.
[22] R. E. Korf and A. Felner, Disjoint pattern database heuristics, Artificial Intelligence 134(1-2), 9-22, 2002.
[23] A. Felner, R. E. Korf and S. Hanan, Additive pattern database heuristics, Journal of Artificial Intelligence Research 22, 279-318, 2004.
[24] A. Felner, R. E. Korf, R. Meshulam and R. C. Holte, Compressed pattern databases, Journal of Artificial Intelligence Research 30, 213-247, 2007.
[25] T. Breyer and R. E. Korf, 1.6-bit pattern databases, Proceedings of the AAAI Conference on Artificial Intelligence 24, 39-44, 2010.
[26] R. E. Korf, Minimizing disk I/O in two-bit breadth-first search, Proceedings of the AAAI Conference on Artificial Intelligence 23, 317-324, 2008.
[27] R. Clausecker and A. Reinefeld, Zero-aware pattern databases with 1-bit compression for sliding tile puzzles, Proceedings of the Symposium on Combinatorial Search (SoCS) 10, 35-43, 2019.
[28] F. Yang, J. Culberson, R. Holte, U. Zahavi and A. Felner, A general theory of additive state space abstractions, Journal of Artificial Intelligence Research 32, 631-662, 2008.
[29] U. Zahavi, A. Felner, R. C. Holte and J. Schaeffer, Duality in permutation state spaces and the dual search algorithm, Artificial Intelligence 172(4-5), 514-540, 2008.
[30] R. C. Holte, A. Felner, J. Newton, R. Meshulam and D. Furcy, Maximizing over multiple pattern databases speeds up heuristic search, Artificial Intelligence 170(16-17), 1123-1136, 2006.
[31] A. Felner, U. Zahavi, R. Holte, J. Schaeffer, N. Sturtevant and Z. Zhang, Inconsistent heuristics in theory and practice, Artificial Intelligence 175(9-10), 1570-1603, 2011.
[32] T. Nagahashi and D. Takahashi, Construction of large zero-aware pattern databases for sliding puzzles on distributed memory machines, Computational Science and Its Applications (ICCSA 2025), Lecture Notes in Computer Science, 272-284, 2025.
[33] M. Samadi, M. Siabani, A. Felner and R. Holte, Compressing pattern databases with learning, Proceedings of the European Conference on Artificial Intelligence (ECAI 2008), Frontiers in Artificial Intelligence and Applications 178, 2008.
[34] W. Myrvold and F. Ruskey, Ranking and unranking permutations in linear time, Information Processing Letters 79(6), 281-284, 2001.
[35] E. W. Dijkstra and C. S. Scholten, Termination detection for diffusing computations, Information Processing Letters 11(1), 1-4, 1980.
[36] D. Hendler and N. Shavit, Non-blocking steal-half work queues, Proceedings of the ACM Symposium on Principles of Distributed Computing (PODC), 280-289, 2002.
[37] H. Rihani, P. Sanders and R. Dementiev, MultiQueues: simple relaxed concurrent priority queues, Proceedings of the ACM Symposium on Parallelism in Algorithms and Architectures (SPAA), 80-82, 2015.
[38] A. Postnikova, N. Koval, G. Nadiradze and D. Alistarh, Multi-queues can be state-of-the-art priority schedulers, Proceedings of the ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (PPoPP), 353-367, 2022.
[39] S. Edelkamp, S. Jabbar and S. Schrödl, External A*, KI 2004: Advances in Artificial Intelligence, Lecture Notes in Computer Science 3238, 226-240, 2004.
[40] R. E. Korf, Linear-time disk-based implicit graph search, Journal of the ACM 55(6), 26:1-26:40, 2008.
[41] T. Ikeda and H. Imai, Enhanced A* algorithms for multiple alignments: optimal alignments for several sequences and k-opt approximate alignments for large cases, Theoretical Computer Science 210(2), 341-374, 1999.
[42] T. Yoshizumi, T. Miura and T. Ishida, A* with partial expansion for large branching factor problems, Proceedings of the AAAI Conference on Artificial Intelligence 17, 923-929, 2000.
[43] Y. Kobayashi, A. Kishimoto and O. Watanabe, Evaluations of Hash Distributed A* in optimal sequence alignment, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 22, 584-589, 2011.
[44] M. O. Dayhoff, R. M. Schwartz and B. C. Orcutt, A model of evolutionary change in proteins, Atlas of Protein Sequence and Structure 5, supplement 3, 345-352, 1978.
[45] J. D. Thompson, P. Koehl, R. Ripp and O. Poch, BAliBASE 3.0: latest developments of the multiple sequence alignment benchmark, Proteins 61(1), 127-136, 2005.
[46] I. Pohl, Heuristic search viewed as path finding in a graph, Artificial Intelligence 1(3-4), 193-204, 1970.
[47] E. A. Hansen and R. Zhou, Anytime heuristic search, Journal of Artificial Intelligence Research 28, 267-297, 2007.
[48] M. Likhachev, G. Gordon and S. Thrun, ARA*: Anytime A* with provable bounds on sub-optimality, Advances in Neural Information Processing Systems (NIPS) 16, 767-774, 2003.
[49] J. T. Thayer and W. Ruml, Faster than weighted A*: an optimistic approach to bounded suboptimal search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 18, 355-362, 2008.
[50] J. Chen, N. R. Sturtevant, W. Doyle and W. Ruml, Revisiting suboptimal search, Proceedings of the Symposium on Combinatorial Search (SoCS) 10, 18-25, 2019.
[51] J. Pearl and J. H. Kim, Studies in semi-admissible heuristics, IEEE Transactions on Pattern Analysis and Machine Intelligence 4(4), 392-399, 1982.
[52] J. T. Thayer and W. Ruml, Bounded suboptimal search: a direct approach using inadmissible estimates, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 22, 674-679, 2011.
[53] D. Gilon, A. Felner and R. Stern, Dynamic potential search: a new bounded suboptimal search algorithm, Proceedings of the Symposium on Combinatorial Search (SoCS) 7, 36-44, 2016.
[54] S. Koenig, M. Likhachev and D. Furcy, Lifelong Planning A*, Artificial Intelligence 155(1-2), 93-146, 2004.
[55] A. Reinefeld and V. Schnecke, AIDA*: asynchronous parallel IDA*, Proceedings of the Biennial Conference of the Canadian Society for Computational Studies of Intelligence (AI 94), 295-302, 1994.
[56] Z. Bu and R. E. Korf, A*+IDA*: a simple hybrid search algorithm, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 28, 1206-1212, 2019.
[57] L. Siag, S. S. Shperberg, A. Felner and N. R. Sturtevant, On parallel external-memory bidirectional search, Proceedings of the European Conference on Artificial Intelligence (ECAI 2024), Frontiers in Artificial Intelligence and Applications 392, 4190-4197, 2024.
[58] V. N. Rao and V. Kumar, Parallel depth first search. Part I. Implementation, International Journal of Parallel Programming 16(6), 479-499, 1987.
[59] R. E. Korf, Finding optimal solutions to Rubik's Cube using pattern databases, Proceedings of the AAAI Conference on Artificial Intelligence 14, 700-705, 1997.
[60] M. Helmert, Landmark heuristics for the pancake problem, Proceedings of the Symposium on Combinatorial Search (SoCS) 1, 109-110, 2010.
[61] R. C. Holte, A. Felner, G. Sharon and N. R. Sturtevant, Bidirectional search that is guaranteed to meet in the middle, Proceedings of the AAAI Conference on Artificial Intelligence 30, 2016.
[62] B. Bonet, Efficient algorithms to rank and unrank permutations in lexicographic order, AAAI Workshop on Search in Artificial Intelligence and Robotics, Technical Report WS-08-10, 18-23, 2008.
[63] H. Dweighter, Problem E2569, in Elementary Problems: E2564-E2569, The American Mathematical Monthly 82(10), 1009, 1975.
[64] C. Demetrescu, A. V. Goldberg and D. S. Johnson (editors), The Shortest Path Problem: Ninth DIMACS Implementation Challenge, DIMACS Series in Discrete Mathematics and Theoretical Computer Science 74, AMS, 2009.
[65] R. B. Dial, Algorithm 360: shortest-path forest with topological ordering, Communications of the ACM 12(11), 632-633, 1969.
[66] R. L. Graham, Bounds on multiprocessing timing anomalies, SIAM Journal on Applied Mathematics 17(2), 416-429, 1969.
[67] B. Archibald, P. Maier, R. Stewart and P. Trinder, Replicable parallel branch and bound search, Journal of Parallel and Distributed Computing 113, 92-114, 2018.
[68] B. Archibald, P. Maier, R. Stewart and P. Trinder, YewPar: skeletons for exact combinatorial search, Proceedings of the ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (PPoPP) 25, 292-307, 2020.
[69] Y. Shinano, T. Achterberg, T. Berthold, S. Heinz, T. Koch and M. Winkler, Solving open MIP instances with ParaSCIP on supercomputers using up to 80,000 cores, Proceedings of the IEEE International Parallel and Distributed Processing Symposium (IPDPS) 30, 770-779, 2016.
[70] Y. Xu, T. K. Ralphs, L. Ladányi and M. J. Saltzman, ALPS: a framework for implementing parallel tree search algorithms, The Next Wave in Computing, Optimization, and Decision Technologies, 319-334, Springer, 2005.
[71] M. Mezmaz, R. Leroy, N. Melab and D. Tuyttens, A multi-core parallel branch-and-bound algorithm using factorial number system, Proceedings of the IEEE International Parallel and Distributed Processing Symposium (IPDPS) 28, 1203-1212, 2014.
[72] J. Gmys, R. Leroy, M. Mezmaz, N. Melab and D. Tuyttens, Work stealing with private integer-vector-matrix data structure for multi-core branch-and-bound algorithms, Concurrency and Computation: Practice and Experience 28(18), 4463-4484, 2016.
[73] S. Olivier, J. Huan, J. Liu, J. Prins, J. Dinan, P. Sadayappan and C.-W. Tseng, UTS: an unbalanced tree search benchmark, Languages and Compilers for Parallel Computing (LCPC) 19, Lecture Notes in Computer Science 4382, 235-250, 2007.
[74] E. Tomita and T. Kameda, An efficient branch-and-bound algorithm for finding a maximum clique with computational experiments, Journal of Global Optimization 37(1), 95-111, 2007.
[75] P. San Segundo, D. Rodríguez-Losada and A. Jiménez, An exact bit-parallel algorithm for the maximum clique problem, Computers & Operations Research 38(2), 571-581, 2011.
[76] C. McCreesh, P. Prosser and J. Trimble, A partitioning algorithm for maximum common subgraph problems, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 26, 712-719, 2017.
[77] P. C. Gilmore, Optimal and suboptimal algorithms for the quadratic assignment problem, Journal of the Society for Industrial and Applied Mathematics 10(2), 305-313, 1962.
[78] R. E. Burkard, S. E. Karisch and F. Rendl, QAPLIB - a quadratic assignment problem library, Journal of Global Optimization 10(4), 391-403, 1997.
[79] B. J. Lageweg, J. K. Lenstra and A. H. G. Rinnooy Kan, A general bounding scheme for the permutation flow-shop problem, Operations Research 26(1), 53-67, 1978.
[80] E. Taillard, Benchmarks for basic scheduling problems, European Journal of Operational Research 64(2), 278-285, 1993.
[81] R. C. Holte, A. Felner, G. Sharon, N. R. Sturtevant and J. Chen, MM: A bidirectional search algorithm that is guaranteed to meet in the middle, Artificial Intelligence 252, 232-266, 2017.
[82] G. Sharon, R. C. Holte, A. Felner and N. R. Sturtevant, Extended abstract: an improved priority function for bidirectional heuristic search, Proceedings of the Symposium on Combinatorial Search (SoCS) 7, 139-140, 2016.
[83] E. Shaham, A. Felner, J. Chen and N. R. Sturtevant, The minimal set of states that must be expanded in a front-to-end bidirectional search, Proceedings of the Symposium on Combinatorial Search (SoCS) 8, 82-90, 2017.
[84] J. Eckerle, J. Chen, N. R. Sturtevant, S. Zilles and R. C. Holte, Sufficient conditions for node expansion in bidirectional heuristic search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 27, 79-87, 2017.
[85] J. Chen, R. C. Holte, S. Zilles and N. R. Sturtevant, Front-to-end bidirectional heuristic search with near-optimal node expansions, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), 489-495, 2017.
[86] S. S. Shperberg, A. Felner, N. R. Sturtevant, S. E. Shimony and A. Hayoun, Enriching non-parametric bidirectional search algorithms, Proceedings of the AAAI Conference on Artificial Intelligence 33, 2379-2386, 2019.
[87] M. Barley, P. Riddle, C. Linares López, S. Dobson and I. Pohl, GBFHS: A generalized breadth-first heuristic search algorithm, Proceedings of the Symposium on Combinatorial Search (SoCS) 9, 28-36, 2018.
[88] S. K. Sadhukhan, Bidirectional heuristic search based on error estimate, CSI Journal of Computing 2(1-2), S1, 2013.
[89] V. Alcázar, P. J. Riddle and M. Barley, A unifying view on individual bounds and heuristic inaccuracies in bidirectional search, Proceedings of the AAAI Conference on Artificial Intelligence 34, 2327-2334, 2020.
[90] J. B. H. Kwa, BS*: An admissible bidirectional staged heuristic search algorithm, Artificial Intelligence 38(1), 95-109, 1989.
[91] I. Pohl, Bi-directional search, Machine Intelligence 6, 127-140, 1971.
[92] W. Pijls and H. Post, A new bidirectional search algorithm with shortened postprocessing, European Journal of Operational Research 198(2), 363-369, 2009.
[93] L. H. O. Rios and L. Chaimowicz, PNBA*: A parallel bidirectional heuristic search algorithm, Proceedings of the Encontro Nacional de Inteligência Artificial (ENIA) 8, 2011.
[94] N. R. Sturtevant and J. Chen, External memory bidirectional search, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), 676-682, 2016.
[95] S. Lin and A. Fukunaga, Revisiting immediate duplicate detection in external memory search, Proceedings of the AAAI Conference on Artificial Intelligence 32, 2018.
[96] J. E. Doran and D. Michie, Experiments with the Graph Traverser program, Proceedings of the Royal Society A 294, 235-259, 1966.
[97] S. Richter and M. Helmert, Preferred operators and deferred evaluation in satisficing planning, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 19, 273-280, 2009.
[98] G. Röger and M. Helmert, The more, the merrier: combining heuristic estimators for satisficing planning, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 20, 246-249, 2010.
[99] F. Xie, M. Müller, R. Holte and T. Imai, Type-based exploration with multiple search queues for satisficing planning, Proceedings of the AAAI Conference on Artificial Intelligence 28, 2014.
[100] R. A. Valenzano, N. R. Sturtevant, J. Schaeffer and F. Xie, A comparison of knowledge-based GBFS enhancements and knowledge-free exploration, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 24, 375-379, 2014.
[101] J. Hoffmann and B. Nebel, The FF planning system: fast plan generation through heuristic search, Journal of Artificial Intelligence Research 14, 253-302, 2001.
[102] S. Richter and M. Westphal, The LAMA planner: guiding cost-based anytime planning with landmarks, Journal of Artificial Intelligence Research 39, 127-177, 2010.
[103] S. Richter, J. T. Thayer and W. Ruml, The joy of forgetting: faster anytime search via restarting, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 20, 137-144, 2010.
[104] N. Lipovetzky and H. Geffner, Width and serialization of classical planning problems, Proceedings of the European Conference on Artificial Intelligence (ECAI 2012), Frontiers in Artificial Intelligence and Applications 242, 540-545, 2012.
[105] N. Lipovetzky and H. Geffner, Best-first width search: exploration and exploitation in classical planning, Proceedings of the AAAI Conference on Artificial Intelligence 31, 2017.
[106] V. Vidal, L. Bordeaux and Y. Hamadi, Adaptive K-parallel best-first search: a simple but efficient algorithm for multi-core domain-independent planning, Proceedings of the Symposium on Combinatorial Search (SoCS) 1, 100-107, 2010.
[107] R. Kuroiwa and A. Fukunaga, On the pathological search behavior of distributed greedy best-first search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 29, 255-263, 2019.
[108] R. Kuroiwa and A. Fukunaga, Analyzing and avoiding pathological behavior in parallel best-first search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 30, 175-183, 2020.
[109] T. Shimoda and A. Fukunaga, Improved exploration of the bench transition system in parallel greedy best first search, Proceedings of the Symposium on Combinatorial Search (SoCS) 16, 74-82, 2023.
[110] T. Shimoda and A. Fukunaga, Parallel greedy best-first search with a bound on expansions relative to sequential search, Proceedings of the AAAI Conference on Artificial Intelligence 39, 26668-26677, 2025.
[111] T. Shimoda and A. Fukunaga, Decoupling generation and evaluation for parallel greedy best-first search, arXiv:2408.05682, 2024.
[112] M. Heusner, T. Keller and M. Helmert, Understanding the search behaviour of greedy best-first search, Proceedings of the Symposium on Combinatorial Search (SoCS) 8, 47-55, 2017.
[113] A. Felner, M. Goldenberg, G. Sharon, R. Stern, T. Beja, N. R. Sturtevant, J. Schaeffer and R. C. Holte, Partial-expansion A* with selective node generation, Proceedings of the AAAI Conference on Artificial Intelligence 26, 471-477, 2012.
[114] M. Goldenberg, A. Felner, R. Stern, G. Sharon, N. Sturtevant, R. C. Holte and J. Schaeffer, Enhanced partial expansion A*, Journal of Artificial Intelligence Research 50, 141-187, 2014.
[115] Y. Björnsson, M. Enzenberger, R. C. Holte and J. Schaeffer, Fringe search: beating A* at pathfinding on game maps, Proceedings of the IEEE Symposium on Computational Intelligence and Games (CIG 2005), 125-132, 2005.
[116] R. E. Korf, Linear-space best-first search, Artificial Intelligence 62(1), 41-78, 1993.
[117] R. Zhou and E. A. Hansen, Beam-stack search: integrating backtracking with beam search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 15, 90-98, 2005.
[118] R. E. Korf, Real-time heuristic search, Artificial Intelligence 42(2-3), 189-211, 1990.
[119] S. Koenig and X. Sun, Comparing real-time and incremental heuristic search for real-time situated agents, Autonomous Agents and Multi-Agent Systems 18(3), 313-341, 2009.
[120] A. Botea, M. Müller and J. Schaeffer, Near optimal hierarchical path-finding, Journal of Game Development 1(1), 7-28, 2004.
[121] S. Mukherjee, S. Aine and M. Likhachev, ePA*SE: Edge-based parallel A* for slow evaluations, Proceedings of the International Symposium on Combinatorial Search (SoCS) 15, 136-144, 2022.
[122] S. Mukherjee and M. Likhachev, GePA*SE: Generalized edge-based parallel A* for slow evaluations, Proceedings of the International Symposium on Combinatorial Search (SoCS) 16, 153-157, 2023.
[123] H. Yang, S. Mukherjee and M. Likhachev, A-ePA*SE: Anytime edge-based parallel A* for slow evaluations, Proceedings of the International Symposium on Combinatorial Search (SoCS) 16, 163-167, 2023.
[124] S. Mukherjee, S. Aine and M. Likhachev, MPLP: Massively parallelized lazy planning, IEEE Robotics and Automation Letters 7(3), 6067-6074, 2022.
[125] C. M. Dellin and S. S. Srinivasa, A unifying formalism for shortest path problems with expensive edge evaluations via lazy best-first search over paths with edge selectors, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 26, 459-467, 2016.
[126] F. Agostinelli, S. McAleer, A. Shmakov and P. Baldi, Solving the Rubik's cube with deep reinforcement learning and search, Nature Machine Intelligence 1, 356-363, 2019.
[127] M. Evett, J. Hendler, A. Mahanti and D. Nau, PRA*: massively parallel heuristic search, Journal of Parallel and Distributed Computing 25(2), 133-143, 1995.
[128] R. Zhou and E. A. Hansen, Parallel structured duplicate detection, Proceedings of the AAAI Conference on Artificial Intelligence 22, 1217-1223, 2007.
[129] R. Zhou and E. A. Hansen, Breadth-first heuristic search, Artificial Intelligence 170(4-5), 385-408, 2006.
[130] A. Felner, S. Kraus and R. E. Korf, KBFS: K-best-first search, Annals of Mathematics and Artificial Intelligence 39(1-2), 19-39, 2003.
[131] J. W. Romein, A. Plaat, H. E. Bal and J. Schaeffer, Transposition table driven work scheduling in distributed search, Proceedings of the AAAI Conference on Artificial Intelligence 16, 725-731, 1999.
[132] U. K. Sarkar, P. P. Chakrabarti, S. Ghose and S. C. De Sarkar, Reducing reexpansions in iterative-deepening search by controlling cutoff bounds, Artificial Intelligence 50(2), 207-221, 1991.
[133] C. Bäckström and B. Nebel, Complexity results for SAS+ planning, Computational Intelligence 11(4), 625-655, 1995.
[134] M. Helmert, The Fast Downward planning system, Journal of Artificial Intelligence Research 26, 191-246, 2006.
[135] B. Bonet and H. Geffner, Planning as heuristic search, Artificial Intelligence 129(1-2), 5-33, 2001.
[136] M. Helmert and C. Domshlak, Landmarks, critical paths and abstractions: what's the difference anyway?, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 19, 162-169, 2009.
[137] S. Edelkamp, Planning with pattern databases, Proceedings of the European Conference on Planning (ECP), 13-24, 2001.
[138] Y. Jinnai and A. Fukunaga, Automated creation of efficient work distribution functions for parallel best-first search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 26, 184-192, 2016.
[139] R. Zhou and E. A. Hansen, Domain-independent structured duplicate detection, Proceedings of the AAAI Conference on Artificial Intelligence 21, 1082-1087, 2006.
[140] M. Helmert, P. Haslum, J. Hoffmann and R. Nissim, Merge-and-shrink abstraction: a method for generating lower bounds in factored state spaces, Journal of the ACM 61(3), 16:1-16:63, 2014.
[141] Y. Jinnai and A. Fukunaga, Abstract Zobrist hashing: an efficient work distribution method for parallel best-first search, Proceedings of the AAAI Conference on Artificial Intelligence 30, 717-723, 2016.
[142] C. M. Fiduccia and R. M. Mattheyses, A linear-time heuristic for improving network partitions, Proceedings of the 19th Design Automation Conference, 175-181, 1982.
[143] S. Koenig and M. Likhachev, D* Lite, Proceedings of the AAAI Conference on Artificial Intelligence (AAAI) 18, 476-483, 2002; and Fast replanning for navigation in unknown terrain, IEEE Transactions on Robotics 21(3), 354-363, 2005.
[144] G. Ramalingam and T. Reps, An incremental algorithm for a generalization of the shortest-path problem, Journal of Algorithms 21(2), 267-305, 1996.
[145] U. Meyer and P. Sanders, Δ-stepping: a parallelizable shortest path algorithm, Journal of Algorithms 49(1), 114-152, 2003.
[146] A. H. Land and A. G. Doig, An automatic method of solving discrete programming problems, Econometrica 28(3), 497-520, 1960.
[147] G. B. Dantzig, Discrete-variable extremum problems, Operations Research 5(2), 266-288, 1957.
[148] D. Pisinger, Where are the hard knapsack problems?, Computers & Operations Research 32(9), 2271-2284, 2005.
[149] T.-H. Lai and S. Sahni, Anomalies in parallel branch-and-bound algorithms, Communications of the ACM 27(6), 594-602, 1984.
[150] W. W. Johnson and W. E. Story, Notes on the "15" Puzzle, American Journal of Mathematics 2(4), 397-404, 1879.
[151] D. Lemire, Fast random integer generation in an interval, ACM Transactions on Modeling and Computer Simulation 29(1), 1-12, 2019.
[152] A. L. Zobrist, A new hashing method with application for game playing, Technical Report 88, Computer Sciences Department, University of Wisconsin, 1970; reprinted in ICGA Journal 13(2), 69-73, 1990.
[153] V. Kumar, K. Ramesh and V. N. Rao, Parallel best-first search of state-space graphs: a summary of results, Proceedings of the AAAI Conference on Artificial Intelligence 7, 122-127, 1988.
[154] R. M. Karp and Y. Zhang, Randomized parallel algorithms for backtrack search and branch-and-bound computation, Journal of the ACM 40(3), 765-789, 1993.
[155] K. B. Irani and Y. Shih, Parallel A* and AO* algorithms: an optimality criterion and performance evaluation, Proceedings of the International Conference on Parallel Processing (ICPP), 274-277, 1986.
[156] R. E. Korf and P. Schultze, Large-scale parallel breadth-first search, Proceedings of the AAAI Conference on Artificial Intelligence 20, 1380-1385, 2005.
[157] D. E. Knuth, The Art of Computer Programming, Volume 3: Sorting and Searching, 2nd edition, Addison-Wesley, 1998.
[158] D. B. Johnson, Priority queues with update and finding minimum spanning trees, Information Processing Letters 4(3), 53-57, 1975.
[159] D. R. Hanson, Fast allocation and deallocation of memory based on object lifetimes, Software: Practice and Experience 20(1), 5-12, 1990.
[160] R. K. Ahuja, K. Mehlhorn, J. B. Orlin and R. E. Tarjan, Faster algorithms for the shortest path problem, Journal of the ACM 37(2), 213-223, 1990.
[161] A. Reinefeld and T. A. Marsland, Enhanced iterative-deepening search, IEEE Transactions on Pattern Analysis and Machine Intelligence 16(7), 701-710, 1994.
[162] T. Miura and T. Ishida, Stochastic node caching for memory-bounded search, Systems and Computers in Japan 30(2), 57-65, 1999.
[163] R. E. Bryant, Graph-based algorithms for Boolean function manipulation, IEEE Transactions on Computers C-35(8), 677-691, 1986.
[164] Y. Jinnai, Introduction to heuristic search (in Japanese), lecture notes, 175 pages, version of 9 December 2023, available from https://jinnaiyuu.github.io/.
[165] N. R. Sturtevant, HOG2: Hierarchical Open Graph, software, Moving AI Lab, University of Denver.
[166] E. L. Lawler, The quadratic assignment problem, Management Science 9(4), 586-599, 1963.
[167] A. Felner, U. Zahavi, J. Schaeffer and R. C. Holte, Dual lookups in pattern databases, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 19, 103-108, 2005.
[168] R. Nissim, J. Hoffmann and M. Helmert, Computing perfect heuristics in polynomial time: on bisimulation and merge-and-shrink abstraction in optimal planning, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 22, 1983-1990, 2011.
[169] A. R. Karlin, M. S. Manasse, L. Rudolph and D. D. Sleator, Competitive snoopy caching, Algorithmica 3(1-4), 79-119, 1988.
[170] N. J. Higham, Accuracy and Stability of Numerical Algorithms, 2nd edition, SIAM, 2002.
[171] B. T. Lowerre, The HARPY speech recognition system, PhD thesis, Carnegie Mellon University, 1976.
[172] H. Kociemba, kociemba.org/cube.htm, web pages on the two-phase algorithm for Rubik's cube and its cubie model, consulted in November 2026.
[173] E. Keyder and H. Geffner, Heuristics for planning with action costs revisited, Proceedings of the European Conference on Artificial Intelligence (ECAI), Frontiers in Artificial Intelligence and Applications 178, 588-592, 2008.
[174] D. S. Johnson and M. A. Trick (editors), Cliques, Coloring, and Satisfiability: Second DIMACS Implementation Challenge, DIMACS Series in Discrete Mathematics and Theoretical Computer Science 26, American Mathematical Society, 1996.
[175] C. Bron and J. Kerbosch, Algorithm 457: finding all cliques of an undirected graph, Communications of the ACM 16(9), 575-577, 1973.
[176] T. C. Koopmans and M. Beckmann, Assignment problems and the location of economic activities, Econometrica 25(1), 53-76, 1957.
[177] H. W. Kuhn, The Hungarian method for the assignment problem, Naval Research Logistics Quarterly 2(1-2), 83-97, 1955.
[178] S. M. Johnson, Optimal two- and three-stage production schedules with setup times included, Naval Research Logistics Quarterly 1(1), 61-68, 1954.
[179] National Institute of Standards and Technology, Secure Hash Standard (SHS), Federal Information Processing Standards Publication 180-4, 2015.
[180] L. Mandow and J. L. Pérez de la Cruz, Multiobjective A* search with consistent heuristics, Journal of the ACM 57(5), 1-25, 2010.
[181] C. Hernández, W. Yeoh, J. A. Baier, H. Zhang, L. Suazo, S. Koenig and O. Salzman, Simple and efficient bi-objective search algorithms via fast dominance checks, Artificial Intelligence 314, 103807, 2023.
[182] Z. Ren, R. Zhan, S. Rathinam, M. Likhachev and H. Choset, Enhanced multi-objective A* using balanced binary search trees, Proceedings of the International Symposium on Combinatorial Search (SoCS) 15, 162-170, 2022.
[183] C. Hernández, W. Yeoh, J. A. Baier, A. Felner, O. Salzman, H. Zhang, S.-H. Chan and S. Koenig, Multi-objective search via lazy and efficient dominance checks, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI) 32, 7223-7230, 2023.
[184] S. Ahmadi, N. R. Sturtevant, A. Raith, D. Harabor and M. Jalili, Parallelizing multi-objective A* search, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 35, 131-139, 2025.
[185] F.-J. Pulido, L. Mandow and J. L. Pérez de la Cruz, Dimensionality reduction in multiobjective shortest path search, Computers & Operations Research 64, 60-70, 2015.
[186] P. Sanders and L. Mandow, Parallel label-setting multi-objective shortest path search, Proceedings of the IEEE International Symposium on Parallel and Distributed Processing (IPDPS) 27, 215-224, 2013.
[187] X. Xu, N. Zhang, L. Qian, X. Liu, J. Wu and H. Tang, Asynchronous parallel search for exact multi-objective shortest paths with versioned frontier snapshots and indexed dominance pruning, arXiv:2609.11944, 2026.
[188] P. Maristany de las Casas, L. Kraus, A. Sedeño-Noda and R. Borndörfer, Targeted multiobjective Dijkstra algorithm, Networks 82(3), 277-298, 2023.
[189] P. M. Fenwick, A new data structure for cumulative frequency tables, Software: Practice and Experience 24(3), 327-336, 1994.
[190] J. R. Burch, E. M. Clarke, K. L. McMillan, D. L. Dill and L. J. Hwang, Symbolic model checking: 10^20 states and beyond, Information and Computation 98(2), 142-170, 1992.
[191] S. Edelkamp and F. Reffel, OBDDs in heuristic search, KI-98: Advances in Artificial Intelligence, Lecture Notes in Computer Science 1504, 81-92, 1998.
[192] R. M. Jensen, M. M. Veloso and R. E. Bryant, State-set branching: Leveraging BDDs for heuristic search, Artificial Intelligence 172(2-3), 103-139, 2008.
[193] Á. Torralba, V. Alcázar, P. Kissmann and S. Edelkamp, Efficient symbolic search for cost-optimal planning, Artificial Intelligence 242, 52-79, 2017.
[194] T. van Dijk and J. van de Pol, Sylvan: multi-core framework for decision diagrams, International Journal on Software Tools for Technology Transfer 19(6), 675-696, 2017.
[195] D. Speck, R. Mattmüller and B. Nebel, Symbolic top-k planning, Proceedings of the AAAI Conference on Artificial Intelligence 34, 9967-9974, 2020.
[196] S. Edelkamp and P. Kissmann, Optimal symbolic planning with action costs and preferences, Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), 1690-1695, 2009.
[197] F. Somenzi, CUDD: CU Decision Diagram package, release 3.0.0, University of Colorado at Boulder, 2015.
[198] Á. Torralba, V. Alcázar, D. Borrajo, P. Kissmann and S. Edelkamp, SymBA*: A symbolic bidirectional A* planner, The 2014 International Planning Competition: Description of Planners, 105-109, 2014.
[199] A. Felner and N. Ofek, Combining perimeter search and pattern database abstractions, Abstraction, Reformulation, and Approximation (SARA), Lecture Notes in Computer Science 4612, 155-168, 2007.
[200] J. Seipp and M. Helmert, Counterexample-guided Cartesian abstraction refinement, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 23, 347-351, 2013.
[201] J. Seipp and M. Helmert, Counterexample-guided Cartesian abstraction refinement for classical planning, Journal of Artificial Intelligence Research 62, 535-577, 2018.
[202] J. Seipp and M. Helmert, Diverse and additive Cartesian abstraction heuristics, Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS) 24, 289-297, 2014.