Skip to content

A mini project covering key Data Structures & Algorithms (DSA) sorting techniques along with basic MySQL database integration using Python. The project includes Insertion Sort, Quick Sort, Counting Sort, Radix Sort, Merge Sort, and demonstrates creating a MySQL database and table using Python.

Notifications You must be signed in to change notification settings

faizih111/Sorting-Algorithms-and-MySQL-Database-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

DSA Sorting Algorithms and MySQL Integration in Python

πŸ“Œ Project Overview

This project is part of my learning journey through the W3Schools Python tutorial.
It covers sorting algorithms in DSA and a small MySQL integration example.

The goal of this project is to:

  • Implement and compare sorting algorithms.
  • Connect Python with MySQL.
  • Create a simple table in a MySQL database.

πŸ”Ή Topics Covered

  • Insertion Sort
  • Quick Sort
  • Counting Sort
  • Radix Sort
  • Merge Sort
  • MySQL: Get Started
  • MySQL: Create Database & Table

πŸ› οΈ Project Workflow

  1. Sorting Algorithms

    • Start with an unsorted array.
    • Apply multiple sorting techniques.
    • Verify that each method gives the same sorted result.
  2. MySQL Integration

    • Connect Python to MySQL.
    • Create a new database (mydatabase).
    • Create a simple table (users) with fields for id, name, and email.

πŸ“Š Example Output

[12, 23, 34, 45, 56, 67, 89, 90] [12, 23, 34, 45, 56, 67, 89, 90] [12, 23, 34, 45, 56, 67, 89, 90] Original array: [12, 23, 34, 45, 56, 67, 89, 90] [12, 23, 34, 45, 56, 67, 89, 90] Sorted array: [12, 23, 34, 45, 56, 67, 89, 90] βœ… Table 'users' created in 'mydatabase'


πŸš€ Tech Stack

  • Python (Sorting & MySQL connector)
  • MySQL (Database & Table creation)

🎯 Learning Outcomes

  • How different sorting algorithms work.
  • How to connect Python with MySQL.
  • How to create databases and tables programmatically.

πŸ“‚ Repository Structure

πŸ“¦ DSA-MySQL-Project ┣ πŸ“œ main.py # Main Python script with sorting + MySQL code β”— πŸ“œ README.md # Project documentation


βœ… This project reflects my progress in Python DSA + MySQL basics using W3Schools.

About

A mini project covering key Data Structures & Algorithms (DSA) sorting techniques along with basic MySQL database integration using Python. The project includes Insertion Sort, Quick Sort, Counting Sort, Radix Sort, Merge Sort, and demonstrates creating a MySQL database and table using Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages