Skip to content

MalhotraPulak/rust-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting in Rust

Sorting a 32 bit unsigned integer vector by using:

  • Radix Sort
  • Quick Sort
  • Merge Sort
  • Bubble Sort
  • Inbuilt Sort (Probably Tim Sort)

This program takes a vector length as input and generates an array of random numbers of that size. Then it sorts this vector with each of the sorting algorithms and reports the time.

How to run?

cargo run --release <length of vector to sort>

A sample run with array length 50000

Screenshot 2021-11-28 at 12 04 44 PM

About

Learning rust by coding different sorting algorithms in it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages