/// <summary> /// Initialises a new instance of the MoreComplexDataStructures.WeightedRandomGenerator class. /// </summary> public WeightedRandomGenerator() { randomGenerator = new DefaultRandomGenerator(); weightingRangesAndItems = new WeightBalancedTree <ItemAndWeighting <T> >(); itemToWeightingMap = new Dictionary <T, LongIntegerRange>(); weightingsTotal = 0; weightingStartOffset = 0; }
/// <summary> /// Initialises a new instance of the MoreComplexDataStructures.LongIntegerStatusStorer class, assuming all integer statuses are initially false. /// </summary> public LongIntegerStatusStorer() { rangeStatuses = new WeightBalancedTree <LongIntegerRange>(); count = 0; }
/// <summary> /// Initialises a new instance of the Algorithms.PriorityQueue class. /// </summary> public PriorityQueue() { tree = new WeightBalancedTree <ItemAndPriority <T> >(); itemToPriorityMap = new Dictionary <T, double>(); }