- makeSet(T) - Method in class com.alexprut.algo.datastructures.DisjointSet
-
- Math - Class in com.alexprut.algo.algorithms.math
-
- Math() - Constructor for class com.alexprut.algo.algorithms.math.Math
-
- max() - Method in class com.alexprut.algo.datastructures.MaxHeap
-
Time complexity: Θ(1)
- max(int[]) - Static method in class com.alexprut.algo.Utils
-
Time complexity: O(n)
Space complexity: O(n) total and O(1) auxiliary
- MaxHeap - Class in com.alexprut.algo.datastructures
-
- MaxHeap() - Constructor for class com.alexprut.algo.datastructures.MaxHeap
-
- MaxHeap(int[]) - Constructor for class com.alexprut.algo.datastructures.MaxHeap
-
- maximum() - Method in class com.alexprut.algo.datastructures.BinarySearchTree
-
Time complexity: O(logn) if the tree is balanced, O(n) in the worst case
- MaximumSubarray - Class in com.alexprut.algo.algorithms
-
J.Kadane algorithm (i.e.
- MaximumSubarray() - Constructor for class com.alexprut.algo.algorithms.MaximumSubarray
-
- maximumSubarray(int[]) - Static method in class com.alexprut.algo.algorithms.MaximumSubarray
-
Finds the contiguous sub-array within a one-dimensional array, a[1...n], of numbers which has the largest sum
Time complexity: Θ(n)
Space complexity: Θ(n) total with Θ(1) auxiliary
- MergeSort - Class in com.alexprut.algo.algorithms.sorting
-
- MergeSort() - Constructor for class com.alexprut.algo.algorithms.sorting.MergeSort
-
- mergeSort(int[], int, int) - Static method in class com.alexprut.algo.algorithms.sorting.MergeSort
-
It is a divide-and-conquer algorithms
Time complexity: Θ(nlogn) in the worst and best case
Space complexity; O(n) total with O(n) auxiliary the algorithms is not in place
- min() - Method in class com.alexprut.algo.datastructures.MinHeap
-
Time complexity: Θ(1)
- min(int[]) - Static method in class com.alexprut.algo.Utils
-
Time complexity: O(n)
Space complexity: O(n) total and O(1) auxiliary
- MinHeap - Class in com.alexprut.algo.datastructures
-
- MinHeap() - Constructor for class com.alexprut.algo.datastructures.MinHeap
-
- MinHeap(int[]) - Constructor for class com.alexprut.algo.datastructures.MinHeap
-
- minimum() - Method in class com.alexprut.algo.datastructures.BinarySearchTree
-
Time complexity: O(logn) if the tree is balanced, O(n) in the worst case
- mst() - Method in class com.alexprut.algo.datastructures.Graph
-
Calculates the minimum spanning tree