wget
to download the file at http://cs.longwood.edu/courses/cmsc162/f18/files/lab4.tgz
tar -xvzf lab4.tgz
ls
to see that there is a new directory called lab4
cd lab4
to change directory to the lab4 directory
You have been given a file named sorts.cpp
which contains almost all of the code you will need.
main
function.
Timings: Size Ins. Sel. Mer. Qui. 1024 0.004 0.006 0.001 0 2048 0.013 0.019 0.002 0 4096 0.047 0.069 0.005 0 8192 0.193 0.208 0.01 0.001 16384 0.811 0.824 0.022 0.003 32768 3.1 2.656 0.046 0.008 65536 12.261 10.08 0.094 0.02 Counts: Size Ins. Sel. Mer. Qui. 1024 265185 523776 28781 11446 2048 1039692 2096128 63646 25208 4096 4150928 8386560 139711 54638 8192 16848211 33550336 303952 139944 16384 66592925 134209536 657080 359932 32768 267547703 536854528 1412182 937162 65536 1067174897 2147450880 3020855 3016888
When you are done you need to hand in your lab. The easiest way is to type make handin
.
You lab is due at 11:59pm Sept. 18th 2018.