Skip to content

Instantly share code, notes, and snippets.

View bernardotiezzi's full-sized avatar

bernardotiezzi

View GitHub Profile
from collections import defaultdict
import random
class Graph:
def __init__(self, vertici):
self.V = vertici
self.graph = defaultdict(list)
def addEdge(self, u, v):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
a
abbandonare
abbastanza
abitare
abito
accadere
accanto
accendere
accettare
accogliere
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):
import pickle
class Edit_distance_manager:
def __init__(self):
self.matrix = []
self.op = []
self.cost = [0, 1, 1, 1, 1] # copy, replace, twiddle, insert, delete
def _setcost(self, op_cost):