Tag: java

Total 131 Posts

Bubble Sort in Java

Introduction

Sorting is a crucial aspect of digesting data. For us humans, it's much more natural to sort things that have something in common like the date of publishing, alphabetical order, articles belonging to an author, from smallest to largest, etc...

This makes it a lot easier to comprehend the

Continue Reading

Shell Sort in Java

Introduction

Sorting algorithms are algorithms that rearrange a collection's members in a certain order. The order criteria can vary and it is typically user-defined.

In practice, the order criteria is provided to the algorithm as a method that compares two objects and returns:

  • 0: If the compared entities are considered
Continue Reading