How does the tiling pattern of magnets influence the effective flux? Problem: A flat irregular shaped surface (A) need be affixed securely to a flat magnetic surface (B). The available means is small disc magnets of uniform dimensions and flux (the flat sides are N and S) to be glued onto (A). For a given thickness of the magnetic surface (B), what pattern of distributing the magnets will produce the strongest adhesive force? (Imagine you want to stick a clothes iron on the fridge door.)
Some example patterns:
1    NNNSSS
     NNNSSS
     NNNSSS

2    NSNSNS
     SNSNSN
     NSNSNS

3    NNNNNN
     SSSSSS
     NNNNNN



*

*The surface is covered in uniform halves.

*Every magnet is surrounded by opposite poles.

*Rows of alternating poles.


Keeping in mind that the shape my prohibit effectively accomplishing a particular pattern (especially ex. 2), will certain patterns be more effective in certain shapes?
For example:
1   N
   SS
  NNN

as opposed to:
2    N
    SN
   SNS

 A: Definitely number '2'.
The flux from multiple magnets is not a constant. For example, if I place two magnets against each other N to N, much of the flux is cancelled. But if I place them N to S, they both add to the external flux. You can then move one of those magnets along the flux lines of the other magnet, keeping the flux aligned, such that the two magnets end up side by side and in opposite directions (the magnet we moved also rotated 180 degrees). So when magnets are placed side by side, you get more external flux when they are pointing opposite directions than you do when they are pointing the same direction, and this is what we see empirically. In fact, the effect is pretty dramatic. Alternating magnets can produce upwards of ten times the near field force than same-direction magnets. Of course, the far field is weaker, but you don't care about that.
Another way to look at this is: When you bring magnets together, if you must add energy to do that then you are reducing the flux, but if bringing them together yields energy, then you are increasing the flux. 
