Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Hrishikesh332/Gen-TSP
/ random_population
Function
random_population
utils.py:20–21 ·
view source on GitHub ↗
(population_size, num_genes)
Source
from the content-addressed store, hash-verified
18
19
20
def
random_population(population_size, num_genes):
21
return
[list(permutation(range(num_genes)))
for
_ in range(population_size)]
22
23
24
def
read_input(path):
Callers
1
genetic_tsp
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected