Python
Python copied to clipboard
All Algorithms implemented in Python
### Describe your change: I have added a new algorithm, RC4 (Rivest Cipher 4), which is a stream cipher used for encryption and decryption of messages. The RC4 algorithm generates...
### Feature description Related to issue #8844 TL;DR: the current implementation doesn't give optimal solutions, the current implementation calculates SSE wrong, and we should add an implementation of a numerical...
### Describe your change: This algorithm is a brute-force search over (nearly) all 2^n possible partitions and was created for educational purposes. The asymptotic runtime of this code is: O(n...
### Describe your change: Adding a matrix equalization algorithm, which equalizes all elements of the input vector to a common value, by making the minimal number of "updates" under the...
### Describe your change: Enable ruff `RUF007` rule * [ ] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [ ] Add or...
### Describe your change: * [ ] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? --...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Describe your change: --- In this refactored version: * I've organized the code into a `KnightTour` class to encapsulate related functions. * Each method now belongs to the `KnightTour`...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Feature description The beta release of numpy is now available so we should run the appropriate `ruff` command and ensure our algorithms are compatible... https://numpy.org/devdocs/numpy_2_0_migration_guide.html @MaximSmolskiy