Package org.drip.graph.softheap
Class KaplanZwickTargetSize
java.lang.Object
org.drip.graph.softheap.KaplanZwickTargetSize
public class KaplanZwickTargetSize
extends java.lang.Object
KaplanZwickTargetSize implements the Target Size Metrics described in Kaplan and Zwick (2009). The
References are:
- Chazelle, B. (2000): The Discrepancy Method: Randomness and Complexity https://www.cs.princeton.edu/~chazelle/pubs/book.pdf
- Chazelle, B. (2000): The Soft Heap: An Approximate Priority Queue with Optimal Error Rate Journal of the Association for Computing Machinery 47 (6) 1012-1027
- Chazelle, B. (2000): A Minimum Spanning Tree Algorithm with Inverse-Ackerman Type Complexity Journal of the Association for Computing Machinery 47 (6) 1028-1047
- Kaplan, H., and U. Zwick (2009): A simpler implementation and analysis of Chazelle's Soft Heaps https://epubs.siam.org/doi/abs/10.1137/1.9781611973068.53?mobileUi=0
- Pettie, S., and V. Ramachandran (2008): Randomized Minimum Spanning Tree Algorithms using Exponentially Fewer Random Bits ACM Transactions on Algorithms 4 (1) 1-27
- Module = Computational Core Module
- Library = Graph Algorithm Library
- Project = Graph Optimization and Tree Construction Algorithms
- Package = Soft Heap - Approximate Priority Queue
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description static doubleSTANDARD_RANK_SCALERRetrieve the Rank Scaler used in Kaplan and Zwick (2009) -
Constructor Summary
Constructors Constructor Description KaplanZwickTargetSize(double rankScaler, int estimate, double lowerBound, double upperBound)KaplanZwickTargetSize Constructor -
Method Summary
Modifier and Type Method Description intestimate()Retrieve the Target Size EstimatedoublelowerBound()Retrieve the Target Size Lower BounddoublerankScaler()Retrieve the Target Size Rank Scalerstatic KaplanZwickTargetSizeStandard(int k, int r)Compute the Standard Kaplan-Zwick Target Size Metrics Using the Standard Rank Scalerstatic KaplanZwickTargetSizeStandard(int k, int r, double rankScaler)Compute the Standard Kaplan-Zwick Target Size MetricsdoubleupperBound()Retrieve the Target Size Upper BoundMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
STANDARD_RANK_SCALER
public static final double STANDARD_RANK_SCALERRetrieve the Rank Scaler used in Kaplan and Zwick (2009)- See Also:
- Constant Field Values
-
-
Constructor Details
-
KaplanZwickTargetSize
public KaplanZwickTargetSize(double rankScaler, int estimate, double lowerBound, double upperBound) throws java.lang.ExceptionKaplanZwickTargetSize Constructor- Parameters:
rankScaler- Target Size Rank Scalerestimate- Target Size EstimatelowerBound- Target Size Lower BoundupperBound- Target Size Upper Bound- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
Standard
Compute the Standard Kaplan-Zwick Target Size Metrics- Parameters:
k- The Heap Rankr- The R ParameterrankScaler- The Rank Scaler- Returns:
- Kaplan-Zwick Target Size Metrics
-
Standard
Compute the Standard Kaplan-Zwick Target Size Metrics Using the Standard Rank Scaler- Parameters:
k- The Heap Rankr- The R Parameter- Returns:
- Kaplan-Zwick Target Size Metrics
-
rankScaler
public double rankScaler()Retrieve the Target Size Rank Scaler- Returns:
- The Target Size Rank Scaler
-
estimate
public int estimate()Retrieve the Target Size Estimate- Returns:
- The Target Size Estimate
-
lowerBound
public double lowerBound()Retrieve the Target Size Lower Bound- Returns:
- The Target Size Lower Bound
-
upperBound
public double upperBound()Retrieve the Target Size Upper Bound- Returns:
- The Target Size Upper Bound
-