How to install MongoDB on macOS using Homebrew

This post provides a step-by-step guide with a list of commands on how to install MongoDB on macOS using Homebrew. MongoDB is a free and open-source document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents.

Counting Sort in Java

Counting Sort is an integer sorting algorithm. Counting Sort are unlike other sorting algorithms in that it makes certain assumptions about the data. It counts the number of objects with a a distinct key value, and use arithmetic to determine the position of each key. This algorithm does not make use of comparisons to sort the values. In simplistic terms, the algorithm counts the number of occurrences of each value in order to sort it.

Quick Sort Algorithm in Java

Quick Sort, also known as partition-exchange sort, is an efficient divide and conquer sorting algorithm. The algorithm can be implemented making use of loops or recursions. The algorithm performs the sorting in-place. Quick Sort is a comparison sort, meaning that it can sort items of any type for which a "less-than" relation is defined.

Merge Sort Algorithm in Java

Merge Sort is a divide and conquer algorithm as the algorithm split the original array into smaller logical sections. The algorithm can be implemented making use of loops or recursions. The two distinct phases are a splitting phase and secondly a merging phase.

Shell Sort Algorithm in Java

Shell Sort is an in-place comparison sort algorithm. Shell Sort is a generalization of insertion sort that allows the exchange of items that are far apart. The algorithm perform preliminary work by sorting pairs of elements far apart from each other. The algorithm progressively reduce the gap between elements to be compared as the goal is to reduce the amount of shifting of elements across the array. As the gap is reduced to 1, the algorithm becomes the same as the insertion sort algorithm.

Insertion Sort Algorithm in Java

Insertion sort is a sorting algorithm that builds the final sorted array (or list) one item at a time. The algorithm iterates over the list and removes the current element, finds the location within the sorted part of the list, and inserts it there. This process is repeated until the whole list is sorted.

Selection Sort Algorithm In Java

The SelectionSort class implements the Selection algorithm for sorting an array of integers. The algorithm divides the input list into two parts, sorted and unsorted. The algorithm looks for the largest element in the unsorted section and swap it with the last position in the unsorted partition.

How to setup Git Merge and Diff Tools with P4Merge

This post provides a step-by-step guide with a list of commands on how to setup the git merge and diff tools to make use of P4Merge.

Git Commands – Cheatsheet

The Git Cheatsheet can be downloaded from the images below. The Git Cheatsheet (PDF document) contains a list of the git commands that are frequently used. This cheatsheet document is not intended as a complete documented list of all commands and for that you should rather visit the official git documentation page.

Git Commands – Initial Setup

The git initial setup is performed only once after the installation is successful. This post will focus on the minimum set of properties that should be configured before you can use git.

1 2 3 4 5 6 7 8 9
Top