add gnuplot files and the plots for lab2/zad4
This commit is contained in:
parent
fec9c7d713
commit
ad9f69de9d
49 changed files with 289 additions and 0 deletions
1
lab2/zad4/.gitignore
vendored
1
lab2/zad4/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
target/
|
target/
|
||||||
|
results/
|
||||||
|
|
12
lab2/zad4/gnuplot/k1/comp_large.gp
Normal file
12
lab2/zad4/gnuplot/k1/comp_large.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/comp_large_n.gp
Normal file
12
lab2/zad4/gnuplot/k1/comp_large_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/comp_small.gp
Normal file
12
lab2/zad4/gnuplot/k1/comp_small.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/comp_small_n.gp
Normal file
12
lab2/zad4/gnuplot/k1/comp_small_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/swap_large.gp
Normal file
12
lab2/zad4/gnuplot/k1/swap_large.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/swap_large_n.gp
Normal file
12
lab2/zad4/gnuplot/k1/swap_large_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/swap_small.gp
Normal file
12
lab2/zad4/gnuplot/k1/swap_small.gp
Normal 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
|
12
lab2/zad4/gnuplot/k1/swap_small_n.gp
Normal file
12
lab2/zad4/gnuplot/k1/swap_small_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/comp_large.gp
Normal file
12
lab2/zad4/gnuplot/k10/comp_large.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/comp_large_n.gp
Normal file
12
lab2/zad4/gnuplot/k10/comp_large_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/comp_small.gp
Normal file
12
lab2/zad4/gnuplot/k10/comp_small.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/comp_small_n.gp
Normal file
12
lab2/zad4/gnuplot/k10/comp_small_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/swap_large.gp
Normal file
12
lab2/zad4/gnuplot/k10/swap_large.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/swap_large_n.gp
Normal file
12
lab2/zad4/gnuplot/k10/swap_large_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/swap_small.gp
Normal file
12
lab2/zad4/gnuplot/k10/swap_small.gp
Normal 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
|
12
lab2/zad4/gnuplot/k10/swap_small_n.gp
Normal file
12
lab2/zad4/gnuplot/k10/swap_small_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/comp_large.gp
Normal file
12
lab2/zad4/gnuplot/k100/comp_large.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/comp_large_n.gp
Normal file
12
lab2/zad4/gnuplot/k100/comp_large_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/comp_small.gp
Normal file
12
lab2/zad4/gnuplot/k100/comp_small.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/comp_small_n.gp
Normal file
12
lab2/zad4/gnuplot/k100/comp_small_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/swap_large.gp
Normal file
12
lab2/zad4/gnuplot/k100/swap_large.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/swap_large_n.gp
Normal file
12
lab2/zad4/gnuplot/k100/swap_large_n.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/swap_small.gp
Normal file
12
lab2/zad4/gnuplot/k100/swap_small.gp
Normal 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
|
12
lab2/zad4/gnuplot/k100/swap_small_n.gp
Normal file
12
lab2/zad4/gnuplot/k100/swap_small_n.gp
Normal 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
|
BIN
lab2/zad4/plots/k100_comp_large.pdf
Normal file
BIN
lab2/zad4/plots/k100_comp_large.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_comp_large_n.pdf
Normal file
BIN
lab2/zad4/plots/k100_comp_large_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_comp_small.pdf
Normal file
BIN
lab2/zad4/plots/k100_comp_small.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_comp_small_n.pdf
Normal file
BIN
lab2/zad4/plots/k100_comp_small_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_swap_large.pdf
Normal file
BIN
lab2/zad4/plots/k100_swap_large.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_swap_large_n.pdf
Normal file
BIN
lab2/zad4/plots/k100_swap_large_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_swap_small.pdf
Normal file
BIN
lab2/zad4/plots/k100_swap_small.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k100_swap_small_n.pdf
Normal file
BIN
lab2/zad4/plots/k100_swap_small_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_comp_large.pdf
Normal file
BIN
lab2/zad4/plots/k10_comp_large.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_comp_large_n.pdf
Normal file
BIN
lab2/zad4/plots/k10_comp_large_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_comp_small.pdf
Normal file
BIN
lab2/zad4/plots/k10_comp_small.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_comp_small_n.pdf
Normal file
BIN
lab2/zad4/plots/k10_comp_small_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_swap_large.pdf
Normal file
BIN
lab2/zad4/plots/k10_swap_large.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_swap_large_n.pdf
Normal file
BIN
lab2/zad4/plots/k10_swap_large_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_swap_small.pdf
Normal file
BIN
lab2/zad4/plots/k10_swap_small.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k10_swap_small_n.pdf
Normal file
BIN
lab2/zad4/plots/k10_swap_small_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_comp_large.pdf
Normal file
BIN
lab2/zad4/plots/k1_comp_large.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_comp_large_n.pdf
Normal file
BIN
lab2/zad4/plots/k1_comp_large_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_comp_small.pdf
Normal file
BIN
lab2/zad4/plots/k1_comp_small.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_comp_small_n.pdf
Normal file
BIN
lab2/zad4/plots/k1_comp_small_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_swap_large.pdf
Normal file
BIN
lab2/zad4/plots/k1_swap_large.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_swap_large_n.pdf
Normal file
BIN
lab2/zad4/plots/k1_swap_large_n.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_swap_small.pdf
Normal file
BIN
lab2/zad4/plots/k1_swap_small.pdf
Normal file
Binary file not shown.
BIN
lab2/zad4/plots/k1_swap_small_n.pdf
Normal file
BIN
lab2/zad4/plots/k1_swap_small_n.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue