From 3157b6f8e47cd192bd1fd5102cf72a230c26ac64 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 9 Apr 2024 18:07:00 +0200 Subject: [PATCH] add gnuplot files --- lab2/zad2/gnuplot/k1/comp_large.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k1/comp_small.gp | 3 ++- lab2/zad2/gnuplot/k1/swap_large.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k1/swap_small.gp | 3 ++- lab2/zad2/gnuplot/k10/comp_large.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k10/comp_small.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k10/swap_large.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k10/swap_small.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k100/comp_large.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k100/comp_small.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k100/swap_large.gp | 13 +++++++++++++ lab2/zad2/gnuplot/k100/swap_small.gp | 13 +++++++++++++ 12 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 lab2/zad2/gnuplot/k1/comp_large.gp create mode 100644 lab2/zad2/gnuplot/k1/swap_large.gp create mode 100644 lab2/zad2/gnuplot/k10/comp_large.gp create mode 100644 lab2/zad2/gnuplot/k10/comp_small.gp create mode 100644 lab2/zad2/gnuplot/k10/swap_large.gp create mode 100644 lab2/zad2/gnuplot/k10/swap_small.gp create mode 100644 lab2/zad2/gnuplot/k100/comp_large.gp create mode 100644 lab2/zad2/gnuplot/k100/comp_small.gp create mode 100644 lab2/zad2/gnuplot/k100/swap_large.gp create mode 100644 lab2/zad2/gnuplot/k100/swap_small.gp diff --git a/lab2/zad2/gnuplot/k1/comp_large.gp b/lab2/zad2/gnuplot/k1/comp_large.gp new file mode 100644 index 0000000..5f03c25 --- /dev/null +++ b/lab2/zad2/gnuplot/k1/comp_large.gp @@ -0,0 +1,13 @@ +set title "Average comparisons, k = 1, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/comp_small.gp b/lab2/zad2/gnuplot/k1/comp_small.gp index 0779635..a043505 100644 --- a/lab2/zad2/gnuplot/k1/comp_small.gp +++ b/lab2/zad2/gnuplot/k1/comp_small.gp @@ -1,8 +1,9 @@ -set title "Average comparisons, k = 1, n in {10, 20, ..., 50}" +set title "Average comparisons, k = 1, n ∈ {10, 20, ..., 50}" set style data lines set xlabel "n" set ylabel "Average comparisons" +set term pdfcairo font "JetBrainsMono-NF,12" plot "./results/k1/small" \ using 1:2 t "InsertionSort", \ diff --git a/lab2/zad2/gnuplot/k1/swap_large.gp b/lab2/zad2/gnuplot/k1/swap_large.gp new file mode 100644 index 0000000..6bd0d67 --- /dev/null +++ b/lab2/zad2/gnuplot/k1/swap_large.gp @@ -0,0 +1,13 @@ +set title "Average swaps, k = 1, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k1/swap_small.gp b/lab2/zad2/gnuplot/k1/swap_small.gp index fd6d6cc..278daf4 100644 --- a/lab2/zad2/gnuplot/k1/swap_small.gp +++ b/lab2/zad2/gnuplot/k1/swap_small.gp @@ -1,8 +1,9 @@ -set title "Average swaps, k = 1, n = {10, 20, ..., 50}" +set title "Average swaps, k = 1, n ∈ {10, 20, ..., 50}" set style data lines set xlabel "n" set ylabel "Average swaps" +set term pdfcairo font "JetBrainsMono-NF,12" plot "./results/k1/small" \ using 1:3 t "InsertionSort", \ diff --git a/lab2/zad2/gnuplot/k10/comp_large.gp b/lab2/zad2/gnuplot/k10/comp_large.gp new file mode 100644 index 0000000..5e97196 --- /dev/null +++ b/lab2/zad2/gnuplot/k10/comp_large.gp @@ -0,0 +1,13 @@ +set title "Average comparisons, k = 10, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/comp_small.gp b/lab2/zad2/gnuplot/k10/comp_small.gp new file mode 100644 index 0000000..407f6b6 --- /dev/null +++ b/lab2/zad2/gnuplot/k10/comp_small.gp @@ -0,0 +1,13 @@ +set title "Average comparisons, k = 10, n ∈ {10, 20, ..., 50}" +set style data lines + +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/swap_large.gp b/lab2/zad2/gnuplot/k10/swap_large.gp new file mode 100644 index 0000000..4240153 --- /dev/null +++ b/lab2/zad2/gnuplot/k10/swap_large.gp @@ -0,0 +1,13 @@ +set title "Average swaps, k = 10, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k10/swap_small.gp b/lab2/zad2/gnuplot/k10/swap_small.gp new file mode 100644 index 0000000..b6b316f --- /dev/null +++ b/lab2/zad2/gnuplot/k10/swap_small.gp @@ -0,0 +1,13 @@ +set title "Average swaps, k = 10, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k10/small" \ +using 1:3 t "InsertionSort", \ +"" using 1:5 t "QuickSort", \ +"" using 1:7 t "HybridSort" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/comp_large.gp b/lab2/zad2/gnuplot/k100/comp_large.gp new file mode 100644 index 0000000..23db9bd --- /dev/null +++ b/lab2/zad2/gnuplot/k100/comp_large.gp @@ -0,0 +1,13 @@ +set title "Average comparisons, k = 100, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/comp_small.gp b/lab2/zad2/gnuplot/k100/comp_small.gp new file mode 100644 index 0000000..5cd3de8 --- /dev/null +++ b/lab2/zad2/gnuplot/k100/comp_small.gp @@ -0,0 +1,13 @@ +set title "Average comparisons, k = 100, n ∈ {10, 20, ..., 50}" +set style data lines + +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/swap_large.gp b/lab2/zad2/gnuplot/k100/swap_large.gp new file mode 100644 index 0000000..f1038be --- /dev/null +++ b/lab2/zad2/gnuplot/k100/swap_large.gp @@ -0,0 +1,13 @@ +set title "Average swaps, k = 100, n ∈ {1000, 2000, ..., 50000}" +set style data lines + +set xlabel "n" +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" + +# vim: ft=gnuplot diff --git a/lab2/zad2/gnuplot/k100/swap_small.gp b/lab2/zad2/gnuplot/k100/swap_small.gp new file mode 100644 index 0000000..22674d2 --- /dev/null +++ b/lab2/zad2/gnuplot/k100/swap_small.gp @@ -0,0 +1,13 @@ +set title "Average swaps, k = 100, n ∈ {10, 20, ..., 50}" +set style data lines + +set xlabel "n" +set ylabel "Average swaps" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/k100/small" \ +using 1:3 t "InsertionSort", \ +"" using 1:5 t "QuickSort", \ +"" using 1:7 t "HybridSort" + +# vim: ft=gnuplot