## 5 Illustration of CS-SR through Example  
This section shows the overall working of CS-SR. Suppose we have a total of 10 services (s1, s2,..., s10). This service list is provided by different cloud providers and only one active user. Each service has at least two quality attributes, and the feedback stored for all these 10 services, which is shown in Table 1.  
The user requirements are taken range from them for their desired attributes; for example, in the above Table 1, the range for Attribute 1 given by the user is in between (96-10), and the range for Attribute 2 mentioned by the user ranges between (6-10). In case the user mentioned the priority for any QoS attributes, he can also mention that in case if there are only two attributes, the user can give only priority high priority to any one of them. In case if we have three attributes, then there should be three priorities represented in the numerical form (1, 2, and 3). In this example, Attribute 1 is given priority 1, and Attribute 2 is given 2 nd priority.  
Step 1: As shown in Table 2, we have four filtered candidate services from step 1. These candidate services carry their quality attributes and feedback, and later these candidate services will be used as input for further steps and finally ranking the service Attribute 1 (96-110) and for Attribute 2 (6-10).  
Step 2: Table 3 shows the fitness function applied for qualitative and quantitative assessment on the filtered services shown in Table 2. The feedback is used for the qualitative evaluation, and QoS are used for the quantitative assessment.  
Step 3: Table 4 calculates the total fitness value of each candidate service, and rank is assigned to the service. The service that has the highest total fitness value will be ranked 1, and the process continues till all the candidate services are entrusted to their respective rank.  
\begin{table}
\begin{tabular}{c c c c c} \hline \hline
**S. No.** & **Services** & **Attribute 1** & **Attribute 2** & **Feedback (1–10) in Range** \\ \hline
1. & S1 & 100 & 10 & 7 \\ \hline
2. & S2 & 110 & 6 & 3 \\ \hline
3. & S3 & 90 & 8 & 5 \\ \hline
4. & S4 & 95 & 7 & 6 \\ \hline
5. & S5 & 105 & 9 & 4 \\ \hline
6. & S6 & 115 & 12 & 9 \\ \hline
7. & S7 & 80 & 5 & 8 \\ \hline
8. & S8 & 92 & 7.5 & 7 \\ \hline
9. & S9 & 102 & 8 & 5 \\ \hline
10. & S10 & 85 & 6.5 & 4 \\ \hline \hline \end{tabular}
\end{table}
Table 1: List of services with two attributes and their feedback.  
\begin{table}
\begin{tabular}{c c c c c} \hline \hline
**S. No.** & **Services** & **Attribute 1** & **Attribute 2** & **Feedback (1–10)** \\ \hline
1. & S1 & 100 & 10 & 7 \\ \hline
2. & S2 & 110 & 6 & 3 \\ \hline
3. & S5 & 105 & 9 & 4 \\ \hline
4. & S9 & 102 & 8 & 5 \\ \hline \hline \end{tabular}
\end{table}
Table 2: Candidate services.  
\begin{table}
\begin{tabular}{c c c c c} \hline \hline
**S. No.** & **Services** & **Attr.1** & **Attr.2** & **Fitness Function** & **Feedback** & **Fitness Function** \\  & & & **F\({}_{\textit{gt}}\)** = \(\frac{\text{M}}{1}(\textit{csi}\times\textit{pi}\times\textit{qi})\)** & **[1–10]** & **[1–10]** & **[1–10]** \\ \hline
1. & S1 & 100 & 10 & \(100\times 2+10\times 1=210\) & 7 & \(100\times 7+10\times 7=770\) \\ \hline
2. & S2 & 110 & 6 & \(110\times 2+6\times 1=226\) & 3 & \(110\times 3+6\times 3=348\) \\ \hline
3. & S5 & 105 & 9 & \(105\times 2+9\times 1=219\) & 4 & \(105\times 4+9\times 4=456\) \\ \hline
4. & S9 & 102 & 8 & \(102\times 2+8\times 1=212\) & 5 & \(102\times 5+8\times 5=550\) \\ \hline \hline \end{tabular}
\end{table}
Table 3: Fitness function is evaluated for qualitative and quantitative attributes.  
Step 4: Based on the total fitness function and ranking of the services, we can see that the S1 has the highest fitness function; therefore, rank 1 is assigned to S1, and S2 has the lowest rank shown in Table 4, and the D.M.S. will send an execution to the user.