A DETERMINISTIC ALGORITHM FOR THE FRIEZE-KANNAN