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 8419537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:38:29+00:00 2026-06-10T02:38:29+00:00

Firstly, I have read every thread that I could find on stackoverflow or other

  • 0

Firstly, I have read every thread that I could find on stackoverflow or other internet searching. I did learn about different aspects, but it isn’t exactly what I need.

I need to solve a Rush Hour puzzle of size no larger than 8 X 8 tiles.

As I have stated in title I want to use A*, as a heuristic for it I was going to use :
number of cars blocking the red car’s ( the one that needs to be taken out ) path should decrease or stay the same.

I have read the BFS solution for Rush hour.

I don’t know how to start or better said, what steps to follow.

In case anyone needs any explanation, here is the link to the task :

http://www.cs.princeton.edu/courses/archive/fall04/cos402/assignments/rushhour/index.html

So far from what have I read ( especially from polygenelubricants’s answer ) I need to generate a graph of stages including initial one and “succes” one and determine the minimum path from initial to final using A* algorithm ?

Should I create a backtracking function to generate all the possible ( valid ) moves ?

As I have previously stated, I need help on outlining the steps I need to take rather than having issues with the implementation.

Edit : Do I need to generate all the possible moves so I convert them into graph nodes, isn’t that time consuming ? I need to solve a 8X8 puzzle in less than 10 seconds

  • 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-10T02:38:31+00:00Added an answer on June 10, 2026 at 2:38 am

    A* is an algorithm for searching graphs. Graphs consist of nodes and edges. So we need to represent your problem as a graph.

    We can call each possible state of the puzzle a node. Two nodes have an edge between them if they can be reached from each other using exactly one move.

    Now we need a start node and an end node. Which puzzle-states would represent our start- and end-nodes?

    Finally, A* requires one more thing: an admissable distance heuristic – a guess at how many moves the puzzle will take to complete. The only restriction for this guess is that it must be less than the actual number of moves, so actually what we’re looking for is a minimum-bound. Setting the heuristic to 0 would satisfy this, but if we can come up with a better minimum-bound, the algorithm will run faster. Can you come up with a minimum-bound on the number of moves the puzzle will take to complete?

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

Sidebar

Related Questions

ok so i have code that fundementally has this structure: firstly a main div
Firstly, I have read these: (1) http://www.gaiagps.com/news/article/iOS5%20Breaks%20Data%20Storage%20and%20Crushes%20My%20Soul (2) http://iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5 (I can not submit more
Firstly, Kohana's documentation is terrible, before people go read the docs I have read
I have a dataset that I read in from a complex xml structure.... here
I have list of checkboxes that has all checkbox pre-checked when page load. Firstly,
Ok, i'd like to firstly make you notice that i have looked for php
Evening guys. Firstly to say, I have read How do I parse XML containing
I have read several resources so far about MVC design pattern for iPhone application
firstly i have searched a lot and all topics seems to be C# :
Two things: Firstly - I have version 2 of a website located in a

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.