diff --git a/lab2/zad2/gnuplot/k1/comp_large.gp b/lab2/zad2/gnuplot/k1/comp_large.gp index 5f03c25..c0dc2f5 100644 --- a/lab2/zad2/gnuplot/k1/comp_large.gp +++ b/lab2/zad2/gnuplot/k1/comp_large.gp @@ -5,9 +5,8 @@ set xlabel "n" set ylabel "Average comparisons" set term pdfcairo font "JetBrainsMono-NF,12" -plot "./results/k1/small" \ -using 1:2 t "InsertionSort", \ -"" using 1:4 t "QuickSort", \ -"" using 1:6 t "HybridSort" +plot "./results/k1/large" \ +using 1:2 t "QuickSort", \ +"" using 1:4 t "HybridSort" # vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/comp_large_n.gp b/lab2/zad2/gnuplot/k1/comp_large_n.gp new file mode 100644 index 0000000..f030ccc --- /dev/null +++ b/lab2/zad2/gnuplot/k1/comp_large_n.gp @@ -0,0 +1,12 @@ +set title "Average comparisons / n, k = 1, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +set ylabel "Average comparisons / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k1/large" \ +using 1:6 t "QuickSort", \ +"" using 1:8 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/comp_small_n.gp b/lab2/zad2/gnuplot/k1/comp_small_n.gp new file mode 100644 index 0000000..5101231 --- /dev/null +++ b/lab2/zad2/gnuplot/k1/comp_small_n.gp @@ -0,0 +1,13 @@ +set title "Average comparisons / n, k = 1, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average comparisons / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k1/small" \ +using 1:8 t "InsertionSort", \ +"" using 1:10 t "QuickSort", \ +"" using 1:12 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/swap_large.gp b/lab2/zad2/gnuplot/k1/swap_large.gp index 6bd0d67..cb3aba1 100644 --- a/lab2/zad2/gnuplot/k1/swap_large.gp +++ b/lab2/zad2/gnuplot/k1/swap_large.gp @@ -6,8 +6,7 @@ set ylabel "Average swaps" set term pdfcairo font "JetBrainsMono-NF,12" plot "./results/k1/large" \ -using 1:3 t "InsertionSort", \ -"" using 1:5 t "QuickSort", \ -"" using 1:7 t "HybridSort" +using 1:3 t "QuickSort", \ +"" using 1:5 t "HybridSort" # vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/swap_large_n.gp b/lab2/zad2/gnuplot/k1/swap_large_n.gp new file mode 100644 index 0000000..09df644 --- /dev/null +++ b/lab2/zad2/gnuplot/k1/swap_large_n.gp @@ -0,0 +1,12 @@ +set title "Average swaps / n, k = 1, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k1/large" \ +using 1:7 t "QuickSort", \ +"" using 1:9 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/swap_small_n.gp b/lab2/zad2/gnuplot/k1/swap_small_n.gp new file mode 100644 index 0000000..42ffecd --- /dev/null +++ b/lab2/zad2/gnuplot/k1/swap_small_n.gp @@ -0,0 +1,13 @@ +set title "Average swaps / n, k = 1, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k1/small" \ +using 1:9 t "InsertionSort", \ +"" using 1:11 t "QuickSort", \ +"" using 1:13 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/comp_large.gp b/lab2/zad2/gnuplot/k10/comp_large.gp index 5e97196..5628b6d 100644 --- a/lab2/zad2/gnuplot/k10/comp_large.gp +++ b/lab2/zad2/gnuplot/k10/comp_large.gp @@ -5,9 +5,8 @@ set xlabel "n" set ylabel "Average comparisons" set term pdfcairo font "JetBrainsMono-NF,12" -plot "./results/k10/small" \ -using 1:2 t "InsertionSort", \ -"" using 1:4 t "QuickSort", \ -"" using 1:6 t "HybridSort" +plot "./results/k10/large" \ +using 1:2 t "QuickSort", \ +"" using 1:4 t "HybridSort" # vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/comp_large_n.gp b/lab2/zad2/gnuplot/k10/comp_large_n.gp new file mode 100644 index 0000000..9274b66 --- /dev/null +++ b/lab2/zad2/gnuplot/k10/comp_large_n.gp @@ -0,0 +1,12 @@ +set title "Average comparisons / n, k = 10, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +set ylabel "Average comparisons / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k10/large" \ +using 1:6 t "QuickSort", \ +"" using 1:8 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/comp_small_n.gp b/lab2/zad2/gnuplot/k10/comp_small_n.gp new file mode 100644 index 0000000..ba81b3e --- /dev/null +++ b/lab2/zad2/gnuplot/k10/comp_small_n.gp @@ -0,0 +1,13 @@ +set title "Average comparisons / n, k = 10, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average comparisons / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k10/small" \ +using 1:8 t "InsertionSort", \ +"" using 1:10 t "QuickSort", \ +"" using 1:12 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/swap_large.gp b/lab2/zad2/gnuplot/k10/swap_large.gp index 4240153..e0b7ed9 100644 --- a/lab2/zad2/gnuplot/k10/swap_large.gp +++ b/lab2/zad2/gnuplot/k10/swap_large.gp @@ -6,8 +6,7 @@ set ylabel "Average swaps" set term pdfcairo font "JetBrainsMono-NF,12" plot "./results/k10/large" \ -using 1:3 t "InsertionSort", \ -"" using 1:5 t "QuickSort", \ -"" using 1:7 t "HybridSort" +using 1:3 t "QuickSort", \ +"" using 1:5 t "HybridSort" # vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/swap_large_n.gp b/lab2/zad2/gnuplot/k10/swap_large_n.gp new file mode 100644 index 0000000..49ccf15 --- /dev/null +++ b/lab2/zad2/gnuplot/k10/swap_large_n.gp @@ -0,0 +1,12 @@ +set title "Average swaps / n, k = 10, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k10/large" \ +using 1:7 t "QuickSort", \ +"" using 1:9 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/swap_small_n.gp b/lab2/zad2/gnuplot/k10/swap_small_n.gp new file mode 100644 index 0000000..25327c6 --- /dev/null +++ b/lab2/zad2/gnuplot/k10/swap_small_n.gp @@ -0,0 +1,13 @@ +set title "Average swaps / n, k = 10, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k10/small" \ +using 1:9 t "InsertionSort", \ +"" using 1:11 t "QuickSort", \ +"" using 1:13 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/comp_large.gp b/lab2/zad2/gnuplot/k100/comp_large.gp index 23db9bd..e89c3dc 100644 --- a/lab2/zad2/gnuplot/k100/comp_large.gp +++ b/lab2/zad2/gnuplot/k100/comp_large.gp @@ -5,9 +5,8 @@ set xlabel "n" set ylabel "Average comparisons" set term pdfcairo font "JetBrainsMono-NF,12" -plot "./results/k100/small" \ -using 1:2 t "InsertionSort", \ -"" using 1:4 t "QuickSort", \ -"" using 1:6 t "HybridSort" +plot "./results/k100/large" \ +using 1:2 t "QuickSort", \ +"" using 1:4 t "HybridSort" # vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/comp_large_n.gp b/lab2/zad2/gnuplot/k100/comp_large_n.gp new file mode 100644 index 0000000..9d19880 --- /dev/null +++ b/lab2/zad2/gnuplot/k100/comp_large_n.gp @@ -0,0 +1,12 @@ +set title "Average comparisons / n, k = 100, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +set ylabel "Average comparisons / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k100/large" \ +using 1:6 t "QuickSort", \ +"" using 1:8 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/comp_small_n.gp b/lab2/zad2/gnuplot/k100/comp_small_n.gp new file mode 100644 index 0000000..98cb1ff --- /dev/null +++ b/lab2/zad2/gnuplot/k100/comp_small_n.gp @@ -0,0 +1,13 @@ +set title "Average comparisons / n, k = 100, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average comparisons / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k100/small" \ +using 1:8 t "InsertionSort", \ +"" using 1:10 t "QuickSort", \ +"" using 1:12 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/swap_large.gp b/lab2/zad2/gnuplot/k100/swap_large.gp index f1038be..bc0f958 100644 --- a/lab2/zad2/gnuplot/k100/swap_large.gp +++ b/lab2/zad2/gnuplot/k100/swap_large.gp @@ -6,8 +6,7 @@ set ylabel "Average swaps" set term pdfcairo font "JetBrainsMono-NF,12" plot "./results/k100/large" \ -using 1:3 t "InsertionSort", \ -"" using 1:5 t "QuickSort", \ -"" using 1:7 t "HybridSort" +using 1:3 t "QuickSort", \ +"" using 1:5 t "HybridSort" # vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/swap_large_n.gp b/lab2/zad2/gnuplot/k100/swap_large_n.gp new file mode 100644 index 0000000..f9a3616 --- /dev/null +++ b/lab2/zad2/gnuplot/k100/swap_large_n.gp @@ -0,0 +1,12 @@ +set title "Average swaps / n, k = 100, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k100/large" \ +using 1:7 t "QuickSort", \ +"" using 1:9 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/swap_small_n.gp b/lab2/zad2/gnuplot/k100/swap_small_n.gp new file mode 100644 index 0000000..d0c5a83 --- /dev/null +++ b/lab2/zad2/gnuplot/k100/swap_small_n.gp @@ -0,0 +1,13 @@ +set title "Average swaps / n, k = 100, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps / n" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k100/small" \ +using 1:9 t "InsertionSort", \ +"" using 1:11 t "QuickSort", \ +"" using 1:13 t "HybridSort" + +# vim: ft=gnuplot