Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:47:04+00:00 2026-06-12T19:47:04+00:00

I am trying to find a solution for the PACMAN problem of finding a

  • 0

I am trying to find a solution for the PACMAN problem of finding a short path (not the shortest, but a good one) that eats all the dots in a big maze. I’ve seen a lot of people talking about TSP, Dijsktra, BFS, A*. I don’t think this is a TSP since I don’t have to go back where I started and I can repeat node if I want. And I don’t think Dijsktra, BFS and A* would help because I’m not looking for the shortest path and even if that was the case, it wouldn’t give a answer in a reasonable time.

Could anyone give me hints on this? What kind of problem is this? Is this a kind of TSP? What kind of algorithms approach this problem in a efficient way? I’d appreciate any hints on implementation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:47:06+00:00Added an answer on June 12, 2026 at 7:47 pm

    I take it you’re trying to do contest where you find the shortest path in the big maze in under 30 seconds?

    I actually did this last year for fun (my college class didn’t do the contest). After weeks of research, I was able to do an exact solution of the maze in under 30 seconds.

    The heuristic I used was actually an exact heuristic. I wrote a bunch of code to find the minimal path length using a much more efficient algorithm based on graph decomposition and dynamic programming, and then fed the results back into A* as the ‘heuristic’ value.

    The key thing to realize is that while the graph is very big (273 nodes), it has a low carving width (5), meaning that it can be solved efficiently using a fixed parameter tractable algorithm.

    Hopefully that’s enough keywords to get you on the right track.

    Update: I wrote a blog post explaining the solution

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to find a solution to this one but could not
I was trying to find a solution but did not succeed even if it
I've been trying to find a solution to this, but perhaps I'm not understanding
I am trying to find solution for my problem, so far not with success.
HI all been trying to find solution for this array but I am not
I am trying to find a solution that will resolve a recurring deadlock situation
Been trying to find a solution for this for a while with not much
I've searched for two days trying to find a solution to this. My problem
I've been trying to find solution to my problem for more than a week
I'm trying to find a solution for this problem. This is my example code:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.