added finished algorithm
merged algorithm from other personnal repo
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/04/10 11:23:36 by tmaze #+# #+# */
|
||||
/* Updated: 2019/04/10 11:24:01 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/04/18 19:04:49 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -33,6 +33,7 @@ t_ants *add_ant(t_ants **ants, int nb_ant, int nb_path, t_ind **paths)
|
||||
it = it->next;
|
||||
it->next = new;
|
||||
}
|
||||
paths[nb_path]->weight--;
|
||||
}
|
||||
return (new);
|
||||
}
|
||||
|
Reference in New Issue
Block a user