add zad2 plots

This commit is contained in:
jacekpoz 2024-05-09 02:12:01 +02:00
parent cc9c87fe85
commit 2d8f0a46f3
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
32 changed files with 192 additions and 0 deletions

View file

@ -0,0 +1,12 @@
set title "Average comparisons, k = 1, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/k1" \
using 1:2 t "NormalSelect", \
"" using 1:4 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons / n, k = 1, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/k1" \
using 1:6 t "NormalSelect", \
"" using 1:8 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps, k = 1, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/k1" \
using 1:3 t "NormalSelect", \
"" using 1:5 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps / n, k = 1, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/k1" \
using 1:7 t "NormalSelect", \
"" using 1:9 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons, k = n, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn" \
using 1:2 t "NormalSelect", \
"" using 1:4 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons / n, k = n, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn" \
using 1:6 t "NormalSelect", \
"" using 1:8 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps, k = n, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn" \
using 1:3 t "NormalSelect", \
"" using 1:5 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps / n, k = n, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn" \
using 1:7 t "NormalSelect", \
"" using 1:9 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons, k = n / 2, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn2" \
using 1:2 t "NormalSelect", \
"" using 1:4 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons / n, k = n / 2, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn2" \
using 1:6 t "NormalSelect", \
"" using 1:8 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps, k = n / 2, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn2" \
using 1:3 t "NormalSelect", \
"" using 1:5 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps / n, k = n / 2, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn2" \
using 1:7 t "NormalSelect", \
"" using 1:9 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons, k = n / 4, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn4" \
using 1:2 t "NormalSelect", \
"" using 1:4 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average comparisons / n, k = n / 4, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average comparisons / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn4" \
using 1:6 t "NormalSelect", \
"" using 1:8 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps, k = n / 4, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn4" \
using 1:3 t "NormalSelect", \
"" using 1:5 t "RandomizedSelect"
# vim: ft=gnuplot

View file

@ -0,0 +1,12 @@
set title "Average swaps / n, k = n / 4, n ∈ {100, 200, ..., 50000}"
set style data lines
set xlabel "n"
set ylabel "Average swaps / n"
set term pdfcairo font "JetBrainsMono-NF,12"
plot "./results/kn4" \
using 1:7 t "NormalSelect", \
"" using 1:9 t "RandomizedSelect"
# vim: ft=gnuplot

BIN
lab3/zad2/plots/k1_comp.pdf Normal file

Binary file not shown.

Binary file not shown.

BIN
lab3/zad2/plots/k1_swap.pdf Normal file

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.

BIN
lab3/zad2/plots/kn_comp.pdf Normal file

Binary file not shown.

Binary file not shown.

BIN
lab3/zad2/plots/kn_swap.pdf Normal file

Binary file not shown.

Binary file not shown.