Constant Time Notation: O(1) Style Algorithms

Similar Posts

  • Quicksort

    While the Quicksort is relatively fast, O(nlog(n)) in terms of speed on average, a lot of programmers fear it because they don’t like, understand, or maybe even know about recursion.  Recursion is the process of a function calling itself. There is usually a slight penalty for recursion as each function call is slower than if…

  • Merge Sorted

    While similar in name to the Merge Sort, the Merge Sorted is a bit of a special case type of sort, and shares none of the same methodology.  In it, you take two, or more sources, which are already sorted, and you merge them together. As you merge them together, you determine from which list,…

  • Regular Expressions

    Regular Expressions, often called RegEx, is a sequence of characters that defines a search pattern to run against another string of data. This is often used to perform a find and replace or check for validation. Different languages apply regular expressions differently. The strictest use the full range of special characters and commands, while others…

  • Insertion Sort

    An insertion sort is a bit of a special case. It assumes that you will be given a set of values over time, and as you get them, you will insert the value into its correct location based upon the given values. Depending upon the data, and size, you could utilize different types of sort,…

  • Bubble Sort

    The bubble sort is one of the simplest sorts you can write, from a developer’s perspective. Unfortunately, it is one of the slowest to run from the computer’s perspective. A Bubble Sort works on the following idea. Given a list of values, start at the top value, and look at the next value. If the…

2 Comments

Comments are closed.