Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. The A* Path Finding Algorithm (CSS's Code Repository)

The A* Path Finding Algorithm (CSS's Code Repository)

Scheduled Pinned Locked Moved The Back Room
csscomalgorithms
22 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dalek Dave

    Does he really want comments? Or is he hoping people will just communicate. He thinks insults count as conversation.

    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #5

    He thinks copying and pasting text and a link, then either running away, or attacking people, is conversation.

    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

    1 Reply Last reply
    0
    • D Dalek Dave

      Does he really want comments? Or is he hoping people will just communicate. He thinks insults count as conversation.

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #6

      Dalek Dave wrote:

      He thinks insults count as conversation.

      I'm totally un-judgemental on this one. If getting flamed makes him happy, it might be an easy score. I have the feeling he's serious about this one, though. And if that's the case, I hope it's good, 'cause otherwise, this is going to be bloody. :-D

      L u n a t i c F r i n g e

      1 Reply Last reply
      0
      • C Christian Graus

        Why not post it as a CP article ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        C Offline
        C Offline
        CaptainSeeSharp
        wrote on last edited by
        #7

        Christian Graus wrote:

        Why not post it as a CP article ?

        Because I own it.

        Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

        C L 2 Replies Last reply
        0
        • C CaptainSeeSharp

          Christian Graus wrote:

          Why not post it as a CP article ?

          Because I own it.

          Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #8

          I see. Well, why post it online at all then ? No matter what, even if it sucks, it's going to get ripped off somewhere.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          D 1 Reply Last reply
          0
          • C Christian Graus

            I see. Well, why post it online at all then ? No matter what, even if it sucks, it's going to get ripped off somewhere.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            D Offline
            D Offline
            Dalek Dave
            wrote on last edited by
            #9

            He wont post it on CP because it is his, but provides a link to his private website. what a douche. Actually doesn't that count as advertising?

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

            1 Reply Last reply
            0
            • C CaptainSeeSharp

              I finished it. Tell me what you think.[^]

              Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #10

              Why dont you just link to a better written and illustrated description ie http://en.wikipedia.org/wiki/A*_search_algorithm[^] It's a well known algorithm, what is it you think you *own*? You should mention alternative algorithms and list why this one is better or worse than each in particular circumstances. You should provide an analysis of the time complexity in Big-O notation. Choosing a path finding algorithm is usually a trade off between performance cost and accuracy. For some users a 'good enough' solution will be preferable if it is faster, others will want the absolute best path every time no matter the cost of calculating it. Most users will fall somewhere between those two. Your article should prompt people to think about what they need from a path finding algorithm. You should give a sample implementation. You could write a pretty interesting program that would display a little map of tiles, let the user set the start and end points and cost properties of the tiles and thenstep through the path finding algorithm. Your language and presentation are quite poor and will turn a lot of people away. Compare how well written and illustrated the wikipedia article is

              modified on Tuesday, March 2, 2010 9:28 PM

              C 1 Reply Last reply
              0
              • L Lost User

                Why dont you just link to a better written and illustrated description ie http://en.wikipedia.org/wiki/A*_search_algorithm[^] It's a well known algorithm, what is it you think you *own*? You should mention alternative algorithms and list why this one is better or worse than each in particular circumstances. You should provide an analysis of the time complexity in Big-O notation. Choosing a path finding algorithm is usually a trade off between performance cost and accuracy. For some users a 'good enough' solution will be preferable if it is faster, others will want the absolute best path every time no matter the cost of calculating it. Most users will fall somewhere between those two. Your article should prompt people to think about what they need from a path finding algorithm. You should give a sample implementation. You could write a pretty interesting program that would display a little map of tiles, let the user set the start and end points and cost properties of the tiles and thenstep through the path finding algorithm. Your language and presentation are quite poor and will turn a lot of people away. Compare how well written and illustrated the wikipedia article is

                modified on Tuesday, March 2, 2010 9:28 PM

                C Offline
                C Offline
                CaptainSeeSharp
                wrote on last edited by
                #11

                Josh Gray wrote:

                what is it you think you *own*? Quote Selected Text

                My text and pictures, my article.

                Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                L 1 Reply Last reply
                0
                • C CaptainSeeSharp

                  Josh Gray wrote:

                  what is it you think you *own*? Quote Selected Text

                  My text and pictures, my article.

                  Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #12

                  I dont think you have a future as a technical writer.

                  C 1 Reply Last reply
                  0
                  • L Lost User

                    I dont think you have a future as a technical writer.

                    C Offline
                    C Offline
                    CaptainSeeSharp
                    wrote on last edited by
                    #13

                    I disagree with you, however I don't intend to be a technical writing, I intend to be a software engineer.

                    Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                    L C 2 Replies Last reply
                    0
                    • C CaptainSeeSharp

                      I disagree with you, however I don't intend to be a technical writing, I intend to be a software engineer.

                      Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #14

                      CaptainSeeSharp wrote:

                      I don't intend to be a technical writing, I intend to be a software engineer.

                      Quoted for posterity. good luck

                      1 Reply Last reply
                      0
                      • C CaptainSeeSharp

                        I disagree with you, however I don't intend to be a technical writing, I intend to be a software engineer.

                        Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #15

                        Well, it seems that you've written an article on a non complex subject, so at first glance, that seems reasonable. However, I'd attribute at least some of my success, and certainly the fact that I've done a lot better than workmates I counted as smarter than me, to my being willing to work hard, contribute to a team, and consider other people's needs rather than just complain about what I wanted. I don't see those qualities in you, at all.

                        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                        1 Reply Last reply
                        0
                        • C CaptainSeeSharp

                          I finished it. Tell me what you think.[^]

                          Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                          C Offline
                          C Offline
                          cjb110
                          wrote on last edited by
                          #16

                          Diagrams are too complicated and unclear esp. near the end. Why have the blue background? You just need the grid. I would simplify them quite a lot, remove the text that's no longer relevant etc.

                          1 Reply Last reply
                          0
                          • C CaptainSeeSharp

                            I finished it. Tell me what you think.[^]

                            Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #17

                            CaptainSeeSharp wrote:

                            I finished it. Tell me what you think.

                            CaptainSeeSharp wrote:

                            1.) Add Point A to the Open List and make it the Current Node 2.) Scan for Nodes adjacent to the Current Node that qualify to be added to the Open List. 3.) Calculate their costs, set their Parents to the Current Node, and add them to the Open List. 4.) Pull the Node with the least Total Cost from the Open List and make it the Current Node. 35.) Repeat steps 2-34 until the Current Node is Point B (the end Node). 46.) Point A and Point B are now linked together by the Parent Nodes. Iterate through them from Point B to Point A.

                            FTFY Easy one first. Construct the wall to surround Point B. Does your algorithm still work?

                            Bob Emmett @ Ynys Thanatos

                            C 1 Reply Last reply
                            0
                            • C CaptainSeeSharp

                              Christian Graus wrote:

                              Why not post it as a CP article ?

                              Because I own it.

                              Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #18

                              CaptainSeeSharp wrote:

                              Because I own it.

                              Prior art?

                              Bob Emmett @ Ynys Thanatos

                              1 Reply Last reply
                              0
                              • L Lost User

                                CaptainSeeSharp wrote:

                                I finished it. Tell me what you think.

                                CaptainSeeSharp wrote:

                                1.) Add Point A to the Open List and make it the Current Node 2.) Scan for Nodes adjacent to the Current Node that qualify to be added to the Open List. 3.) Calculate their costs, set their Parents to the Current Node, and add them to the Open List. 4.) Pull the Node with the least Total Cost from the Open List and make it the Current Node. 35.) Repeat steps 2-34 until the Current Node is Point B (the end Node). 46.) Point A and Point B are now linked together by the Parent Nodes. Iterate through them from Point B to Point A.

                                FTFY Easy one first. Construct the wall to surround Point B. Does your algorithm still work?

                                Bob Emmett @ Ynys Thanatos

                                C Offline
                                C Offline
                                CaptainSeeSharp
                                wrote on last edited by
                                #19

                                Bob Emmett wrote:

                                Easy one first. Construct the wall to surround Point B. Does your algorithm still work?

                                Yes, it throws the PathNotFoundException.

                                Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                                L 1 Reply Last reply
                                0
                                • C CaptainSeeSharp

                                  Bob Emmett wrote:

                                  Easy one first. Construct the wall to surround Point B. Does your algorithm still work?

                                  Yes, it throws the PathNotFoundException.

                                  Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #20

                                  CaptainSeeSharp wrote:

                                  Yes, it throws the PathNotFoundException.

                                  But your algorithm makes no mention of the possibility that a path may not be found, or the condition that indicates that no path exists. Thus your algorithm is incomplete.

                                  Bob Emmett CSS: I don't intend to be a technical writing, I intend to be a software engineer.

                                  C 1 Reply Last reply
                                  0
                                  • L Lost User

                                    CaptainSeeSharp wrote:

                                    Yes, it throws the PathNotFoundException.

                                    But your algorithm makes no mention of the possibility that a path may not be found, or the condition that indicates that no path exists. Thus your algorithm is incomplete.

                                    Bob Emmett CSS: I don't intend to be a technical writing, I intend to be a software engineer.

                                    C Offline
                                    C Offline
                                    CaptainSeeSharp
                                    wrote on last edited by
                                    #21

                                    It is a tutorial for beginners. My intention is to construct a tutorial website, mainly focusing on algorithms and small games that utilize those algorithms. That article is to get your foot in the door with the A* Path Finding Algorithm. I boil it down as simple as I can possibly make it so it is easy to understand. That is more important than listing the infinite details and possibilities. Such things belong is a comprehensive specification. My implementation is a bit more sophisticated, it is part of the GameFX library. It integrates with the TileMap components, and most functions automatically react to events in the TileMap so it is extremely easy to use as a library.

                                    Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                                    L 1 Reply Last reply
                                    0
                                    • C CaptainSeeSharp

                                      It is a tutorial for beginners. My intention is to construct a tutorial website, mainly focusing on algorithms and small games that utilize those algorithms. That article is to get your foot in the door with the A* Path Finding Algorithm. I boil it down as simple as I can possibly make it so it is easy to understand. That is more important than listing the infinite details and possibilities. Such things belong is a comprehensive specification. My implementation is a bit more sophisticated, it is part of the GameFX library. It integrates with the TileMap components, and most functions automatically react to events in the TileMap so it is extremely easy to use as a library.

                                      Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #22

                                      CaptainSeeSharp wrote:

                                      It is a tutorial for beginners.

                                      And, applied to a simple 2D world, A* is a non-complex algorithm and easy for a beginner to comprehend. To present a beginner with a non-functioning algorithm is unhelpful.

                                      CaptainSeeSharp wrote:

                                      That is more important than listing the infinite details and possibilities.

                                      It is a pathfinding algorithm, it either finds a path or it doesn't, hardly infinite.

                                      CaptainSeeSharp wrote:

                                      My implementation is a bit more sophisticated

                                      You mean that it includes the test to ensure that the path returned is actually the shortest?

                                      Bob Emmett CSS: I don't intend to be a technical writing, I intend to be a software engineer.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups