1

I have a question about assigning values to nodes laid out in a physical space:

  • There is a set of N fixed nodes spread out throughout a certain 2 dimensional region that need to be assigned a value from 1 to M. In this case, M is less than N. Preferably, nodes that have the smallest distance between one another should be assigned the furthest possible values (e.g., for the two nodes closest to each other, one should not be assigned a value of "5" or "7" if the other is assigned a "6". Instead, one should be assigned a "1" and the other an "M" if at all possible). As the distance between nodes increase, the assigned values may get closer (and eventually the two nodes furthest from each other would have to be assigned the same value).
  • There may be mobile nodes that move in and out of this region, and a calculation would need to be remade whenever this happens.

I should note that the nodes are not uniformly spaced. Are there any existing algorithms that can address this problem and create the optimum setup?

Edit: Added the fact that the region is 2 dimensional.

5
  • how many dimensions in this regon?
    – gbjbaanb
    May 5, 2016 at 14:44
  • Only 2 dimensions. Sorry for not clarifying that.
    – Decumanus
    May 5, 2016 at 15:07
  • Are you under any constraints to use all the [1,M] numbers evenly? That is, could you do a graph with nothing but 1s and Ms, and nothing in-between?
    – Darien
    May 5, 2016 at 20:13
  • Yes, the numbers must be used as evenly as possible.
    – Decumanus
    May 5, 2016 at 20:42
  • This may be similar to the vertex coloring problem, for M colors. I suggest checking it out in case it's helpful. May 5, 2016 at 20:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.