me . tweets . art . photography
alexfertel / rust-algorithms Goto Github PK
View Code? Open in Web Editor NEWAlgorithms and Data Structures of all kinds written in Rust.
License: MIT License
Algorithms and Data Structures of all kinds written in Rust.
License: MIT License
me . tweets . art . photography
Currently, we have the assert_sorted!
and assert_not_sorted!
macros that make it easy to check that an array is sorted. But we have very similar tests for the sorting algorithms and it makes sense because the API of those algorithms should be the same or very similar: You take an array and sort it.
Therefore, I think it makes sense to come up with a new macro that represents our test suite for sorting algorithms, and then we can extend each local module with other tests that may be relevant to a specific algorithm like counting sort
not relying on items being integers.
We want to document each class of algorithms. This comes in two flavors:
sorting
.You can find examples of documentation comments here.
General guidelines for the explanations are:
Following the discussion in #35 it would be good to make tests consistent across sorting algorithm implementations such that they share a basic suite (calling the sorting_tests!
macro) and then any other test that might be meaningful to that particular algorithm.
The current implementation of Counting Sort supports sorting integers only, but it can be extended to support any form of object that is represented by an integer key.
Also, the current implementation is missing tests for stability. Since radix sort
relies on this algorithms' property of being stable, it would be nice to assert that it is present.
It would be good to have CI for the project where we run the tests and formatting.
Right now the approach is to run the following commands before every push:
cargo fmt
cargo tests
This can be found in the git-config
directory, with the related config in .gitconfig
.
This repository was born because https://github.com/TheAlgorithms/Rust is not being maintained.
It would be nice to migrate the algorithms that are already implemented there to this repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.