Skip to content

1.1.2

Latest

Choose a tag to compare

@Moon42Dev Moon42Dev released this 06 Jul 21:54
· 1 commit to main since this release
4b52ab2

PySort 1.1.2 Release Notes

Introduction

We are excited to announce the release of PySort 1.1.2, a minor update focused on enhancing the functionality and reliability of the package. This release includes bug fixes for the test folder and introduces new step-by-step print functions for each sorting algorithm. These improvements aim to make PySort more user-friendly and robust for developers and learners.

Bug Fixes

Test Folder Bugs

  • Resolved issues with the test cases that were causing incorrect test results.
  • Improved the stability and accuracy of the tests, ensuring they correctly validate the sorting algorithms.
  • Enhanced test coverage to include edge cases and ensure comprehensive testing of all sorting functions.

New Features

Step-by-Step Print Functions

We have added new step-by-step print functions to each sorting algorithm. These functions allow users to see the state of the array after each significant step in the sorting process. This feature is handy for educational purposes, enabling users to understand better how each algorithm works.

Example Usage

Here's how you can use the new features:

Bubble Sort with Step-by-Step Printing

from PySort.bubble_sort import bubble_sort

arr = [64, 34, 25, 12, 22, 11, 90]
bubble_sort(arr)

In this example, bubble_sort will print the state of the array at each step of the sorting process.

Counting Sort

from PySort.counting_sort import counting_sort

arr = [4, 2, 2, 8, 3, 3, 1]
sorted_arr = counting_sort(arr)
print("Sorted array:", sorted_arr)

Installation

You can install or update PySort via pip:

pip install --upgrade PySort