This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include "ants.h" | |
void runSimulation(int steps, int numAnts, int pathLength, double bias, double decay){ | |
// Allocate a block of Nodes and Ants | |
// Assuming pathLength of 50, it'd be as follows: | |
// Node[0..49] : path to food A (A) | |
// Node[50..99] : path to food B (B) |
NewerOlder