Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whdhdyt21/sorting-methods-using-bubble-and-selection
This repository contains various implementations and exercises related to sorting algorithms, specifically focusing on Bubble Sort and Selection Sort.
https://github.com/whdhdyt21/sorting-methods-using-bubble-and-selection
bubble-sort selection-sort sorting-algorithms
Last synced: 20 days ago
JSON representation
This repository contains various implementations and exercises related to sorting algorithms, specifically focusing on Bubble Sort and Selection Sort.
- Host: GitHub
- URL: https://github.com/whdhdyt21/sorting-methods-using-bubble-and-selection
- Owner: whdhdyt21
- Created: 2023-04-13T15:46:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T17:10:54.000Z (8 months ago)
- Last Synced: 2024-05-22T02:59:06.883Z (8 months ago)
- Topics: bubble-sort, selection-sort, sorting-algorithms
- Language: C++
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sorting Methods Using Bubble and Selection
## Overview
Sorting Methods Using Bubble and Selection is a simple C++ program that demonstrates the implementation of two fundamental sorting algorithms: Bubble Sort and Selection Sort. This program allows users to input an array of integers, choose a sorting method, and observe the sorting process step-by-step.## Features
1. **Input Array**: Users can input an array of integers to be sorted.
2. **Bubble Sort**: Implements the Bubble Sort algorithm, displaying each step of the sorting process.
3. **Selection Sort**: Implements the Selection Sort algorithm, displaying each step of the sorting process.
4. **Menu Interface**: Users can select which sorting method to use or exit the program.
5. **Display Sorted Array**: The program displays the array before and after sorting.## Getting Started
### Prerequisites
- C++ compiler (e.g., g++, clang++)
- Basic knowledge of C++ and command line operations### Installation
1. Clone the repository:
```bash
git clone https://github.com/whdhdyt21/Sorting-Methods-Using-Bubble-and-Selection.git
```
2. Navigate to the project directory:
```bash
cd Sorting-Methods-Using-Bubble-and-Selection
```### Compilation
Compile the program using a C++ compiler:
```bash
g++ main.cpp -o sorting-methods
```### Running the Program
Run the compiled program:
```bash
./sorting-methods
```## Usage
Follow the on-screen instructions to input the array, choose the sorting method, and observe the sorting process. The program is designed to be user-friendly with clear prompts for each action.## Contributing
Contributions are welcome! Please fork this repository and submit a pull request for any enhancements or bug fixes.1. Fork the repository.
2. Create a new branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -am 'Add new feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Create a new Pull Request.## Acknowledgements
Thanks to everyone who has contributed to this project and helped improve it.---
Feel free to customize this README according to your specific requirements and repository structure.