add gnuplot files and the plots for lab2/zad4

This commit is contained in:
jacekpoz 2024-04-10 14:05:10 +02:00
parent fec9c7d713
commit ad9f69de9d
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
49 changed files with 289 additions and 0 deletions

View file

@ -1 +1,2 @@
target/
results/

View file

@ -0,0 +1,12 @@
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/large" \
using 1:2 t "QuickSort", \
"" using 1:4 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -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 "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:4 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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:6 t "QuickSort", \
"" using 1:8 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:5 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -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 "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:5 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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:7 t "QuickSort", \
"" using 1:9 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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/large" \
using 1:2 t "QuickSort", \
"" using 1:4 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -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 "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:4 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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:6 t "QuickSort", \
"" using 1:8 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:5 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -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 "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:5 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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:7 t "QuickSort", \
"" using 1:9 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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/large" \
using 1:2 t "QuickSort", \
"" using 1:4 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -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 "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:4 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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:6 t "QuickSort", \
"" using 1:8 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:5 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -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 "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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 "QuickSort", \
"" using 1:5 t "DualPivotQuickSort"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
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:7 t "QuickSort", \
"" using 1:9 t "DualPivotQuickSort"
# vim: ft=gnuplot

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.