473,408 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

A* search implementation in Python

Hi folks,

I'm looking for an open-source Python implementation of A* search for use
in a mapping application.

As the star is an operator in Google, I haven't figured out how to
formulate a useful search. :/

Any help would be very much appreciated.

Reid
Feb 2 '07 #1
3 1740
Reid Priedhorsky:
I'm looking for an open-source Python implementation of A* search for use
in a mapping application.
You can try this one:
http://aima.cs.berkeley.edu/python/search.html

Bye,
bearophile

Feb 2 '07 #2
On Thu, 01 Feb 2007 18:21:57 -0800, bearophileHUGS wrote:
Reid Priedhorsky:
>I'm looking for an open-source Python implementation of A* search for use
in a mapping application.

You can try this one:
http://aima.cs.berkeley.edu/python/search.html
To paraphrase a wise saying:

If you give a man a link, you satisfy his need for one day.
But if you teach a man to search, you satisfy his need forever.

Given that Reid had problems formulating a good search (because * is an
operator in Google) what did you do?

--
Steven D'Aprano

Feb 2 '07 #3
Steven D'Aprano wrote:
On Thu, 01 Feb 2007 18:21:57 -0800, bearophileHUGS wrote:
>Reid Priedhorsky:
>>I'm looking for an open-source Python implementation of A* search for
use in a mapping application.

You can try this one:
http://aima.cs.berkeley.edu/python/search.html

To paraphrase a wise saying:

If you give a man a link, you satisfy his need for one day.
But if you teach a man to search, you satisfy his need forever.

Given that Reid had problems formulating a good search (because * is an
operator in Google) what did you do?
What he might have done:

http://www.google.com/codesearch?hl=...rch&btnG=Suche

Peter
Feb 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Rubin | last post by:
I have a string s, possibly megabytes in size, and two regexps, p and q. I want to find the first occurence of q that occurs after the first occurence of p. Is there a reasonable way to do it?...
4
by: corebump | last post by:
hi everybody, i planinng develop a search engine and i think using the python. Python performance is enough this project? Best Regards
6
by: Talin | last post by:
I've been using generators to implement backtracking search for a while now. Unfortunately, my code is large and complex enough (doing unification on math expressions) that its hard to post a...
9
by: News | last post by:
I am new in using Python Anyone know how to implement breadth first search using Python? Can Python create list dynamically, I want to implement a program which will read data from a file and...
11
by: Ola K | last post by:
Hi, I am pretty new to Python and I want to make a script that will search for the following options: 1) words made of uppercase characters -only- (like "YES") 2) words made of lowercase...
2
by: Chris | last post by:
I know this probably seems trivial, but I can't seem to find the bug in my alphabeta search implementation. I'm testing it with the game of tic-tac-toe. If the first player plays in a corner,...
6
by: Theo v. Werkhoven | last post by:
Goodday, Something strange going on here. A piece of code I wrote bombs out in one of de directories under $HOME, but not in others. Here's a snipped: #v+ def bin2asc(c): s=''
47
by: Henning_Thornblad | last post by:
What can be the cause of the large difference between re.search and grep? This script takes about 5 min to run on my computer: #!/usr/bin/env python import re row="" for a in range(156000):...
0
by: castironpi | last post by:
Hi, I am translating the GNU library's PAVL search tree implementation into Python. I can't use it directly because a delete function I need uses a different method of finding the node to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.