Exponential Algorithms: O(n!)

Similar Posts

  • Benefits of XML

    XML has many benefits going for it as a format to move data between applications and/or servers. Some of the benefits include: XQuery, which is a tool for searching for nodes with XML. We’ve previously looked at searching XML with XQuery. While different libraries may use different implementations, they generally have something that can be…

  • An Introduction to JSON

    JavaScript Object Notation, or JSON, is a solution to the problem of how do we move data between systems, especially data between a server and a web client.  JSON is an open-standards, data interchange format that uses a serializable string of data to store information. It was initiated in the early 2000’s by Douglas Crockford,…

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

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

  • Tower of Hanoi

    The Tower of Hanoi, sometimes called the Tower of Brahma puzzle, is one of the classic problems to look at if you want to learn recursion. This problem is good to understand how recursive solutions are arrived at and how parameters for this recursion are implemented. We look at the solution in another post. The…

One Comment

Comments are closed.