Talk:Wave function collapse: Difference between revisions
m
→Rebuilt task description
Line 16:
: That is an algorithm which works, but it's not the only valid approach. For example, instead of using indices, we could use a bitmask. Here, if a single bit is set, that selects the tile. If multiple bits are set, the tile has not yet been determined. The number of set bits in the bitmask here would be the entropy of that grid location.
:
: There's probably other possibilities (some which might have better performance on large examples due to memory cache structures). That said... for rosettacode, it's probably best to ignore optimizations which have introduce high code complexity. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 13:26, 12 July 2022 (UTC)
|