Skip to content

Instantly share code, notes, and snippets.

Avatar

Italo Silva oyarsa

  • Coventry, United Kingdom
View GitHub Profile
@oyarsa
oyarsa / tsp.py
Last active Oct 16, 2016
GRASP Simples para o TSP
View tsp.py
"""TSP."""
import math
import random
import sys
import timeit
from collections import defaultdict
from itertools import chain
from typing import List, Optional, Tuple