1. Introduction
Graphs are a very useful model to represent complex networks [
1], and in particular, graph coloring is one of the main problems in discrete mathematics, attracting researchers from both mathematics and engineering because of its theoretical challenges and its applications [
2,
3]. One of the most prominent applications of vertex-coloring problems is frequency assignment [
4], with a huge variety of models ranging from the most naive, forbidding monochromatic edges, to the most general, with assignment constraints, interference constraints and an objective function.
The present work introduces and explores an intermediate model, which is shown to be interesting enough for mathematicians and useful enough for engineers: an abstract graph
G and a spectrum of colors
endowed with a matrix
W of non-negative distances
between each pair of colors, playing the role of interferences. Throughout this paper, the graph
G will be undirected, and thus, the matrix
W will be symmetric. For such a pair
, a coloring
c of the graph will induce at each vertex
v an interference:
This model stems naturally from the problem of Wi-Fi channel assignment. We all use the IEEE 802.11 (Wi-Fi) technology, which has been widely deployed in local area networks, mostly because of both its low cost and the use of unlicensed frequency bands. However, for a successful deployment, there are some performance issues to be managed, such as avoiding an excessive interference that will impact performance. There is a direct relation between interference and perceived throughput [
5], so that minimizing the interference would result in maximizing the available throughput. This is why a frequency channel has to be selected for each access point (AP), accounting for interferences between channels and trying to minimize the total interference in order to maximize performance. Similar goals have been considered recently in the literature for related problems, like bandwidth allocation in cellular networks [
6].
In the recent past, we have successfully used our model to find efficient frequency assignments both in wireless surveillance sensor networks [
7] and in real-world scenarios [
8]. We have even applied our model to reconfigure a critical network in the event of a security incident [
9]. With the present paper, we aim to formally introduce a mathematically-rigorous description of the model, exploring two novel coloring problems for which we provide theoretical bounds, show their complexity and finally propose and test a heuristic.
In particular, the remainder of this section introduces the two novel coloring problems and presents a case study to illustrate both of them, finishing with a compilation of relevant related work.
Section 2 is devoted to theoretical results, proving upper bounds for the solutions to each problem.
Section 3 starts showing that both problems are NP-hard, so a DSATUR-based heuristic is proposed for each problem, and experimental results are given to compare these heuristics with selected reference approaches for randomly-generated graphs.
Section 4 goes a step further by showing experimental results for a realistic setting. Finally,
Section 5 summarizes our conclusions.
1.1. Two Novel Coloring Problems
First, we introduce the problem that best fits the setting of Wi-Fi channel assignment, which we call the Threshold Spectrum Coloring (TSC) problem: Given a graph G and a spectrum of k colors (channels), endowed with a matrix W of interferences between them, the goal is to determine the minimum threshold such that admits a k-coloring c (assignment of channels) in which the interference at every vertex is at most t, i.e., . Such a minimum t will be called the minimum k-chromatic threshold of , denoted as .
Then, since the TSC problem fixes the parameter k and aims to minimize the parameter t, it is natural to wonder about the complementary problem: In the Chromatic Spectrum Coloring (CSC) problem, a threshold is fixed, and the spectrum is allowed to have as the size the number of vertices, the goal being to determine the minimum number of colors (channels) such that admits a k-coloring c (assignment of channels) in which the interference at every vertex is at most that threshold t. Such a minimum k will be called the t-interference chromatic number of , denoted as . This CSC problem has also a translation in the context of frequency assignment: it aims to compute the minimum number of frequencies (colors) that guarantees a minimum throughput to every user in the network, so it can be seen as the problem of determining the number of resources required to provide a certain quality of service.
1.2. A Case Study
Let us illustrate these two problems by analyzing an easy, but non-trivial, example using the paw graph
[
10]; see
Figure 1 (right).
For the TSC problem, consider a spectrum of
colors:
endowed with the
matrix of interferences with exponential decay of base two,
See
Figure 1 (left) for an illustration. In this TSC problem, we have a fixed number of colors
k, and we want to find the smallest possible interference threshold
t.
Figure 1, right, shows all the proper (without monochromatic edges) three-colorings of the paw graph, together with the interferences they induced at the edges and the consequent interference
at every vertex
v. Observe that the highlighted colorings achieve interference at most
at every vertex. This is impossible for improper colorings, since the matrix
W assigns interference of one to monochromatic edges, which, therefore, will lead to one of its endpoints having interference greater than one.
Let us show now that, in this setting, no coloring can achieve a maximum vertex interference
t strictly smaller than one: Focus on the central vertex of the paw graph, and observe that, according to the matrix
, the vertex can only achieve an interference smaller than one if it is colored red and its neighbors are colored blue, or vice versa. However, this gives rise to a monochromatic edge between the left vertices of the paw, which implies interference greater than one at those two vertices. See
Figure 2.
Therefore, we have solved the corresponding TSC problem, proving that for the paw graph with colors and a matrix with exponential decay of base two, the minimum chromatic threshold t achievable is one, i.e.,
For the CSC problem, the size of the spectrum is allowed to equal the number of vertices, which is four in the paw graph . Consider for example , also endowed with the matrix of interferences with exponential decay of base two, in this case of size ,
In this setting, one can fix an interference threshold
and aim to find the smallest number
k of colors for which such a threshold is achievable. The discussion above for the previous problem shows that the threshold
can be achieved with three of those colors, i.e.,
. We now show that such a threshold is impossible to achieve with only
colors among the four colors available: Focus again on the central vertex of the paw graph
. If it has a neighbor with its same color, then a monochromatic edge arises, and as above, this implies the interference at some vertex being greater than one. If the central vertex has no neighbor with its same color, then all its neighbors share a common color, so that again, a monochromatic edge arises, and there is a vertex with interference greater than one. See
Figure 3.
Therefore, we have solved the corresponding CSC problem proving that, for the paw graph
with threshold
and a matrix
with exponential decay of base two, the interference chromatic number is three, i.e.,
1.3. Related Work
Araujo et al. [
11] considered a weight function
w on the edges of the graph
G instead of a matrix
W of interferences between colors, defining the interference at a vertex to be the sum of weights of incident monochromatic edges. Although their bounds are similar to ours, using analogous techniques, we further show tightness and follow a different, more detailed, scheme. Many other works impose conditions on the colors of the endpoints of any edge. Most of them can be framed into
-labellings [
12], where vertices at distance
i must get colors at distance of at least
. Particular instances include distance coloring [
13], where no two vertices at a distance of at most
d can have the same color,
-coloring [
14], where adjacent vertices must get colors at least two apart and vertices at a distance of at most two must get different colors, as well as
-labellings [
15], where adjacent vertices must get colors at least
h apart and vertices at a distance of two must get colors at least
k apart.
For another setting, in a bandwidth coloring [
2], a distance
is associated with each particular edge
, forcing its endpoints to get colors at least
apart. A similar flavor has the
T-coloring [
16], where adjacent vertices must get colors whose distance is not in a prescribed set
T, and the
S-coloring [
17], where the vertices have to be partitioned into sets with prescribed pairwise distances.
Of a different nature is the approach of coloring the edges of the graph instead of the vertices [
18], an approach that has been applied to minimize the number of distinct channels used to route messages in a network [
19].
Finally, of independent interest are the works on the frequency assignment problem, which use different models to fit the characteristics of specific applications. The bibliography about this problem is too extensive to include here even a selection. Instead, we prefer referring the reader to the comprehensive survey by Aardal et al. [
4].
2. Theoretical Results
In this section, we prove theoretical upper bounds for the goal of the TSC problem, the minimum k-chromatic threshold , and for the aim of the CSC problem, the t-interference chromatic number .
Given a graph
G, a matrix
W and a coloring
c, we denote the potential interference at vertex
v if this vertex had color
i as:
Note that for i, the actual color of v, i.e., , we get the actual interference at vertex v, that is, .
We will say that a k-coloring c of G is W-stable if, for every vertex, the actual interference is no greater than any of the potential interferences, i.e., if for every vertex v, we have for all . We first prove that stable colorings do exist:
Proposition 1. Given a graph G and a spectrum S of size endowed with a matrix W of interferences, there exists a W-stable coloring of G.
Proof. Let
I be the sum of edge-interferences for the current coloring
c, i.e.,
(Note that this is actually half of the sum of interferences at every vertex.) Observe that any coloring achieving the minimum for this sum of edge-interferences will be a W-stable coloring of G: if there is a current interference that is greater than a potential interference , then recoloring would lead to a smaller sum I of edge-interferences. Furthermore, we can prove that such a stable coloring can be found by a random greedy algorithm: start with a random coloring of the graph , and if there exist a vertex and a color such that the potential interference for that color is smaller than the current interference , then recolor the vertex v with color j and repeat.
Each step of the procedure increases I by and decreases I by (in both cases, c is the initial coloring before the step). Hence, the sum of edge-interferences I decreases by a positive amount , and the random greedy algorithm finishes with a W-stable coloring of G. ☐
Before proving our bounds, we also need the following lemma:
Lemma 1. Any W-stable k-coloring c of a graph G fulfills that, for each vertex v,where is the natural norm of the matrix W. Proof. First, observe that such a coloring fulfills:
because
c being stable implies that the interference
is actually no greater than all of the potential interferences
. Restating the sum of the potential interferences at
v as the sum of interferences contributed by neighbors of each color while varying the color of
v, the right-hand side in the previous equation equals:
and this sum is no greater than the number of neighbors of
v times the maximum of the sums
, i.e., no greater than
. ☐
Now, we are ready to prove an upper bound for the aim of the TSC problem:
Theorem 1. Given a graph G and a spectrum S of size endowed with a matrix W of interferences, for any fixed natural number , the following bound holds for the minimum k-chromatic threshold :where is the maximum vertex-degree in the graph G. Furthermore, this bound is tight. Proof. By definition of
, in order to prove the bound, it is enough to prove that there exists a coloring
of
G with
k colors for which the interference at every vertex does not exceed the threshold
. Because of Proposition 1 and
, we know that there exists a
W-stable coloring
of
G using
k colors. It just remains to prove the interference condition: For every vertex
v with maximum interference, we have:
where the leftmost inequality follows from
being minimum and the rightmost inequality comes from Lemma 1. The bound in the statement follows.
For the final claim in the statement, it is enough to note that taking and , our bound results in , which is tight for the graph G being a cycle of odd length. In that case, it is not possible to avoid monochromatic edges, with the best coloring achieving a single monochromatic edge and, therefore, the smallest threshold of one, which matches the bound . ☐
Next, we provide an upper bound for the aim of the CSC problem. The bound uses the generalization of the greatest common divisor (gcd) to non-integer numbers, which is defined analogously just considering that a number x divides a number y if the fraction is an integer.
Theorem 2. Given a graph G and a spectrum S having size and endowed with a matrix W of interferences, for any fixed threshold t being a multiple of and such that , the following bound holds for the t-interference chromatic number : If t is not a multiple of , the bound can be expressed as:where t is replaced by the nearest multiple of below t. Furthermore, these bounds are tight. Proof. The number of colors has to be at least one, and the bound is trivially satisfied for , so let us focus on the case . We start with the case of t being a multiple of .
By definition of , in order to prove the bound, it is enough to prove that there exists a coloring of G with colors for which the interference at every vertex does not exceed the threshold t, i.e., . Note that the condition on the threshold in the statement ensures that .
Because of Proposition 1 and , we know that there exists a W-stable coloring of G using colors. Hence, it just remains to prove the interference condition.
By contradiction, suppose that for the coloring
, there is a vertex
v in
G with an interference above the threshold
t, i.e.,
which, because of
t and the interferences around a vertex being multiples of
, implies:
Then, since the coloring
is stable, Lemma 1 leads to:
where the leftmost inequality follows from the definition of
.
However, then, our choice of
implies that:
which is a contradiction.
The same arguments work for the case of
t not being a multiple of
, taking into account that interferences around a vertex have to be multiples of
. For the final claim in the statement, it is enough to take
and
(which is possible as long as
, i.e., the coloring is not forced to be improper). Thus, our bound coincides with Brooks’ bound [
20] for the chromatic number
, which is tight for the graph
G being a cycle of odd length. ☐
The reader can check that the case analyzed in
Section 1.2 does fulfill the bounds in Theorems 1 and 2; respectively:
and:
Note that, in this case, the small size of the graph makes the upper bound of seven exceed the actual size of the spectrum
, because the chosen threshold
does not fulfill the condition in the statement of Theorem 2:
Observation 1. The condition on the threshold t in the statement of Theorem 2 reflects the fact that a trade-off is needed between the threshold t and the size of the spectrum, since decreasing one of them might require an increase in the other. Furthermore, the theorem still has useful practical implications for values of the threshold t not fulfilling that condition: If the user were allowed to extend the spectrum S in such a way that (i) the bound given in the theorem is now below the size and (ii) neither , nor are increased, then the threshold t would fulfill the condition. Thus, the user would get not only an upper bound for the t-interference chromatic number, but also a certificate that for such a t, the problem would be solvable for the extended spectrum. Finally, let us mention that the condition can be further refined to .
It is interesting to note that, as long as the size of the spectrum is large enough for the chosen threshold, our bounds do not depend on the number of vertices in the graph G, but only on its maximum degree . For the sake of applications to Wi-Fi channel assignment, this guarantees the scalability of the bounds for a growing number of APs as long as the maximum number of interfering APs can be restrained. Such a property has interesting implications in the design and planning of wireless networks infrastructures, since the transmitting power of the APs could be adjusted to guarantee that the degree of the graph stays below the necessary value, and therefore, to satisfy the maximum interference threshold for a given performance requirement.
3. Experimental Results for Random Graphs
The well-known
Vertex Coloring (VC) problem, which aims at a proper coloring (with no monochromatic edges), is a particular case of our
Chromatic Spectrum Coloring problem, using the identity
I as the matrix of weights and a threshold
. Therefore, the usual chromatic number is the zero-interference chromatic number of
, that is,
With the same identity matrix and a threshold
t, we get the
Improper Coloring problem, which allows at most
t monochromatic edges around a vertex. These two particular cases are NP-hard [
21,
22], hence so is our
Chromatic Spectrum Coloring problem. In addition, fixing any
, it is NP-complete to decide if there exists a
k-coloring with interference at most any threshold
; see [
11] and the references therein. This implies that our
Threshold Spectrum Coloring is also NP-hard.
The hardness of the VC problem has given rise to many heuristics and metaheuristics for different vertex-coloring problems, e.g., [
23,
24,
25]. With the TSC and CSC problems introduced in this paper being even more general, this section is devoted to experimentally test several techniques, in a range of scenarios, and to compare their performance for the TSC and CSC problems.
As a bonus, these experiments will allow checking how tight or loose are, for average scenarios, the theoretical upper bounds given in Theorems 1 and 2.
3.1. Settings
Although we are aware of the number of benchmarks available like, e.g., those in DIMACS [
26], the fact that this is a seminal work, introducing a new type of coloring from both theoretical and applied perspectives, has led us to start the experiments by considering the widely-used Erdos–Renyi (ER) random graphs [
27]. In these graphs, every pair of vertices has a prescribed probability
p of being connected. We have created different categories of graphs, by varying the number of vertices
n and the probability of connection
p. In particular, we generated 10 graphs for each combination of the same settings used in [
25,
28], that is the number of vertices
and the probability of connection
, performing 20 repetitions of each experiment per graph.
For the matrix of interferences between colors, we have considered the exponential decay of base two already used in
Section 1.2,
. Other choices have also been explored, leading to similar results, which are not included here in order to avoid an excessive length of the paper.
For the TSC problem, we have considered as values for the number of colors in the spectrum, while for the CSC problem, we have considered thresholds , being the expected average degree of the graph. These choices have a two-fold interest: on the one hand, due to including the number of channels available in the Wi-Fi problem, so that our results show interference thresholds that can be achieved at every vertex; on the other hand, because the choices for k turn out to be similar to the best number of colors obtained for the chosen values of t and vice versa.
All the experiments in this paper have been conducted on an Intel® Core™ i7-2600 with 8 CPUs @3.40 GHz and 8 GB RAM, running Ubuntu 14.04.4 LTS.
3.2. Coloring Techniques Used for Benchmarking
For an experimental analysis of our two problems, we propose heuristics inspired by the sequential greedy algorithm DSATUR [
29] used for the
Vertex Coloring problem. Our implementation TSC-DSATUR for the
Threshold Spectrum Coloring problem looks for the color minimizing the interference at
v, as shown in Algorithm 1. The algorithm starts with an undefined coloring (1) and iterates by selecting at each iteration the uncolored vertex with the highest saturation degree, that is the one with more already-colored neighbors, the one with the highest degree in the case of a tie or a random vertex among the highest-degree vertices in the case of a double tie (2). Once a vertex
v has been selected, a color is assigned from the available set so that the interference at vertex
v is minimized (3).
Algorithm 1: TSC-DSATUR coloring algorithm. |
|
Our implementation CSC-DSATUR for the Chromatic Spectrum Coloring problem is shown in Algorithm 2. The algorithm looks for a color that does not make the interference at v exceed the product of the fixed threshold t by the proportion of neighbors already colored (1). That is, if vertex v has five neighbors, but only three of them have been colored so far, the color chosen should guarantee the interference at v to be at most . For a color to be chosen, this constraint must hold not only for v, but also for any neighbor of v which has already been colored (2). This is a conservative approach, to ensure that it is not possible to have a solution where the maximum interference per vertex is above the threshold.
Algorithm 2: CSC-DSATUR coloring algorithm. |
|
For comparison with our heuristics, we have tested a generic nonlinear optimizer based in particle swarm optimization (PSO) [
30].
For the TSC problem, we have used the sum of the interferences per vertex as the objective function, since our experiments proved that PSO performed significantly worse when using the maximum interference per vertex. For the CSC problem, we have used the same PSO optimizer as for TSC in an iterative manner, progressively increasing the number of colors k from one to , until we get a solution whose maximum interference per vertex is below the threshold t.
Moreover, as a baseline reference, we have evaluated a random coloring approach, which simply selects the color for each vertex from a uniform distribution on the color set. As in the case of PSO, for the CSC problem, this reference has been run in an iterative manner with an increasing number of colors k until a valid solution has been found.
3.3. Results
Recall that the bound in Theorem 1 was tight, since for some graphs, it cannot be improved. However, this does not mean that tightness is achieved for every graph. Hence, we start our experimental results by showing, in
Table 1, the theoretical bound given in Theorem 1 and the gap between the best value obtained by the different techniques under study, random, TSC-DSATUR and PSO, expressed as a percentage of the bound (note that the gap is computed with real values and rounded afterwards). It can be observed that the more complex is the graph, the tighter is the bound in Theorem 1.
On the other hand,
Table 2,
Table 3 and
Table 4 show the results obtained for the
Threshold Spectrum Coloring with
k equal to 4, 6 and 11 colors, respectively, and for each graph category. In columns, we have represented the average (showing in boldface the best value of each row) and standard deviation for the maximum vertex interference
achieved using each evaluated strategy: the random reference, our implementation of TSC-DSATUR and the nonlinear optimizer PSO. In addition, we also show the average time required to compute that interference
.
It is important to observe that the results in
Table 4 provide, for the Wi-Fi channel assignment problem in the corresponding graph, an interference threshold that can be ensured to be achievable at every vertex.
As for the algorithms, the results show that the performance in terms of of our heuristic TSC-DSATUR is better than the performance of PSO, except for a very limited number of cases. Moreover, in those few cases where PSO is better than TSC-DSATUR, the difference is very small. If we analyze the running times of both techniques, we can observe that TSC-DSATUR runs about 1000-times faster than PSO. From these results, we can conclude that the use of the heuristic algorithm TSC-DSATUR is very advisable, as it is able to obtain results that are usually better than those obtained by the nonlinear optimizer PSO, but with much lower computation requirements.
If we compare both algorithms in more detail, and in general, we can conclude that the performance of TSC-DSATUR in comparison to PSO decreases as the complexity of the graph increases, i.e., as p increases, both performances being fairly similar when . This is due to the fact that PSO deals better with complex nonlinear problems. Furthermore, the standard deviations are noticeable lower in PSO than in TSC-DSATUR. As expected, the values obtained for the random algorithm are always much worse than the other approaches. In particular, it is interesting to see that for and the random algorithm achieves results very close to the theoretical bound, while with the highest number of colors that approach is worse than the bound.
It is very interesting to inspect the results also in terms of the expected average degree of the graphs, given by
, as is shown in
Figure 4. In
Figure 4a–c, we can identify a linear trend between the achieved maximum interference
and the expected average degree of the graphs for
k equal to 4, 6 and 11 colors, respectively. Finally, in
Figure 4d, we show how the quotient between the running times between PSO and TSC-DSATUR decreases as
increases.
Regarding
Chromatic Spectrum Coloring,
Table 5 shows the value of the tight theoretical bound given in Theorem 2 and the gap, for the graphs considered, between the best experimental result and the theoretical bound. The main conclusion is that the gap for the theoretical upper bound again gets narrower when the complexity of the graph increases.
Table 6,
Table 7 and
Table 8 show the results obtained with a threshold
t on the maximum interference per vertex equal to
,
and
, respectively. Again, each row corresponds to a different graph category, given by
, and again, we have marked the best values in boldface. In columns, we have represented the average and standard deviation for the number of colors
achieved for each graph coloring approach evaluated together with the running time needed to obtain those results. Keep in mind that, as mentioned in
Section 3.2, both PSO and the random reference are implemented for CSC in an iterative manner, that is they are run with an increasing number of candidate colors until we find the smaller value
for which the result satisfies the threshold
t. We can observe again that our heuristic CSC-DSATUR generally outperforms PSO, especially for the lowest values of
p. It is also interesting to note that the difference between the results obtained by our heuristic and the random reference are significantly lower as the average degree of the graph (which depends on
p) increases. Although this may seem counter-intuitive, we must keep in mind that we are adjusting the threshold
t proportionally with the expected average degree
, which keeps around the same values the minimum number of different colors needed by the solutions whose interference falls below the threshold. Finding such a solution randomly is a different issue, however, and it becomes easier when the expected average degree increases, since the proportion of such solutions in the global solution space increases when increasing the degrees of freedom (i.e., the number of edges) per vertex. Finally, in
Figure 5, we show the quotient between the running times required to obtain the results using PSO and CSC-DSATUR, concluding that the time gain obtained when using CSC-DSATUR decreases as the expected average degree of the graph,
, increases, although this gain is at least of two orders of magnitude.
4. Experimental Results in a Realistic Setting
In addition to the experimental results presented in
Section 3, we have also performed a first step towards the application of our proposal to a realistic setting. The problem consists of assigning a Wi-Fi channel to each of the deployed APs of a Wi-Fi network in order to minimize the interference threshold. We consider a fixed number of channels (colors)
and want to minimize the maximum of the interferences at the vertices; therefore, we have a TSC problem. More specifically, we have made use of the real layout of the Wi-Fi network at the Polytechnic School of our university, as shown in
Figure 6a. The sides of this building, approximately square-shaped, are 130 m long. Its main features are its 48 classrooms and its central courtyard. Moreover, we have made use of the real positions of the 26 access points (APs) deployed in the building (green dots in
Figure 6a).
The signal strength from each AP ranges from high coverage (red) to low coverage (blue). Note the low signal coverage for the central courtyard. For this layout, we have considered three different and representative scenarios, depending on the number of network users. In the first one, called low density (LD), we consider that there are only 10 classrooms in use with 20 students each, making a total of 200 users. Note that in all scenarios, the position of the students in a classroom has been taken from a normal distribution centered around the center of each class and a standard deviation of 0.05 (considering that the size of the scenario is normalized to one). In the second one, called medium density (MD), we consider that there are 100 students uniformly distributed in the building and also 24 classrooms in use with 25 students each, for a total of 700 network users. Finally, the third scenario, called high density (HD), extends MD to have all 48 classrooms in use, for a total of 1300 users. To model each scenario, we have considered a graph, whose vertices are the APs, removing those APs that do not have any client attached to it. Note that we have considered that clients are attached to their closest AP. Moreover, the edges of the graph represent the possible interferences between two APs if they use a Wi-Fi channel that is close enough. We have taken into account not only the interferences due to AP transmissions, but also from clients, i.e. two APs
i and
j will be connected in the graph if the AP
i or any of its attached clients interferes with the AP
j or with any of its clients.
Figure 6b–d shows the resulting graph for each of the three scenarios. Note that, since the aim of this paper is to introduce and explore an intermediate model between mathematics and engineering, we have considered just the abstract graphs, thus not taking into account the effect of distances between nodes in the interference (which we have considered in the engineering-oriented conference paper [
8]). For the interferences between channels, we have used the values empirically measured in [
31], shown in
Table 9, which are similar to those defined in [
32]. Since these references use only 11 channels, corresponding to the most common 2.4-GHz wireless frequency band, this will be the setting used here.
The figure also shows
For the three above-mentioned scenarios (LD, MD and HD),
Table 10 shows the computed theoretical bounds according to Theorem 1 and the gap between the best experimental result obtained and the corresponding bound. As in the previous examples, the gap decreases with the increase of the complexity of the graphs.
Figure 7 shows, for each graph, the channel assignment obtained as the solution at one of the 20 repetitions performed for that graph.
On the other hand,
Table 11 shows the average and standard deviation of the maximum vertex interference
and the computation times for the different techniques under study.
Results show that, clearly, random offers always the worst performance and that the performance of TSC-DSATUR and PSO is fairly similar, although the running times of PSO are more than one thousand-times (i.e., three orders of magnitude) higher than the running times required by TSC-DSATUR, for LD, MD and HD, respectively. Finally, we are interested not only in the maximum interference, but also in the interference experienced by each AP, to study if the coloring obtained by TSC-DSATUR is similar to the one obtained by PSO.
Figure 8 studies this behavior.
In this figure, for each AP, we plot a heat map of the difference between the interference obtained by that AP using TSC-DSATUR (
) minus the interference obtained by that AP using PSO (
). Hence, in this figure, an AP in red means that the interference of TSC-DSATUR is higher than that of PSO, and the opposite holds for blue. Results show that, in general, most of the colors are either light blue, light red or white, so the difference in performance between TSC-DSATUR and PSO is low. However, it is quite interesting to see that, for the MD scenario, there two dark blue APs, for which the performance of TSC-DSATUR is much higher than the one of PSO. Finally, in the lower part of
Figure 8, we also show the average interference experienced by each AP. As we can see, TSC-DSATUR behaves slightly better than PSO for LD and MD, while in HD, PSO has a better performance than TSC-DSATUR.
5. Conclusions and Future Work
We have introduced two vertex-coloring problems for graphs, in which we are given a spectrum of colors endowed with a matrix of interferences between them. The Threshold Spectrum Coloring problem (TSC), motivated by Wi-Fi channel assignment, looks for the smallest threshold below which the interference at every vertex can be kept. The Chromatic Spectrum Coloring problem (CSC) is the complement, in which a threshold is given and the aim is to find the smallest number of colors allowing one to respect that threshold. We have illustrated these two problems with a case study.
For such problems, we have provided theoretical results, showing that both of them are NP-hard and proving upper bounds for the smallest threshold in TSC and the smallest number of colors in CSC.
In order to complete the scene, we have first presented experimental results for different coloring techniques, tested on Erdos–Renyi random graphs of vertices and probabilities of connection, with an interference matrix of exponential decay. For the coloring techniques, we have proposed a DSATUR-based heuristic for each of the TSC and CSC problems, in order to account for the given spectrum. We have compared these heuristics with PSO, a nonlinear optimizer based on particle swarm optimization, for TSC problems of colors and CSC problems of thresholds , where is the expected average degree of the graph.
Further, we have performed an evaluation of our proposal in a realistic setting, the Wi-Fi network at the Polytechnic School of our university. We have made use of the real positions of the 26 access points (APs) deployed in the building, and we have considered three different and representative scenarios, with 200, 700 and 1300 network users, respectively.
The experiments show that the performance of our heuristics TSC-DSATUR and CSC-DSATUR is better than PSO for the simplest graphs, although this improvement decreases as the complexity of the graphs increases. This makes sense, since higher degrees involve more interdependencies between vertex colorings, which is the kind of constraints for which nonlinear optimizers are designed.
Finally, we have also checked the gap between the theoretical upper bounds and the best values obtained in the experiments, observing that the more complex is the graph, the smaller is this gap. As possible future work, we aim to develop and test more realistic models of the problem, like using 3D graphs to model interferences among different floors of the building.