public class HeapTester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
giveDebugOutput |
static int |
maxHeapSizeForPolling |
static int |
maxHeapSizeForUpdate |
static int |
prioritiesToUpdate |
Constructor and Description |
---|
HeapTester() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Test the user-defined heap.
|
static boolean |
testAdding()
Test that adding distinct values get added.
|
static boolean |
testPollingOrder()
Return true iff values removed from a heap are in increasing order.
|
static boolean |
testUpdatePriority()
Return true iff updating priorities functions correctly.
|
public static boolean giveDebugOutput
public static int maxHeapSizeForPolling
public static int maxHeapSizeForUpdate
public static int prioritiesToUpdate
public static void main(java.lang.String[] args)
public static boolean testAdding()
public static boolean testPollingOrder()
public static boolean testUpdatePriority()