03-15-2024, 08:51 PM
The intersection operation in the definition seems redundant. So here is the correct code:
Code:
// The definition:
(define "LargestGroupCascading"
(max
(difference
(sizes Group #1)
(sizes Group #2)
)
)
)
// And the scoring:
(byScore {
(score P1 ("LargestGroupCascading" P1 P2))
(score P2 ("LargestGroupCascading" P2 P1))
})