Skip to content

ulsgks/ford-johnson_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

The Ford-Johnson algorithm... in C++98

Did this project help you? Give it a 🌟!

πŸ“Š Context

This is an exercise from the 42 school curriculum.
Version: 2.2 of C++ Module 09.
The implementation follows carefully the description given in the book "The Art of Computer Programming" by Donald Knuth. If you find any mistake, please let me know.

πŸš€ Benchmark

The program's test suite outputs a brief time benchmark comparing the time performance of std::vector and std::deque with my implementation. However, absolute time measurements are not particularly relevant since the Ford-Johnson algorithm is designed to minimize the number of comparisons rather than optimize execution time.
While the implementation does not measure the actual number of comparisons, the sorting behavior should align with the Ford-Johnson algorithm's theoretical description.

πŸ—οΈ Architecture

See architecture.md for detailed diagrams of the project structure and the Ford-Johnson algorithm flow.

πŸ“š Wonderful resources

About

Ford-Johnson (merge-insertion) sorting algorithm implementation in C++98 for 42 school.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published