Pseudo-polinomial algorithms