cost.h 891 B

12345678910111213141516171819202122232425262728293031
  1. /***************************************************************/
  2. /* */
  3. /* cost.h in ~/src/Gcost */
  4. /* */
  5. /* This header file defines the data structure of a */
  6. /* point structure containing various attributes of */
  7. /* a grid cell. */
  8. /* */
  9. /***************************************************************/
  10. #ifndef __COST_H__
  11. #define __COST_H__
  12. struct cost
  13. {
  14. double min_cost;
  15. long age;
  16. int row;
  17. int col;
  18. };
  19. /* heap.c */
  20. struct cost *insert(double, int, int);
  21. struct cost *get_lowest(void);
  22. int delete(struct cost *);
  23. int init_heap(void);
  24. int free_heap(void);
  25. #endif /* __COST_H__ */