Given a necklace with n nodes that are distributed around a circle by a set of given deltas: How would you quantify how evenly the nodes are distributed.
(By "evenly" I mean that each node is maximally far from its neighbors)
For example in Ex. 1 the set of deltas {1,1,2,2,2,2,2} can produce 3 necklaces with the following deltas:
1,1,2,2,2,2,2 (top of Ex. 1)
1,2,1,2,2,2,2
1,2,2,1,2,2,2 (bottom of Ex. 1)
How would you express that 1,1,2,2,2,2,2 is less evenly distributed than in 1,2,2,1,2,2,2 where the distances between the nodes is maximal?
What about a similar situation in Ex. 2?
EDIT:
A solution has been proposed below, which works for the majority of cases. But not for when there's an even number of all sizes.
The algorithm below, returns the same value for the following sets, even though they clearly have different levels of evenness of distribution:
[1 2 1 2 1 2 1 2] (as expected)
But also for:
[1 1 2 2 1 1 2 2]
[1 1 2 2 1 2 1 2]
[1 1 2 1 2 2 1 2]
[1 1 2 1 2 1 2 2]
[1 1 2 1 1 2 2 2]
[1 1 1 2 2 2 1 2]
[1 1 1 2 2 1 2 2]
[1 1 1 2 1 2 2 2]

My proposal is to measure the evenness of the distribution by comparing the actual positions of the nodes to the positions of equally many nodes that are perfectly evenly spaced.
For example, suppose that we have "deltas" of $1, 1, 2, 2$. Then the positions of the four nodes, normalized so that the first node has position $0$ and the length of the circle is $1$, are at $0, \frac16, \frac36, \frac56$. Four evenly spaced nodes would be at positions $0, \frac14, \frac12, \frac34$. So we have a sequence of four differences: $$ \left(0, \frac16, \frac36, \frac56\right) - \left(0, \frac14, \frac12, \frac34\right) = \left(0, -\frac1{12}, 0, \frac1{12}\right). $$ In general, the signed average of these does not actually depend on the order of the "deltas". To see how big they tend to be, we could sum their absolute values, or (my choice) take the variance. As a bonus, it seems like the variance does not depend on the starting point (it gives the same result when we rotate the sequence of deltas).
The lower the variance, the more evenly the nodes are spaced.
For example, here are the permutations of
[1,1,1,1,2,2,2,2]sorted by this parameter: