-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.sh
More file actions
executable file
·20 lines (16 loc) · 940 Bytes
/
demo.sh
File metadata and controls
executable file
·20 lines (16 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
echo how many numbers must the array contain
read num
echo what sorting method do you wanna use [bogo, bubble, heap, merge, quick, radix, count, stalin]
read method
./python/generate.py ./demo/shuffled-$num.json $num shuffled
./python/generate.py ./demo/random-$num.json $num random
./python/generate.py ./demo/best-$num.json $num best
./python/generate.py ./demo/worst-$num.json $num worst
./build/cxx/mypkg ./demo/shuffled-$num.json ./demo/shuffled-sorted-$num.json $method
./build/cxx/mypkg ./demo/random-$num.json ./demo/random-sorted-$num.json $method
./build/cxx/mypkg ./demo/best-$num.json ./demo/best-sorted-$num.json $method
./build/cxx/mypkg ./demo/worst-$num.json ./demo/worst-sorted-$num.json $method
python ./python/check.py ./demo/shuffled-sorted-$num.json
python ./python/check.py ./demo/random-sorted-$num.json
python ./python/check.py ./demo/best-sorted-$num.json
python ./python/check.py ./demo/worst-sorted-$num.json