public class AStarHeap<NODE> extends Object implements Collection<NODE>
Constructor and Description |
---|
AStarHeap(Comparator<NODE> comp) |
AStarHeap(Comparator<NODE> comp,
int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(NODE arg0) |
boolean |
addAll(Collection arg0) |
boolean |
addAll(NODE[] arg0) |
void |
clear() |
boolean |
contains(Object arg0) |
boolean |
containsAll(Collection arg0) |
boolean |
containsAll(Object[] arg0) |
boolean |
decreaseKey(NODE arg0) |
boolean |
deleteMin() |
boolean |
empty() |
NODE |
getMin() |
boolean |
isEmpty() |
Iterator<NODE> |
iterator() |
static void |
main(String[] args) |
static void |
mainAdd(AStarHeap heap,
Integer[] nums) |
static boolean |
mainCheck(AStarHeap heap,
Integer[] nums) |
static String |
mainToStr(Integer[] nums) |
boolean |
remove(Object arg0) |
boolean |
removeAll(Collection arg0) |
boolean |
retainAll(Collection arg0) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] arg0) |
Set |
toSet() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
public AStarHeap(Comparator<NODE> comp, int capacity)
public AStarHeap(Comparator<NODE> comp)
public NODE getMin()
public boolean deleteMin()
public boolean decreaseKey(NODE arg0)
public boolean add(NODE arg0)
add
in interface Collection<NODE>
public boolean addAll(Collection arg0)
addAll
in interface Collection<NODE>
public boolean addAll(NODE[] arg0)
public void clear()
clear
in interface Collection<NODE>
public boolean contains(Object arg0)
contains
in interface Collection<NODE>
public boolean containsAll(Collection arg0)
containsAll
in interface Collection<NODE>
public boolean containsAll(Object[] arg0)
public boolean isEmpty()
isEmpty
in interface Collection<NODE>
public boolean remove(Object arg0)
remove
in interface Collection<NODE>
public boolean removeAll(Collection arg0)
removeAll
in interface Collection<NODE>
public boolean retainAll(Collection arg0)
retainAll
in interface Collection<NODE>
public int size()
size
in interface Collection<NODE>
public boolean empty()
public Object[] toArray()
toArray
in interface Collection<NODE>
public Object[] toArray(Object[] arg0)
toArray
in interface Collection<NODE>
public Set toSet()
public static void main(String[] args)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.