3162
Comment:
|
3313
|
Deletions are marked like this. | Additions are marked like this. |
Line 18: | Line 18: |
||ad289||1035μs||355μs||2.92||54μs||96μs||0.56||980μs||4574μs||0.21||C++||Combination of Sentinels, Binary Search in the remaining longer list and Skip Pointers.|| ||jd219||1541μs||506μs||3.04||90μs||73μs||1.22||1725μs||2747μs||0.62||C++||Combination of binary search and Sentinels and galloping search.|| |
||ad289||1010μs||972μs||1.03||1066μs||1015μs||1.05||905μs||567μs||1.60||C++||Combination of Sentinels, Binary Search in the remaining longer list and Skip Pointers.|| ||jd219||1541μs||506μs||3.04||90μs||73μs||1.22||1725μs||2747μs||0.63||C++||Combination of binary search and Sentinels and galloping search.|| ||ar163||872μs||166μs||5.25||41μs||50μs||0.82||1094μs||2176μs||0.50||C++||Combination of galloping search and binary search in both lists.|| |
Results for Exercise Sheet 3 (Intersecting Lists)
Add your row to the table below, following the examples already there. In the 1st column, write your account name, or name1+name2 if you work in a group. For each intersection result, write down (1) the runtime of the baseline algorithm, (2) the runtime of your improved algorithm (both in microseconds as an integer) and (3) the speedup ratio as float with exactly two digits of precision, measured as time_for_baseline / time_for_your_algorithm (<1 = slower, >1 = faster). In the last column briefly describe the improvements you implemented.
|
film + rug |
bowling + rug |
film + bowling |
|
||||||||
Name |
Baseline |
Yours |
Ratio |
Baseline |
Yours |
Ratio |
Baseline |
Yours |
Ratio |
Language |
Summary Improvements |
|
ck1028 |
8570µs |
3298µs |
2.59 |
545µs |
520µs |
1.05 |
12920µs |
8796µs |
1.46 |
Java |
Combination of zipper algorithm & binary search in remainder of longer list; sentinels. |
|
ck1028 |
1767µs |
260µs |
6.79 |
116µs |
65µs |
1.78 |
1898µs |
1784µs |
1.06 |
C++ |
Combination of zipper algorithm & galloping search; sentinels. |
|
jt143 |
5094µs |
2566µs |
1.98 |
4518µs |
3578µs |
1.26 |
8388µs |
6756µs |
1.24 |
Java |
Combination of binary search & galloping search; sentinels. |
|
ky18 |
1328µs |
324µs |
4.08 |
81µs |
194µs |
0.41 |
2041µs |
2394µs |
0.85 |
Java |
Combination of binary search, galloping search and zipper; sentinels. |
|
as954 |
703μs |
11μs |
58.58 |
48μs |
9μs |
5.33 |
1747μs |
243μs |
7.19 |
Java |
Combination of sentinels, galloping search and search in remainder of longer list |
|
ml360 |
6357μs |
2029μs |
3,13 |
550μs |
270μs |
2,03 |
11029μs |
6854μs |
1.61 |
C++ |
Combination of sentinels, search in remainder of longer list and binary search and zipper |
|
ak736 + lf124 |
1880943μs |
152283μs |
12,35 |
129737μs |
193191μs |
0,67 |
1433462μs |
2138159μs |
0,67 |
C++ |
Combination of binary search & galloping search; sentinels. |
|
ms946 |
867μs |
1008μs |
0.86 |
445μs |
503μs |
0.88 |
2139μs |
3078μs |
0.7 |
Java |
Combination of binary search in remainder of longer list & galloping search in remainder of longer list. |
|
lc133+kt101 |
4436μs |
3513μs |
1.26 |
4492μs |
3568μs |
1.26 |
2980μs |
2283μs |
1.30 |
Java |
Combination of Sentinels, Galloping Search and Binary Search in the remaining longer list. |
|
cn93+aa278 |
1270μs |
775μs |
1,64 |
670μs |
553μs |
1,21 |
1149μs |
3740μs |
0,31 |
Java |
Combination of Sentinels, binary search Search and Binary Search in the remaining longer list. |
|
cn93+aa278 |
3400μs |
983μs |
3,46 |
1801μs |
828μs |
2,18 |
3069μs |
1907μs |
1,61 |
Java |
Combination of Sentinels, Galloping search and Binary Search. |
|
ad289 |
1010μs |
972μs |
1.03 |
1066μs |
1015μs |
1.05 |
905μs |
567μs |
1.60 |
C++ |
Combination of Sentinels, Binary Search in the remaining longer list and Skip Pointers. |
|
jd219 |
1541μs |
506μs |
3.04 |
90μs |
73μs |
1.22 |
1725μs |
2747μs |
0.63 |
C++ |
Combination of binary search and Sentinels and galloping search. |
|
ar163 |
872μs |
166μs |
5.25 |
41μs |
50μs |
0.82 |
1094μs |
2176μs |
0.50 |
C++ |
Combination of galloping search and binary search in both lists. |