Package org.drip.graph.subarray
Class ThreeSum
java.lang.Object
org.drip.graph.subarray.ThreeSum
- Direct Known Subclasses:
ThreeSumQuadraticComparator
,ThreeSumQuadraticHash
public abstract class ThreeSum
extends java.lang.Object
ThreeSum exposes the Check that indicates if the Set of Numbers contains 3 that Sum to Zero. The
References are:
- Chan, T. M. (2018): More Logarithmic Factor Speedups for 3SUM, (median+) Convolution, and some Geometric 3SUM-Hard Problems Proceedings of the 29th Annual ACM SIAM Symposium on Discrete Algorithms 881-897
- Gajentaan, A., and M. H. Overmars (1995): On a Class of O(n2) Problems in Computational Geometry Computational Geometry: Theory and Applications 5 (3) 165-185
- Kopelowitz, T., S. Pettie, and E. Porat (2014): Higher Lower Bounds from the 3SUM Conjecture https://arxiv.org/abs/1407.6756 arXiV
- Patrascu, M. (2010): Towards Polynomial Lower Bounds for Dynamic Problems Proceedings of the 42nd ACM Symposium on Theory of Computing 603-610
- Wikipedia (2020): 3Sum https://en.wikipedia.org/wiki/3SUM
- Module = Computational Core Module
- Library = Graph Algorithm Library
- Project = Graph Optimization and Tree Construction Algorithms
- Package = Sub-set Sum, k-Sum, and Maximum Sub-array Problems
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description double[]
numberArray()
Retrieve the Number Arrayabstract boolean
zeroSumExists()
Indicate if the Zero Sum Match existsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
numberArray
public double[] numberArray()Retrieve the Number Array- Returns:
- The Number Array
-
zeroSumExists
public abstract boolean zeroSumExists()Indicate if the Zero Sum Match exists- Returns:
- TRUE - The Zero Sum Match exists
-