[Freeciv-Dev] Re: goto algoritm
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Here is a version using a priority queue with constant time for add
and get operations. It halved the CPU usage in find_the_shortest_path()
and reduced it with 50% for really_generate_warmap().
The queue uses a good deal of memory currently, and I am trying to make
one with a nicer data structure.
-Thue
goto_final_pq.diff.gz
Description: GNU Zip compressed data
- [Freeciv-Dev] Re: goto algoritm, (continued)
[Freeciv-Dev] Re: goto algoritm, Thue Janus Kristensen, 2000/06/09
|
|