You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Report.md
+67-1Lines changed: 67 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -161,8 +161,74 @@ Regression analysis will also be performed on the results of running time experi
161
161
162
162
## **Testing Results**
163
163
164
+
Testing results of different sorting algorithms will be shown for the following distribution. **Note** that shell sort and annealing sort are tested over different parameters.
165
+
166
+
For shell sort, it is tested using the following gap sequences.
In this section, the input testing data is permuted using uniformly distributed permutation.
197
+
198
+
1. The graph below shows the running time of different algorithms on increasing problem size. For shell sort and annealing sort, only the best two cases are shown in this graph.
199
+
200
+

201
+
202
+
Among all the sorting algorithms tested, annealing 4 is the fastest.
203
+
204
+
2. Perform regression analysis of the running time experiements. For shell sort and annealing sort, only the best two cases are shown in this graph.
205
+
206
+

207
+
208
+
Regression analysis also shows annealing 4 has the smallest slope on log-log scale which means it is the fastest.
209
+
210
+
3. The following graph shows the running time of shell sort over all different gap sequences above:
211
+
212
+

213
+
214
+
The best two cases of shell sort are: shell 1 and shell 2. And shell 1 is even faster than shell 2. Overall, gap sequence: [1601, 801, 300, 132, 57, 10, 1] has the best performance.
215
+
216
+
4. The following graph shows the running time of annealing sort over all different temparature sequences and repetition sequences above:
217
+
218
+

219
+
220
+
The best two cases of annealing sort are: annealing 2 (orange line) and annealing 4 (red line). The lines of these two different parameters almost overlapped. Annealing 4 is a little bit better than annealing 2.
In this section, the input testing data is almost sorted by independently choosing 2logn pairs, (i, j), where i and j are uniformly-chosen random integers in the range from 0 to n-1, and swap the numbers at positions i and j in the array/vector.
227
+
228
+
1. The graph below shows the running time of different algorithms on increasing problem size.
229
+
230
+
2. Regression analysis of the running time experiements
231
+
232
+
3. The following graph shows the running time of shell sort over all different gap sequences:
233
+
234
+
4. The following graph shows the running time of annealing sort over all different temparature sequences and repetition sequences:
0 commit comments