An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Bubble Sort Algorithm
> Project to create Bubble Sort Algorithm using Ruby Language.

![screenshot](./images/screenshot.gif)


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


    Features


  • 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.


    Enchant Performance


  • Remove (n-1) iteraction after each lap.

  • Make a trigger to stop if array is already sorted.

### 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