Skip to main content

16 docs tagged with "algorithm"

View all tags

Adjacency matrix

An adjacency matrix is a 2D array used to represent a graph, where each cell (i, j) is set to 1 if there's an edge from node i to node j, and 0 otherwise.

Applications of Recursion

Applications of Recursion in various fields, including algorithm design, problem-solving, and real-world use cases.

Edmonds-Karp Algorithm

The Edmonds-Karp algorithm is a flow network algorithm used to compute the maximum flow between a source and a sink in a flow network. It is an implementation of the Ford-Fulkerson method that uses breadth-first search (BFS) to find augmenting paths.

Matrix-chain-multiplication

The program finds the optimal multiplication order for a matrix chain, minimizing scalar multiplications using dynamic programming for efficiency.

Pancake Sorting Algorithm

Pancake sorting is a sorting algorithm in which the only allowed operation is to reverse the elements of a prefix of the array.

Space Complexity

Space complexity is a measure of the amount of working storage an algorithm needs. It is a measure of the amount of memory space an algorithm needs to solve a problem as a function of the size of the input to the problem. It is the amount of memory space required by the algorithm to execute in its life cycle.

Strings

The KMP algorithm is an efficient method for substring searching in a string.

Time Complexity

Time Complexity is a measure of the amount of time an algorithm takes to solve a problem as a function of the size of the input to the problem. It is commonly estimated by counting the number of elementary operations performed by the algorithm, where an elementary operation takes a fixed amount of time to perform.

Trapping Rain Water

Documentation for the Trapping Rain Water algorithm to calculate water trapped between bars of varying heights.