blob: 7a186ba44778ca0e1eb727ad7033b3024570ffd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef INCLUDED_COMMON_H
#define INCLUDED_COMMON_H
extern struct path {
u8 *items;
u32 count;
u32 capacity;
} path;
extern struct crdf {
struct crdf_entry {
f32 c;
u32 j;
} *items;
u32 count;
u32 capacity;
} crdf;
f32 build_crdf (u8 i);
f32 measure_path (void);
void added_j (u8 j);
void export_path (u8 path[NODE_COUNT], int generation);
bool finished (void);
extern f32 (*pheromones_current)[NODE_COUNT];
#endif // INCLUDED_COMMON_H
|