https://github.com/matheus-git/wasm-rust-algorithms
https://github.com/matheus-git/wasm-rust-algorithms
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matheus-git/wasm-rust-algorithms
- Owner: Matheus-git
- Created: 2025-02-16T17:49:21.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-16T17:55:47.000Z (over 1 year ago)
- Last Synced: 2025-03-21T00:32:58.739Z (over 1 year ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust WASM algorithms
This project is configured to compile to WebAssembly (WASM) and includes several algorithms implemented in Rust. The algorithms present in this repository are:
- **Quicksort**: An efficient sorting algorithm.
- **Binary Search**: An algorithm for binary search in a sorted array.
- **Temperature Conversion**: Functions for converting between Celsius and Fahrenheit.
## Algorithms
### 1. **Quicksort**
The Quicksort algorithm is an efficient sorting algorithm that uses the divide-and-conquer technique. It selects a pivot element and partitions the array into elements smaller and larger than the pivot, recursively sorting the sublists.
### 2. **Binary Search**
Binary search is an efficient algorithm for finding a value in a sorted array. It repeatedly divides the array in half and compares the target value with the value in the middle of the array, reducing the search range until the target is found or determined to be absent.
### 3. **Temperature Conversion**
The temperature conversion functions allow conversion between Celsius and Fahrenheit. These functions use simple formulas to convert values from one unit to another.
## License
This project is licensed under the MIT License. See the LICENSE file for more details.