Cs340 - Project 1 and 2
Go to file
2023-02-11 19:22:37 -06:00
bin Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
build Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
include Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
src Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
test Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
.gitignore Adjusted .gitignore 2023-02-11 19:21:09 -06:00
Makefile Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
README.md Updated README.md, fixed merge sort, added checking output with bash script, and added sort arguments 2023-02-11 19:22:37 -06:00
wordlists.zip Initial commit 2023-01-11 12:09:03 -06:00

Sorting

A program written to test the time complexity of insertion, merge, and heap sort

Author

Gregory Crawford

Compiling

Run make to compile the project. Output files get placed into test/SORTED

Running

Run bin/main.out with chosen arguments to run program

Commands

bin/main.out [-a | -f filename | -d]

Ex: bin/main.out -f test/PERM/perm15K.txt -s merge

Arguments

File selection

-a OR --all

  • Runs through all the original files (perm15K.txt - perm150K.txt)
    • EX: bin/main.out -a

-f path/to/file.txt OR --filename path/to/file.txt

  • Runs a specific file to sort
    • EX: bin/main.out -f perm15K.txt

-d OR --default (default)

  • Runs sort only on the default test file (perm15K.txt)
    • EX: bin/main.out -d

Sorting type selection

-s | --sort-type

  • Selects a sort type
  • Options:
    • insertion
      • EX: bin/main.out -s insertion
    • merge
      • EX: bin/main.out -s merge
    • heap
      • EX: bin/main.out -s heap
    • all (default)
      • EX: bin/main.out -s all

Notes