Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 1.73 KB

README.md

File metadata and controls

63 lines (52 loc) · 1.73 KB

Project: Comparative Analysis and Visualization of Sorting Algorithms in Python

As a group project we are looking for an understanding regarding sorting algorithms by implementing, analyzing, and visualizing the performance of various sorting techniques in Python.

##Bubble Sort

  • Time Complexity: O(n2)
  • Space Complexity: O(1)
  • Diagram methods...

##Merge Sort

  • Time Complexity: O(n log n)
  • Space Complexity: O(n)

##Quick Sort

  • Time Complexity: O(n log n)
  • Space Complexity: O(n2)

##Radix Sort

  • Time Complexity: O(n*d)
  • Space Complexity: O(n+k)

##Linear Search Algorithm

  • Time Complexity: O(n)
  • Space Complexity: O(1)

###Libraries Used:

How to Run the Project

  1. Clone the Repository: Start by cloning this repository to your machine.

    git clone <repository-url>
  2. Set Up a Virtual Environment:

    • Create a virtual environment.
    python3 -m venv env
    • Activate the virtual environment:
      • On Windows:
        .\env\Scripts\activate
      • On macOS/Linux:
        source env/bin/activate
  3. Install Dependencies:

    • Navigate to the project directory and install the Python packages using pip:
    pip install -r requirements.txt
  4. Run the Flask App:

    • To start the Flask server, run the following command:
    python app.py
    • By default, the app runs on http://127.0.0.1:5000. Open this URL in your web browser to access the app.
  5. Access the Application: