SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-AI-Pathfinding-AStar rpm build for : OpenSuSE. For other distributions click perl-AI-Pathfinding-AStar.

Name : perl-AI-Pathfinding-AStar
Version : 0.10 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp155.461.1 Date : 2023-07-20 15:35:12
Group : Development/Libraries/Perl Source RPM : perl-AI-Pathfinding-AStar-0.10-lp155.461.1.src.rpm
Size : 0.02 MB
Packager : https://www_suse_com/
Summary : Perl implementation of the A* pathfinding algorithm
Description :
This module implements the A* pathfinding algorithm. It acts as a base
class from which a custom map object can be derived. It requires from the
map object a subroutine named \'getSurrounding\' (described below) and
provides to the object two routines called \'findPath\' and \'findPathIncr\'
(also described below.) It should also be noted that AI::Pathfinding::AStar
defines two other subs (\'calcF\' and \'calcG\') which are used only by the
\'findPath\' routines.

AI::Pathfinding::AStar requires that the map object define a routine named
\'getSurrounding\' which accepts the starting and target node ids for which
you are calculating the path. In return it should provide an array
reference containing the following details about each of the immediately
surrounding nodes:

* * Node ID

* * Cost to enter that node

* * Heuristic

Basically you should return an array reference like this: \'[ [$node1,
$cost1, $h1], [$node2, $cost2, $h2], [...], ...];\' For more information on
heuristics and the best ways to calculate them, visit the links listed in
the _SEE ALSO_ section below. For a very brief idea of how to write a
getSurrounding routine, refer to the included tests.

As mentioned earlier, AI::Pathfinding::AStar provides two routines named
\'findPath\' and \'findPathIncr\'. \'findPath\' requires as input the starting
and target node identifiers. It is unimportant what format you choose for
your node IDs. As long as they are unique, and can be distinguished by
Perl\'s \'exists $hash{$nodeid}\', then they will work. \'findPath\' then
returns an array (or reference) of node identifiers representing the least
expensive path to your target node. An empty array means that the target
node is entirely unreacheable from the given source. \'findPathIncr\' on the
other hand allows you to calculate a particularly long path in chunks.
\'findPathIncr\' also takes the starting and target node identifiers but also
accepts a \'state\' variable and a maxiumum number of nodes to calculate
before returning. \'findPathIncr\' then returns a hash representing the
current state that can then be passed back in for further processing later.
The current path can be found in \'$state-\'{path}>.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/15.5/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-AI-Pathfinding-AStar-0.10-lp155.461.1.noarch.rpm
     

Provides :
perl(AI::Pathfinding::AStar)
perl(AI::Pathfinding::AStar::AStarNode)
perl-AI-Pathfinding-AStar

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Heap::Binomial)
perl(Heap::Elem)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/AI
/usr/lib/perl5/vendor_perl/5.26.1/AI/Pathfinding
/usr/lib/perl5/vendor_perl/5.26.1/AI/Pathfinding/AStar
/usr/lib/perl5/vendor_perl/5.26.1/AI/Pathfinding/AStar.pm
/usr/lib/perl5/vendor_perl/5.26.1/AI/Pathfinding/AStar/AStarNode.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-AI-Pathfinding-AStar
/usr/share/doc/packages/perl-AI-Pathfinding-AStar/Changes
/usr/share/doc/packages/perl-AI-Pathfinding-AStar/README
/usr/share/man/man3/AI::Pathfinding::AStar.3pm.gz

 
ICM