Skip to content

Commit 85dc5a0

Browse files
committed
updated section 6 - intro and section 6.2
1 parent 5f35c5e commit 85dc5a0

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

metrics.tex

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
\section{Maximizing the Pipeline Instance Quality}\label{sec:heuristics}
2-
The goal of this paper is to produce a pipeline instance in Definition~\ref{def:instance} with maximum quality. To this aim, we first highlight the crucial role of well-defined metrics (\cref{sec:metrics}) in assessing data quality across the pipeline. Inspired by existing literature, these metrics, categorized as quantitative and statistical, play a pivotal role in quantifying the impact of policy-driven transformations on the original dataset.
3-
We then prove that the problem of maximizing the pipeline instance quality is NP-hard (\cref{sec:nphard}). We finally present a parametric heuristic (\cref{subsec:heuristics}) tailored to address the computational complexities associated with enumerating all possible combinations within a given set. The primary aim of the heuristic is to approximate the optimal path for service interactions and transformations, particularly within the landscape of more complex pipelines composed numerous nodes and candidate services.
2+
3+
%
4+
% %Ovviamente non è sufficiente scegliere il best service per ogni vertice, ma diventa un problema complesso dove si devono calcolare/valutare tutte le possibili combinazioni dei servizi disponibili, tra le quali scegliere la migliore.
5+
The goal of this paper is to produce a pipeline instance with maximum quality, i.e., guaranteeing a high level of data protection but at the same time the minimum amount of information lost across the pipeline. To this aim, we first discuss the crucial role of well-defined metrics (\cref{sec:metrics}) to specify and measure data quality, and describe the ones that will be used in the paper.
6+
Then, we prove that the problem of maximizing the pipeline instance quality is NP-hard (\cref{sec:nphard}). Finally, we present a parametric heuristic (\cref{subsec:heuristics}) tailored to address the computational complexities associated with enumerating all possible combinations within a given set. The primary aim of the heuristic is to approximate the optimal path for service interactions and transformations, particularly within the landscape of more complex pipelines composed numerous nodes and candidate services.
47
Our focus extends beyond identifying optimal combinations, encompassing an understanding of the quality changes introduced during the transformation processes.
58

9+
%Inspired by existing literature, these metrics, categorized as quantitative and statistical, play a pivotal role in quantifying the impact of policy-driven transformations on the original dataset.
10+
611
\subsection{Quality Metrics}\label{sec:metrics}
712
Ensuring data quality is mandatory to implement data pipelines that provide high-quality results and decision-making along the whole pipeline execution. To this aim, we define a set of metrics evaluating the quality loss introduced by our policy-driven transformation in Section~\cite{ADD} on the input dataset \origdataset at each step of the data pipeline. Our metrics can be classified as \emph{quantitative} and \emph{statistical}~\cite{ADD}, and compare the input dataset \origdataset\ and dataset \transdataset\ generated by enforcing data protection requirements on \origdataset.
813

@@ -55,32 +60,25 @@ \subsubsection{Weighted Jensen-Shannon Divergence}
5560

5661
By incorporating weights into the JSD calculation, WJSD provides a more accurate measure of dissimilarity between X and Y, considering the importance of individual elements based on the assigned weights. This approach is particularly useful when elements in the datasets have varying levels of significance, enabling a more tailored analysis of dissimilarity.
5762

58-
\subsection{NP-Hardness of the Pipeline Instantiation Process}\label{sec:nphard}
59-
We need to\\
60-
1 - define the quality metric\\
61-
2 - define the problem as a max-instance problem, cioè la definizione di un'istanza con max quality\\
62-
3 - definiamo che + NP-Hard
63-
64-
\begin{problem}
65-
66-
\end{problem}
63+
\subsection{NP-Hardness of the Max Quality Pipeline Instantiation Process}\label{sec:nphard}
6764

68-
Note that while the overall problem is NP-hard, there is a component of the problem that is solvable in polynomial time: matching the profile of each service with the node policy.
69-
This can be done by iterating over each node and each service, checking if the service matches the node’s policy.
70-
This process would take $O(|N|*|S|)$ time. This is polynomial time complexity.
65+
\begin{definition}[Max Quality Pipeline Instantiation Process]\label{def:MaXQualityInstance}
66+
Given \textit{dtloss}$_i$ the value of the quality metrics computed after applying the transformation of the policy matching the service selected to instantiate vertex \vi{i}$\in$$\V_S$, the Max quality \problem is the case in which the \emph{pipeline instantiation} function returns a \pipelineInstance where the \textit{dtloss}$_i$ sum is maximized.
67+
\end{definition}
68+
69+
The Max Quality \problem is a combinatorial selection problem and is NP-hard, as stated by the following theorem.
70+
Note that while the overall problem is NP-hard, there is a component of the problem that is solvable in polynomial time: matching the profile of each service with the node policy. This can be done by iterating over each node and each service, checking if the service matches the node’s policy. This process would take $O(|N|*|S|)$ time. This is polynomial time complexity.
7171

72-
The \problem is NP-hard, as stated by the following theorem
7372
\begin{theorem}
74-
The \problem is NP-Hard
73+
The Max Quality \problem is NP-Hard.
7574
\end{theorem}
76-
\emph{Proof: }
77-
78-
The proof is a reduction from the NP-hard problem. We map each service s in S to an item in the Knapsack Problem.
79-
The value of the item is equivalent to the calculated metric, and the weight of the item is uniformly 1, as we can choose each service once. The capacity of the knapsack is set to the number of nodes.
80-
Our problem can now be viewed as a variant of the Knapsack Problem: find the subset of items(services)
81-
that maximizes the total value (score) without exceeding the capacity of the knapsack (number of nodes).
82-
The Knapsack Problem is NP-hard.
83-
Since our problem can be reduced to the Knapsack Problem in polynomial time, our problem is also NP-hard.
75+
\emph{Proof: }
76+
The proof is a reduction from the multiple-choice knapsack problem (MCKP), a classified NP-hard combinatorial optimization problem, which is a generalization of the simple knapsack problem (KP) \cite{}. In the MCKP problem, there are $t$ mutually disjoint classes $N_1,N_2,…N_t$ of items to pack in some knapsack of capacity $C$, class $N_i$ having size $n_i$. Each item $j \in N_i$ has a profit $p_{ij}$ and a weight $w_{ij}$; the problem is to choose one item from each class such that the profit sum is maximized without having the weight sum to exceed C.
77+
78+
The MCKP can be reduced to the Max quality \problem in plynomial time, with $N_1,N_2,…N_t$ corresponding to $S^c_{1}, S^c_{1}, ..., S^c_{u},$, $t=u$ and $n_i$ the size of $S^c_{i}$. The profit $p_{ij}$ of item $j \in N_i$ corresponds to \textit{dtloss}$_{ij}$ computed for each candidate service $s_j \in S^c_{i}$, while $w_{ij}$ is uniformly 1 (thus, C is always equal to the cardinality of $V_C$).
79+
80+
Since the reduction can be done in polynomial time, our problem is also NP-hard. (non è sufficiente, bisogna provare che la soluzione di uno e' anche soluzione dell'altro)
81+
8482

8583
\begin{example}[Max-Quality Pipeline Instance]
8684
\end{example}

0 commit comments

Comments
 (0)