colMap(r: Relation) cols : Colouring pre isRelation(r) post isColouring(cols) and
isColouringOf(cols, CountriesRel(r)) and
nbDistinctColours(cols, r);
canBeExtBy: Colour * Country * Relation -> bool
canBeExtBy(col, c, r) == forall c1 inset col & not areNb(c1, c, r);
extndCol: Colouring * Country * Relation -> Colouring
extndCol(cols,c,r) == if cols = {} then {{c}} elselet col inset cols in if canBeExtBy(col,c,r) then { {c} union col } union cols \ {col} else { col } union extndCol(cols \ {col}, c, r) measure CardColouring;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.