1 Introduction

An edge colored graph G is called k-proper connected, or stated to have a k-proper connected edge coloring, if there exist k vertex disjoint proper paths between all pairs of vertices having no two adjacent edges of the same coloration [3, 6]. Here, letting G be a graph with an initial monochromatic edge coloration, Fujita [16] introduced the discrete optimization problem of computing the minimum of the sum \(p + q\) for the number of edges p that must be recolored using q new colors to ensure G is k-proper connected. In this context, \(\min \{p+q\}\) is referred to as the optimal k-proper connection number of G, or \(pc_{opt}^k(G)\), and any edge coloration minimizing \(p + q\) is referred to as an optimal k-proper connected coloring. Moderating \({pc}^{k}_{opt}(G)\), Fujita also introduced a parameter \({pc}^{k}_{opt^{\prime }}(G)\), corresponding to the minimum total number of edges that must be recolored using all distinct colors to ensure G is k-proper connected.

Inspired by Fujita’s concept of optimal k-proper connectivity [16], we introduce the notion of affine optimal k-proper connected edge colorings. Letting G be a simple undirected graph with edge set \(E_G\), such a coloring corresponds to a decomposition of \(E_G\) into n distinct color classes \(C_1, C_2, \ldots , C_n\), with associated weights \(w_1, w_2, \ldots , w_n\), under the dual objectives of minimizing an affine function \({\mathcal {A}} \, {:=}\,\sum _{i=1}^{n} \left( w_i \cdot |C_i|\right)\) and ensuring G is at least k-proper connected. We likewise introduce the affine optimal k-proper connection number, \(\zeta _{{\mathcal {A}}}^k(G)\), as the minimum possible value of \({\mathcal {A}}\) under a k-proper connectivity requirement for G. While we cannot directly express \(pc_{opt}^k(G)\) in terms of \(\zeta _{{\mathcal {A}}}^k(G)\), for \({\mathcal {A}}^* \, {:=}\,0 \cdot |C_1| + \sum _{i=2}^{|E_G|} |C_i|\) we can observe that \({pc}^{k}_{opt^{\prime }}(G)\) is equivalent to \(\zeta _{{\mathcal {A}}^*}^k(G)\).

In this work, we show that \(\zeta _{{\mathcal {A}}}^k(G)\) is expressible in Monadic Second-order (\(MS_2\)) logic, and for any fixed number of color classes \(n \in {\mathbb {N}}_{>0}\) for affine function \({\mathcal {A}}\), correspondingly treewidth Fixed-Parameter Tractable (FPT) to compute (Theorem 1). Furthermore, in the special case where we consider highly restricted affine functions of the form \({\mathcal {A}}^* \, {:=}\,0 \cdot |C_1| + \sum _{i=2}^{|E_G|} |C_i|\), we show that computing \(\zeta _{{\mathcal {A}}^*}^k(G)\) is treewidth FPT without a bound on the number of color classes (Proposition 1), and that this correspondingly holds for the parameter \({pc}^{k}_{opt^{\prime }}(G)\) (Corollary 1).

With regard to hardness results, we consider the problem of determining \(\zeta _{{\mathcal {A}}^{\prime }}^k(G)\) for highly restricted affine functions of the form \({\mathcal {A}}^{\prime } \, {:=}\,0 \cdot |C_1| + |C_2|\). In particular, we show that \(\zeta _{{\mathcal {A}}^{\prime }}^k(G)\) is NP-hard to compute if G is a 2-connected planar graph and \(k = 1\) (Theorem 2), a cubic 3-connected planar graph and \(k = 2\) (Theorem 4 in the Appendix), or a k-connected graph and \(k \ge 3\) (Theorem 5 in the Appendix). Concerning approximation complexity, we additionally show that no Fully Polynomial-time Randomized Approximation Scheme (FPRAS) can exist for approximating \(\zeta _{{\mathcal {A}}^{\prime }}^k(G)\) under any of the aforementioned constraints unless \(NP=RP\) (Theorem 3). Finally, we extend each of these hardness results to approximately computing parameters \({pc}^{k}_{opt}(G)\) and \({pc}^{k}_{opt^{\prime }}(G)\) (Corollary 2).

We remark that our affine optimal k-proper connected edge colorings have direct application to the problem of minimizing interference between channels of communication in wireless networks. Briefly, in the well-known frequency assignment problem (traditionally abstracted as a vertex proper coloring problem on what are known as interference graphs) [1, 13, 15, 18, 22,23,24], one is tasked with assigning a sparse set of frequencies (colors) to a set of transmitters (vertices) embedded in \({\mathbb {R}}^2\) or \({\mathbb {R}}^3\), such that closely spaced transmitters (adjacent vertices) have a threshold frequency separation (e.g., \(\approx\) 50–100 kHz [13]) in order to avoid interference. In circa 2015, Li and Magnant [21] observed that the notion of proper connectivity could allow one to consider a frequency assignment model at the finer-grained level of message passing. More specifically, noting that transceivers in a wireless network (e.g., cellular towers mediating LTE communications) can receive and emit at different frequencies, Li and Magnant [21] considered the problem of coloring the edges of a network’s interference graph to minimize interference by ensuring a minimum threshold frequency separation between incoming and outgoing signals at each transceiver.

Consider now that, in the context of Li and Magnant’s [21] model, a k-proper connected network coloring using at most n colors correspondingly implies the existence of a plausible message passing scheme using at most n frequencies, with k vertex disjoint redundant paths between all pairs of nodes. Here, for a simple albeit realistic model [1, 13, 15, 18, 22,23,24] where we assume that different bands of the frequency spectrum (abstracted as color classes \(C_1, C_2, \ldots , C_n\)) have distinct costs or weights (\(w_1, w_2, \ldots , w_n\)), and where we require at least k vertex disjoint redundant paths for passing messages between nodes, we can observe that finding an optimal frequency assignment becomes the problem of finding an affine optimal k-proper connected edge coloring.

2 Preliminaries

Concerning fundamental graph theoretic concepts and notation, we will generally follow Diestel [14] or, where appropriate, Bondy and Murty [5]. We clarify that all graphs in this work should be assumed to be simple (i.e., loop and multi-edge free) and undirected. Concerning complexity theoretic concepts and terminology, we call a problem Fixed-Parameter Tractable (FPT) for a specified parameter k if its time complexity can be expressed as \(f(k) \cdot |x|^{{\mathcal {O}}\left( 1\right) }\), where x is a string specifying a given problem instance and f(k) is any computable function. Concerning approximation complexity and the concept of a Fully Polynomial-time Randomized Approximation Scheme (FPRAS), we will follow definitions and notation from Karp and Luby [20].

3 Treewidth fixed-parameter tractability

Recall that \(\zeta _{{\mathcal {A}}}^k(G)\) is the affine optimal k-proper connection number of a graph G for an arbitrary affine function of the form \({\mathcal {A}} \, {:=}\,\sum _{i=1}^{n} \left( w_i \cdot |C_i|\right)\). We begin by observing the following theorem:

Theorem 1

For any fixed number of color classes n, determining \(\zeta _{{\mathcal {A}}}^k(G)\) is treewidth FPT.

Proof

Let G be a graph with edge set \(E_G\). To establish the theorem at hand, we will show that \(\zeta _{{\mathcal {A}}}^k(G)\) admits a formulation as an extremum problem in Monadic Second-order (\(MS_2\)) logic, where the description size is bounded by the number of color classes n into which \(E_G\) can be decomposed. This will allow us to use an extension of Courcelle’s well-known algorithmic metatheorem [7,8,9,10] to counting and optimization problems [4, 11, 12] to prove the existence of a treewidth FPT algorithm for determining \(\zeta _{{\mathcal {A}}}^k(G)\).

To begin, we remark that the existence of a k-proper connected edge coloring for a graph G using at most n colors can be expressed in \(MS_2\) logic. Here, we first write the sentence \(\psi _1\) to express the decomposition of \(E_G\) into n distinct color classes, \((C_1, \ldots C_n)\):

$$\begin{aligned}&\psi _1 \, {:=}\,\exists C_1, \ldots , C_n \subseteq E_G \left( \forall e_i \in E_G \left( e_i \in C_1 \vee \ldots \vee e_i \in C_n \right) \right) \wedge \\&\forall i,j \in \{1, \ldots , n\} \left( i = j \vee C_i \cap C_j = \emptyset \right) \end{aligned}$$

We next write a sentence \(\psi _2\) to express the property of G having k vertex disjoint proper paths between all pairs of vertices \(v_x, v_y \in V_G\). Here, we will use Courcelle’s notion of a quasipath, where we have that an edge set \(X_i\) is a quasipath from a vertex \(v_x\) to a vertex \(v_y\) if and only if the following three first order conditions are met: (1) \(v_x \ne v_y\); (2) both \(v_x\) and \(v_y\) are incident to a single unique edge in \(X_i\); and (3) any vertex \(v_z\) not in the set \(\{v_x,v_y\}\) is incident to exactly two edges in \(X_i\). We can therefore use an auxiliary predicate \(Quasipath(X_i,v_x,v_y)\) to check whether the edge set \(X_i\) corresponds to a quasipath representing a simple path between a pair of vertices \(v_x\) and \(v_y\), and can moreover write the first order sentences “\(X_1, \ldots , X_k\) are pairwise disjoint” and “no vertex except \(v_x\) and \(v_y\) belongs to an edge of \(X_i\) and of \(X_j\) for \(i \ne j\)” to express that k quasipaths are vertex disjoint aside from having common endpoints at \(v_x\) and \(v_y\) (see, e.g., the section “Disjoint paths in undirected graphs” on “pg. 5” of Courcelle [9]).

Additionally, letting \(inc(v_i,e_j)\) be a binary relation which expresses that a vertex \(v_i\) is adjacent to an edge \(e_j\), we can use the following auxiliary predicate \(PP(X_i)\) to express the property of a quasipath \(X_i\) being a proper path:

$$\begin{aligned}&PP(X_i) \, {:=}\,\forall e_a,e_b \in X_i, \forall v_z \in V_G (e_a \ne e_b \ \wedge \\&inc(e_a,z) \wedge inc(e_b,z) \implies \exists r \in \{1, \ldots , n\} (e_a \in C_r \wedge e_b \notin C_r)) \end{aligned}$$

We can accordingly write \(\psi _2\) as:

$$\begin{aligned}&\psi _2 \, {:=}\,\forall v_x, v_y \in V_G ( \exists X_1, \ldots , X_k \subseteq E_G (v_x = v_y \vee (Quasipath\left( X_1,v_x,v_y\right) \wedge \\&PP(X_1) \wedge \ldots \wedge Quasipath\left( X_k,v_x,v_y\right) \wedge \\&PP(X_k) \wedge {\text{``}}X_1, \ldots , X_k \ are \ pairwise \ disjoint{\text{''}} \wedge \\&{\text{``}}no \ vertex \ except \ v_x \ and \ v_y \ belongs \ to \ an \ edge \ of \ X_i \ and \ of \ X_j \ for \ i \ne j{\text{''}}))) \end{aligned}$$

Putting everything together, we have that the sentence \(\psi _1 \wedge \psi _2\) yields an \(MS_2\) formula expressing the property of a graph possessing a k-proper connected edge coloring using at most n colors.

To now elaborate on our earlier remarks concerning \(MS_2\)-expressible extremum problems, by a result of Arnborg et al. [4]—see also “Theorem 7.12” on “pg. 184” of Cygan et al. [12] directly attributed to ref. [4]—for any fixed-size \(MS_2\) formula \(\phi\) with some number n of monadic free variables \(X_1, \ldots , X_n\) (corresponding to sets of vertices or edges), we are able to formulate an \(MS_2\) extremum problem of maximizing or minimizing any affine function over the cardinalities of the sets \(X_1, \ldots , X_n\) for which \(\phi\) is true. Furthermore, as long as the size of \(\phi\) is fixed, we are guaranteed a treewidth FPT algorithm for the extremum problem [4, 12].

Here, letting \(C_1, \ldots , C_n\) correspond to the set of free monadic variables, and letting \(\phi = \psi _1 \wedge \psi _2\), we can formulate the \(MS_2\) extremum problem of minimizing the earlier defined affine function \({\mathcal {A}}\). This correspondingly yields a treewidth FPT algorithm for determining \(\zeta _{{\mathcal {A}}}^k(G)\) for any fixed n.\(\square\)

Letting \(\zeta _{{\mathcal {A}}^*}^k(G)\) be a modification of \(\zeta _{{\mathcal {A}}}^k(G)\) for restricted affine functions of the form \({\mathcal {A}}^* \, {:=}\,0 \cdot |C_1| + \sum _{i=2}^{|E_G|} |C_i|\), we can observe the following proposition and corollary:

Proposition 1

Determining \(\zeta _{{\mathcal {A}}^*}^k(G)\) is treewidth FPT.

Proof

Let G be a graph with edge set \(E_G\). Observe that any affine function of the form \({\mathcal {A}}^* \, {:=}\,0 \cdot |C_1| + \sum _{i=2}^{|E_G|} |C_i|\) will be minimized if the cardinality of the set \(|C_1|\) is maximized. Accordingly, we can simplify the problem by specifying an affine function of the form \(0 \cdot |C_1| + |C_2|\), and treating all edges in the color class \(C_2\) as having a distinct coloration.

We remark that it is a trivial matter to modify the auxiliary predicate \(PP(X_i)\) from Theorem 1 to check if a quasipath \(X_i\) constitutes a proper path in this context. Specifically, we can write down an \(MS_2\) sentence for the modified auxiliary predicate, which we denote \(PP^{\prime}(X_i)\), as follows:

$$\begin{aligned} PP^{\prime}(X_i) \, {:=}\,\forall e_a,e_b \in X_i, \forall v_z \in V_G (e_a \ne e_b \ \wedge inc(e_a,z) \wedge inc(e_b,z) \\ \implies ( e_a \in C_2 \vee e_b \in C_2 ) ) \end{aligned}$$

Now, specifying only the two color classes \((C_1, C_2)\) and everywhere substituting the auxiliary predicate \(PP^{\prime}(X_i)\) in place of \(PP(X_i)\), we otherwise follow exactly the Theorem 1 proof argument to establish the existence of a treewidth FPT algorithm for computing \(\zeta _{{\mathcal {A}}^*}^k(G)\).\(\square\)

Corollary 1

Determining the parameter \({pc}^{k}_{opt^{\prime}}(G)\) for a graph G is treewidth FPT.

Proof

Recall that the parameter \({pc}^{k}_{opt^{\prime}}(G)\) is a modification of the original optimal k-proper connection number \({pc}^{k}_{opt}(G)\), where, for an input graph G with monochromatic edge set \(E_G\), one asks only for the total number of edges that must be recolored to ensure that G is k-proper connected. Here, as we are free to assume all recolored edges have distinct colorations, we can recast this optimization problem as one of bi-partitioning \(E_G\) into two distinct color classes \(\left( C_1,C_2\right)\), and treating all edges in \(C_2\) as having distinct colorations, maximizing \(|C_1|\). As this is exactly our strategy in Proposition 1 for showing the existence of a treewidth FPT algorithm for \(\zeta _{{\mathcal {A}}^*}^k(G)\), where \({\mathcal {A}}^* \, {:=}\,0 \cdot |C_1| + \sum _{i=2}^{|E_G|} |C_i|\), we have the corollary.\(\square\)

4 Hardness results

Letting \(\zeta _{{\mathcal {A}}^{\prime}}^k(G)\) be a modification of \(\zeta _{{\mathcal {A}}}^k(G)\) for highly restricted affine functions of the form \({\mathcal {A}}^{\prime} \, {:=}\,0 \cdot |C_1| + |C_2|\), we can observe the following hardness results:

Theorem 2

It is NP-hard to determine \(\zeta _{{\mathcal {A}}^{\prime}}^1(G)\) for a 2-connected planar graph G.

Proof

We proceed via reduction from the NP-complete problem of deciding the existence of a Hamiltonian path on a cubic 2-connected planar graph (see Lemma 1 in the Appendix).

Letting G be an arbitrary cubic 2-connected planar graph with vertex set \(V_G\) and edge set \(E_G\), our strategy will be to replace each vertex of G with a common subgraph \(\gamma\), such that: (constraint 1) any 1-proper connected coloring for G must recolor at least 2 edges per \(\gamma\) subgraph, either with both edges internal to the same \(\gamma\) subgraph, or with one edge having both ends and two edges having one end in a common \(\gamma\) subgraph; and (constraint 2) if and only if G is traceable, it will suffice to recolor exactly two edges per \(\gamma\) subgraph, such that the resulting graph has exactly two types of edge colors. Together, (constraint 1) and (constraint 2) will ensure that \(\zeta _{{\mathcal {A}}^{\prime}}^1(H) \le 2 \cdot |V_G|\) if and only if G is traceable.

To begin, we let \(\gamma\) correspond to the subgraph shown in Fig. 1a. Accordingly, we replace each vertex \(v_i \in V_G\) with the subgraph given by the edge set \(\{v_{(i,1)} \leftrightarrow v_{(i,2)},v_{(i,1)} \leftrightarrow v_{(i,6)},v_{(i,1)} \leftrightarrow v_{(i,7)},v_{(i,2)} \leftrightarrow v_{(i,3)},v_{(i,3)} \leftrightarrow v_{(i,4)},v_{(i,3)} \leftrightarrow v_{(i,5)},v_{(i,3)} \leftrightarrow v_{(i,6)},v_{(i,3)} \leftrightarrow v_{(i,7)},v_{(i,4)} \leftrightarrow v_{(i,5)},v_{(i,4)} \leftrightarrow v_{(i,6)},\) \(v_{(i,5)} \leftrightarrow v_{(i,6)},v_{(i,5)} \leftrightarrow v_{(i,7)}\}\), reconnecting formerly adjacent vertices to vertices \(v_{(i,3)}\), \(v_{(i,4)}\), and \(v_{(i,5)}\), respectively. Letting \(V_H\) and \(E_H\) be the vertex and edge sets for the graph H, respectively, we can observe that \(|V_H| = 7 \cdot |V_G|\) and that \(|E_H| = 12 \cdot |V_G| + |E_G| = \left( \frac{27}{2}\right) \cdot |V_G|\).

Next, brute-force enumeration of all possible manners of recoloring \(\le 3\) edges in the neighborhood of each \(\gamma\) subgraph to ensure the resulting graph is 1-proper connected can be used to confirm that (constraint 1) holds for H. To elaborate on this enumeration, we refer the reader to Fig. 1 where we show the \(\gamma\) subgraph in all relevant local contexts in H, as well as an example minimum cost coloring for each instance. Here, vertices stylized as having a (hollow white) center are adjacent to but disjoint from the \(\gamma\) subgraph, (thin black) edges belong to color class \(C_1\), (thick black) edges belong to color class \(C_2\), and (curved dotted lines) correspond to paths of arbitrary length between the aforementioned (hollow white) vertices. Concerning the constraint that each graph in Fig. 1a–l is 1-proper connected, we allow proper paths to traverse paths between (hollow white) vertices (curved dotted lines), and to do so regardless of the coloration of the edge they traverse prior to ingressing or after egressing the path. Concerning the contribution to \(\zeta _{{\mathcal {A}}^{\prime}}^1(H)\) for each illustrated coloring in Fig. 1a–l, we sum the number of (thick black) edges between vertices internal to the same \(\gamma\) subgraph with a fraction \(\frac{1}{2}\) (by the handshaking lemma) of the number of (thick black) edges connecting vertices not belonging to the same \(\gamma\) subgraph.

To now show that (constraint 2) holds, we can determine for the cases shown in Fig. 1a–g, i–l, which are consistent with a 1-proper connected coloring for H corresponding to a spanning tree T for G having minimum degree \(\le 2\), that each \(\gamma\) subgraph incurs a cost of 2 to \(\zeta _{{\mathcal {A}}^{\prime}}^1(H)\) regardless of whether it corresponds to a leaf for T (as in the Fig. 1b–d cases) or whether G is an isolated vertex (yielding the Fig. 1a case). We can also determine that the remaining Fig. 1h instance, which would allow for a degree 3 vertex in the aforementioned spanning tree T, incurs a cost of \(\frac{3}{2}\).

Putting everything together, we have that \(\zeta _{{\mathcal {A}}^{\prime}}^1(H) \le 2 \cdot |V_G|\) if and only if G is traceable. As the Hamiltonian path decision problem for G is NP-complete by Lemma 1, this yields the theorem.\(\square\)

Fig. 1
figure 1

Illustrations and edge colorings of the subgraph \(\gamma\) used in Theorem 2 to reduce the Hamiltonian path problem on a cubic 2-connected planar graph G, with vertex set \(V_G\), to the problem of determining if the affine optimal \((k=1)\)-proper connection number \(\zeta _{{\mathcal {A}}^{\prime}}^1(H)\), for affine function \({\mathcal {A}}^{\prime} \, {:=}\,0 \cdot |C_1| + |C_2|\) and a 2-connected planar graph H, is \(\le 2 \cdot |V_G|\); (a–l) colorings minimizing \(\zeta _{{\mathcal {A}}^{\prime}}^1(G)\) while ensuring the existence of a proper path between all (solid black) vertices. See the proof argument of Theorem 2 for further details

Concerning cases where \(k \ge 2\), we refer the reader to Theorem 4 (in the Appendix) for a proof that \(\zeta _{{\mathcal {A}}^{\prime}}^2(G)\) is NP-hard to determine for cubic 3-connected planar graphs, and Theorem 5 (in the Appendix) that, \(\forall k \ge 3\), \(\zeta _{{\mathcal {A}}^{\prime}}^k(G)\) is NP-hard to determine for k-connected graphs. Together with Theorem 2, yields the following approximation hardness result:

Theorem 3

No FPRAS can exist that approximates \(\zeta _{{\mathcal {A}}^{\prime}}^k(G)\) in any of the following cases:

  • (case 1) \(k = 1\) and G is a 2-connected planar graph;

  • (case 2) \(k = 2\) and G is a cubic 3-connected planar graph;

  • (case 3) \(k \ge 3\) and G is a k-connected graph.

Proof

From the proof arguments for Theorems 2, 4, and 5, recall that we are able to decide if a graph G with vertex set \(V_G\) has a Hamiltonian path (case 1), Hamiltonian cycle (case 2), or k-regular k-connected spanning subgraph with \(\le \frac{k}{2} \cdot |V_G|\) edges (case 3), by constructing a graph H from G in polynomial time and checking, for affine function \({\mathcal {A}}^{\prime} \, {:=}\,0 \cdot |C_1| + |C_2|\), that its affine optimal k-proper connection number, \(\zeta _{{\mathcal {A}}^{\prime}}^k(H)\), is equal to \(\alpha \cdot |V_G|\) for some constant \(\alpha \in {\mathbb {N}}\). Now, following the definition for an FPRAS given by Karp and Luby [20], let \({\mathcal {Q}}\) be an FPRAS for \(\zeta _{{\mathcal {A}}^{\prime}}^k(H)\) accepting an input string x, having an error parameter \(\epsilon < \left( \frac{1}{2\left( \alpha \cdot |V_G|\right) }\right)\), and having an accuracy parameter \(\delta = \frac{1}{3}\). We accordingly have that \({\mathcal {Q}}\) yields a BPP algorithm for checking if \(\zeta _{{\mathcal {A}}^{\prime}}^k(H) \le \alpha \cdot |V_G|\), as we can simply round the output of \({\mathcal {Q}}\) to the nearest integer and make a correct guess with probability \(1 - \delta = \frac{2}{3}\). However, as each of the aforementioned decision problems in (case 1) through (case 3) are NP-complete (as detailed in the proof arguments for Theorem 2, 4, and 5), we have that the existence of \({\mathcal {Q}}\) would necessarily imply in each of these cases that \(NP \subseteq BPP\), and therefore, that \(NP = RP\).\(\square\)

Corollary 2

The hardness results established in Theorems 2 through 5 hold for exactly and approximately computing the parameters \({pc}^{k}_{opt}(G)\) and \({pc}^{k}_{opt^{\prime}}(G)\).

Proof

Recall that the proof arguments for Theorems 2, 4, and 5 proceed by reducing an NP-complete problem of deciding the existence of an object (e.g., a Hamiltonian path in Theorem 2) to the problem of deciding if, for affine function \({\mathcal {A}}^{\prime} \, {:=}\,0 \cdot |C_1| + |C_2|\), we have that \(\zeta _{{\mathcal {A}}^{\prime}}^k(G) \le {\mathcal {M}}\) for some \({\mathcal {M}} \in {\mathbb {N}}_{>0}\). In each case we can also observe that \({\mathcal {M}}\) is the smallest possible value for \(\zeta _{{\mathcal {A}}^{\prime}}^k(G)\), and can check—by brute force enumeration in Theorems 2 and 4, and by using a simple induction proof in Theorem 5—that treating all edges in the color class \(C_2\) as having a distinct coloration cannot yield a smaller value of \(\zeta _{{\mathcal {A}}^{\prime}}^k(G)\). Accordingly, we have that \(\zeta _{{\mathcal {A}}^{\prime}}^k(G)\) will be equivalent to the parameters \({pc}^{k}_{opt}(G)\) and \({pc}^{k}_{opt^{\prime}}(G)\) in these instances. Finally, we can observe that the proof argument for Theorem 3 depends only on our using polynomial time reductions from NP-hard problems to deciding if \(\zeta _{{\mathcal {A}}^{\prime}}^k(G) \le {\mathcal {M}}\) in Theorems 2, 4, and 5. Putting everything together, we therefore have that the proof arguments for Theorem 2 through Theorem 5 can be used to establish the same hardness results for parameters \({pc}^{k}_{opt}(G)\) and \({pc}^{k}_{opt^{\prime}}(G)\).\(\square\)

5 Concluding remarks and open problems

We have shown \(\forall k \in {\mathbb {N}}_{>0}\), and for every fixed number of color classes \(n \in {\mathbb {N}}_{>0}\) into which the graph’s edge set can be decomposed, that there exists a treewidth FPT algorithm for computing the affine optimal k-proper connection number, \(\zeta _{{\mathcal {A}}}^k(G)\). Here, while we have also shown that no such bound on the number of color classes is required if we restrict our consideration to affine functions to the form \({\mathcal {A}}^* \, {:=}\,0 \cdot |C_1| + \sum _{i=2}^{|E_G|} |C_i|\), we consider it an interesting open question as to whether there exist treewidth FPT algorithms for more general affine functions. We likewise pose the question as to whether treewidth FPT algorithms exist for the optimal k-proper connectivity parameter, \({pc}^{k}_{opt}(Q)\), without a bound for the number of color classes. Finally, we pose the question as to whether efficient dynamic programming algorithms exist for computing the parameters discussed in this work.