Insertion Sort

Similar Posts

  • Problems with JSON

    No system, file format, data format, programming language, etc is perfect. However, instead of glossing over the information, it’s better to education oneself as to their shortcomings to ensure that you can work around the limitations. It is worth noting that while JSON is built as a subset of JavaScript it does not include support…

  • Data Transformations

    Data transformation is often simple like splitting a full name into the first and last, or vice versa. However, sometimes it is more complicated, much more complicated. I once wrote a data converter which had to convert data stored in a file with the size of data store being a certain number of bytes into…

  • O(n log n) Algorithms

    A linear O(n log n) algorithm is a type of algorithm that has a time complexity of O(n log n), where ‘n’ represents the number of elements in the input data. This means that the running time of the algorithm increases linearly with the size of the input, but with an additional logarithmic factor. Now…

  • Binary Search

    If our data is pre-sorted then a binary search starts to make a lot of sense. It is like the guessing game we mentioned earlier where you need to find a number between 1 and 100. No one asks for 1, then 2, then 3… until they find it. Instead we ask for the mid…

  • Linear O(n) Algorithms

    After a Constant Time Algorithm, and the Logarithmic Algorithms, the linear algorithm, often referred to as an O(n) algorithm in the Big O notation, is the next fastest. When an algorithm has a time complexity of O(n) the algorithm increases linearly with the size of the input. Inputs are often thought of as an array,…