add zad2 plots
This commit is contained in:
parent
cc9c87fe85
commit
2d8f0a46f3
32 changed files with 192 additions and 0 deletions
12
lab3/zad2/gnuplot/k1/comp.gp
Normal file
12
lab3/zad2/gnuplot/k1/comp.gp
Normal 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
|
12
lab3/zad2/gnuplot/k1/comp_n.gp
Normal file
12
lab3/zad2/gnuplot/k1/comp_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/k1/swap.gp
Normal file
12
lab3/zad2/gnuplot/k1/swap.gp
Normal 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
|
12
lab3/zad2/gnuplot/k1/swap_n.gp
Normal file
12
lab3/zad2/gnuplot/k1/swap_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn/comp.gp
Normal file
12
lab3/zad2/gnuplot/kn/comp.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn/comp_n.gp
Normal file
12
lab3/zad2/gnuplot/kn/comp_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn/swap.gp
Normal file
12
lab3/zad2/gnuplot/kn/swap.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn/swap_n.gp
Normal file
12
lab3/zad2/gnuplot/kn/swap_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn2/comp.gp
Normal file
12
lab3/zad2/gnuplot/kn2/comp.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn2/comp_n.gp
Normal file
12
lab3/zad2/gnuplot/kn2/comp_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn2/swap.gp
Normal file
12
lab3/zad2/gnuplot/kn2/swap.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn2/swap_n.gp
Normal file
12
lab3/zad2/gnuplot/kn2/swap_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn4/comp.gp
Normal file
12
lab3/zad2/gnuplot/kn4/comp.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn4/comp_n.gp
Normal file
12
lab3/zad2/gnuplot/kn4/comp_n.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn4/swap.gp
Normal file
12
lab3/zad2/gnuplot/kn4/swap.gp
Normal 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
|
12
lab3/zad2/gnuplot/kn4/swap_n.gp
Normal file
12
lab3/zad2/gnuplot/kn4/swap_n.gp
Normal 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
BIN
lab3/zad2/plots/k1_comp.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/k1_comp_n.pdf
Normal file
BIN
lab3/zad2/plots/k1_comp_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/k1_swap.pdf
Normal file
BIN
lab3/zad2/plots/k1_swap.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/k1_swap_n.pdf
Normal file
BIN
lab3/zad2/plots/k1_swap_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn2_comp.pdf
Normal file
BIN
lab3/zad2/plots/kn2_comp.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn2_comp_n.pdf
Normal file
BIN
lab3/zad2/plots/kn2_comp_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn2_swap.pdf
Normal file
BIN
lab3/zad2/plots/kn2_swap.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn2_swap_n.pdf
Normal file
BIN
lab3/zad2/plots/kn2_swap_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn4_comp.pdf
Normal file
BIN
lab3/zad2/plots/kn4_comp.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn4_comp_n.pdf
Normal file
BIN
lab3/zad2/plots/kn4_comp_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn4_swap.pdf
Normal file
BIN
lab3/zad2/plots/kn4_swap.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn4_swap_n.pdf
Normal file
BIN
lab3/zad2/plots/kn4_swap_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn_comp.pdf
Normal file
BIN
lab3/zad2/plots/kn_comp.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn_comp_n.pdf
Normal file
BIN
lab3/zad2/plots/kn_comp_n.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn_swap.pdf
Normal file
BIN
lab3/zad2/plots/kn_swap.pdf
Normal file
Binary file not shown.
BIN
lab3/zad2/plots/kn_swap_n.pdf
Normal file
BIN
lab3/zad2/plots/kn_swap_n.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue