https://github.com/sevlamare/bubble_sort_ruby
An implementation of a classic Sorting Algorithm.
https://github.com/sevlamare/bubble_sort_ruby
ruby sorting-algorithm
Last synced: 3 days ago
JSON representation
An implementation of a classic Sorting Algorithm.
- Host: GitHub
- URL: https://github.com/sevlamare/bubble_sort_ruby
- Owner: SevlaMare
- Created: 2020-04-02T15:10:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-09T14:52:38.000Z (over 5 years ago)
- Last Synced: 2025-07-26T00:29:48.457Z (3 months ago)
- Topics: ruby, sorting-algorithm
- Language: Ruby
- Homepage: https://repl.it/@ThiagoMiranda2/bubblesortruby
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bubble Sort Algorithm
> Project to create Bubble Sort Algorithm using Ruby Language.

Algorithm based on classic definition
It can be see on [Paper](https://users.cs.duke.edu/~ola/bubble/bubble.pdf)
## Content
* [Requirements](#requirements)
* [Built With](#built-with)
* [Live Demo](#live-demo)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [Acknowledgments](#acknowledgments)
* [Author](#author)
* [License](#license)
## Requirements
- Implement using the classic definition of this algorithm.
- Turn it into a method called bubble_sort.
- Create bubble_sort_by that accepts a block as criterion.
Features
- Remove (n-1) iteraction after each lap.
- Make a trigger to stop if array is already sorted.
Enchant Performance
### Built With
- Ruby Language
- Rubocop (Linter) with Stickler (CI Tool)
- Git, Github and VScode
## Live Demo
[Run on Repl.it](https://repl.it/@ThiagoMiranda2/bubblesortruby)
## Quick Start
To get a local copy use:
```js
git clone git@github.com:SevlaMare/bubble_sort_ruby.git
```
### Dependencies
Ruby 2.5.5
### Contributing
Contributions, issues and feature requests are welcome!
You can do it on [issues page](issues/).
## Acknowledgments
A special thanks for the code reviewers.
## Author
👤 **Thiago Miranda**
- Github: [@SevlaMare](https://github.com/SevlaMare)
- Twitter: [#SevlaMare](https://twitter.com/SevlaMare)
- Linkedin: [SevlaMare](https://www.linkedin.com/in/sevlamare)
### License
Creative Commons