day19: reduce tracing
This commit is contained in:
parent
be63198b72
commit
d2d20c8df5
|
|
@ -65,7 +65,7 @@ merge (diffs, known) (overlappingNew, scanner) = (diff:diffs, nub $ sort $ known
|
|||
|
||||
discover :: [Coord] -> [Coord] -> [[[Coord]]] -> ([Coord], [Coord], [[[Coord]]])
|
||||
discover diffs known [] = (diffs, known, [])
|
||||
discover diffs known aux = trace ("total: " ++ show (length newKnown) ++ "; best: " ++ show (map (length.fst) bestPer)) $
|
||||
discover diffs known aux = trace (show (map (length.fst) bestPer)) $
|
||||
if bestScore < 12 then (diffs, known, aux) else (diffs ++ fst newKnown, snd newKnown, newAux) where
|
||||
overlapKnown = map (map (\x -> (findOverlap known x, x))) aux
|
||||
bestPer = map (maximumBy (\x y -> compare (length $ fst x) (length $ fst y))) overlapKnown
|
||||
|
|
|
|||
Loading…
Reference in New Issue