This repository contains the LaTeX source files, figures, and compilation scripts for the research paper:
Wave Sort (W-Sort): A Novel In-Place Algorithm with Dynamic Pivoting for Consistent Performance and Logarithmic Stack Depth
- arXiv Paper: arXiv:2505.13552
- Author: Jia Xu Wei (University of California, Davis)
Modern comparison sorts like quicksort suffer from performance inconsistencies due to suboptimal pivot selection, leading to
You can compile this LaTeX document locally.
Install TeX Live dependencies (Ubuntu/Debian/Mint):
sudo apt update
sudo apt install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-bibtex-extra latexmkA Makefile is provided to make compilation easy:
- Build PDF:
make(generates PDF atoutput/main.pdf) - Clean Auxiliary Files (keeps output/main.pdf):
make clean
- main.tex — Main LaTeX document entry point.
- wlpeerj.cls — Unofficial LaTeX PeerJ journal class.
- sample.bib — Reference bibliography file.
- sections/ — Subdirectories containing individual paper sections.
Fig*.pdfandFig*.png— Figure illustrations used in the paper.