Quote:
forward flood-fill with constrained horizon.
That would be an adequate description of the A* algorithm, yes.
Quote:
forward flood-fill with constrained horizon.
Quote:
Original post by Deyja
Actually it'sstruct path_grid_node { unsigned int state; unsigned int cost; unsigned int estimated_final_cost; unsigned int direction; unsigned int next_open_node; };
I used a simple linked list for the open-list, and don't have a closed list at all. I may change it to a tree; I'd have to test and see if the speed up in insertion time justifies the extra memory.
for (all neighbours) Calc costs and add to openlist.Pop Current node from openlistSortOpenList
Quote:
Original post by Deyja Quote:
forward flood-fill with constrained horizon.
That would be an adequate description of the A* algorithm, yes.