public class IntHeapSelect extends Object
| Constructor and Description |
|---|
IntHeapSelect(int k)
Constructor.
|
IntHeapSelect(int[] heap)
Constructor.
|
public IntHeapSelect(int k)
k - the heap size.public IntHeapSelect(int[] heap)
heap - the array to store smallest values to track.public void add(int datum)
public int peek()
public int get(int i)
public void sort()
Copyright © 2015. All rights reserved.