net.datastructures - version 5.0
A B C D E F G H I K L M N O P Q R S T U V W

A

actionPos - Variable in class net.datastructures.BinarySearchTree
 
actionPos - Variable in class net.datastructures.BinarySearchTreeMap
 
actionPos - Variable in class net.datastructures.SortedListPriorityQueue
 
AdaptablePriorityQueue<K,V> - Interface in net.datastructures
Interface for an adaptable priority queue.
add(int, E) - Method in class net.datastructures.ArrayIndexList
Inserts an element at the given index.
add(E) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Adds an element just after the last node (in a level numbering).
add(E) - Method in interface net.datastructures.CompleteBinaryTree
Adds an element to the tree just after the last node.
add(int, E) - Method in interface net.datastructures.IndexList
Inserts an element e to be at index i, shifting all elements after this.
addAfter(Position<E>, E) - Method in class net.datastructures.NodePositionList
Insert the given element after the given position; O(1) time
addAfter(Position<E>, E) - Method in interface net.datastructures.PositionList
Inserts an element after the given node in the list.
addAll(PositionList<Entry<K, V>>, Position<Entry<K, V>>, K) - Method in class net.datastructures.BinarySearchTree
Adds to L all entries in the subtree rooted at v having keys equal to k.
addBefore(Position<E>, E) - Method in class net.datastructures.NodePositionList
Insert the given element before the given position; O(1) time
addBefore(Position<E>, E) - Method in interface net.datastructures.PositionList
Inserts an element before the given node in the list.
addFirst(E) - Method in interface net.datastructures.Deque
Inserts an element to be the first in the deque.
addFirst(E) - Method in class net.datastructures.NodeDeque
 
addFirst(E) - Method in class net.datastructures.NodePositionList
Insert the given element at the beginning of the list, returning the new position; O(1) time
addFirst(E) - Method in interface net.datastructures.PositionList
Inserts an element at the front of the list, returning new position.
addLast(E) - Method in interface net.datastructures.Deque
Inserts an element to be the last in the deque.
addLast(E) - Method in class net.datastructures.NodeDeque
 
addLast(E) - Method in class net.datastructures.NodePositionList
Insert the given element at the end of the list, returning the new position; O(1) time
addLast(E) - Method in interface net.datastructures.PositionList
Inserts and element at the back of the list, returning new position.
addRoot(E) - Method in class net.datastructures.LinkedBinaryTree
Adds a root node to an empty tree
addRoot(E) - Method in class net.datastructures.LinkedTree
Adds a root node to an empty tree
AdjacencyListGraph<V,E> - Class in net.datastructures
An realization of a graph according to adjacency list structure.
AdjacencyListGraph() - Constructor for class net.datastructures.AdjacencyListGraph
Default constructor that creates an empty graph
AdjacencyListGraph.MyEdge<E> - Class in net.datastructures
Implementation of an edge for an undirected adjacency list graph.
AdjacencyListGraph.MyPosition<T> - Class in net.datastructures
Implementation of a decorable position by means of a hash table.
AdjacencyListGraph.MyPosition() - Constructor for class net.datastructures.AdjacencyListGraph.MyPosition
 
AdjacencyListGraph.MyVertex<V> - Class in net.datastructures
Implementation of a vertex for an undirected adjacency list graph.
areAdjacent(Vertex<V>, Vertex<V>) - Method in class net.datastructures.AdjacencyListGraph
Test whether two vertices are adjacent
areAdjacent(Vertex<V>, Vertex<V>) - Method in interface net.datastructures.Graph
Tests whether two vertices are adjacent
ArrayIndexList<E> - Class in net.datastructures
Realization of an indexed list by means of an array, which is doubled when the size of the indexed list exceeds the capacity of the array.
ArrayIndexList() - Constructor for class net.datastructures.ArrayIndexList
Creates the indexed list with initial capacity 16.
ArrayListCompleteBinaryTree<E> - Class in net.datastructures
A speedy implementation of the CompleteBinaryTree interface using a vector.
ArrayListCompleteBinaryTree() - Constructor for class net.datastructures.ArrayListCompleteBinaryTree
default constructor
ArrayListCompleteBinaryTree.BTPos<E> - Class in net.datastructures
Nested class for a index list-based complete binary tree node.
ArrayListCompleteBinaryTree.BTPos(E, int) - Constructor for class net.datastructures.ArrayListCompleteBinaryTree.BTPos
 
ArrayStack<E> - Class in net.datastructures
Implementation of the stack ADT using a fixed-length array.
ArrayStack() - Constructor for class net.datastructures.ArrayStack
Initializes the stack to use an array of default length.
ArrayStack(int) - Constructor for class net.datastructures.ArrayStack
Initializes the stack to use an array of given length.
atIndex(int) - Method in interface net.datastructures.Sequence
Returns the position containing the element at the given index.
attach(Position<E>, BinaryTree<E>, BinaryTree<E>) - Method in class net.datastructures.LinkedBinaryTree
Attaches two trees to be subtrees of an external node.
AVAILABLE - Variable in class net.datastructures.HashTableMap
 
AVLTree<K,V> - Class in net.datastructures
AVLTree class - implements an AVL Tree by extending a binary search tree.
AVLTree(Comparator<K>) - Constructor for class net.datastructures.AVLTree
 
AVLTree() - Constructor for class net.datastructures.AVLTree
 
AVLTree.AVLNode<K,V> - Class in net.datastructures
Nested class for the nodes of an AVL tree.
AVLTreeMap<K,V> - Class in net.datastructures
AVLTree class - implements an AVL Tree by extending a binary search tree.
AVLTreeMap(Comparator<K>) - Constructor for class net.datastructures.AVLTreeMap
 
AVLTreeMap() - Constructor for class net.datastructures.AVLTreeMap
 
AVLTreeMap.AVLNode<K,V> - Class in net.datastructures
Nested class for the nodes of an AVL tree.

B

BinarySearchTree<K,V> - Class in net.datastructures
Realization of a dictionary by means of a binary search tree.
BinarySearchTree() - Constructor for class net.datastructures.BinarySearchTree
Creates a BinarySearchTree with a default comparator.
BinarySearchTree(Comparator<K>) - Constructor for class net.datastructures.BinarySearchTree
Creates a BinarySearchTree with the given comparator.
BinarySearchTree.BSTEntry<K,V> - Class in net.datastructures
Nested class for location-aware binary search tree entries
BinarySearchTreeMap<K,V> - Class in net.datastructures
Realization of a map by means of a binary search tree.
BinarySearchTreeMap() - Constructor for class net.datastructures.BinarySearchTreeMap
Creates a BinarySearchTreeMap with a default comparator.
BinarySearchTreeMap(Comparator<K>) - Constructor for class net.datastructures.BinarySearchTreeMap
Creates a BinarySearchTreeMap with the given comparator.
BinarySearchTreeMap.BSTEntry<K,V> - Class in net.datastructures
Nested class for location-aware binary search tree entries
BinaryTree<E> - Interface in net.datastructures
An interface for a binary tree, where each node can have zero, one, or two children.
BoundaryViolationException - Exception in net.datastructures
Signals that the boundaries of a data structure have been illegally traversed (e.g. past the end of a list).
BoundaryViolationException(String) - Constructor for exception net.datastructures.BoundaryViolationException
 
BTNode<E> - Class in net.datastructures
Class implementing a node of a binary tree by storing references to an element, a parent node, a left node, and a right node.
BTNode() - Constructor for class net.datastructures.BTNode
Default constructor
BTNode(E, BTPosition<E>, BTPosition<E>, BTPosition<E>) - Constructor for class net.datastructures.BTNode
Main constructor
BTPosition<E> - Interface in net.datastructures
Interface for a node of a binary tree.
bucket - Variable in class net.datastructures.HashTableMap
 

C

C - Variable in class net.datastructures.BinarySearchTree
 
C - Variable in class net.datastructures.BinarySearchTreeMap
 
c - Variable in class net.datastructures.SortedListPriorityQueue
 
capacity - Variable in class net.datastructures.ArrayStack
Length of the array used to implement the stack.
CAPACITY - Static variable in class net.datastructures.ArrayStack
Default array capacity.
capacity - Variable in class net.datastructures.HashTableMap
 
checkEdge(Edge<E>) - Method in class net.datastructures.AdjacencyListGraph
Determines whether a given edge is valid.
checkEntry(Entry<K, V>) - Method in class net.datastructures.BinarySearchTree
Checks whether a given entry is valid.
checkEntry(Entry<K, V>) - Method in class net.datastructures.BinarySearchTreeMap
Checks whether a given entry is valid.
checkEntry(Entry<K, V>) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Check whether a given entry is valid.
checkEntry(Entry) - Method in class net.datastructures.SortedListAdaptablePriorityQueue
Determines whether a given entry is valid
checkIndex(int, int) - Method in class net.datastructures.ArrayIndexList
Checks whether the given index is in the range [0, n - 1]
checkKey(K) - Method in class net.datastructures.BinarySearchTree
Checks whether a given key is valid.
checkKey(K) - Method in class net.datastructures.BinarySearchTreeMap
Checks whether a given key is valid.
checkKey(K) - Method in class net.datastructures.HashTableMap
Determines whether a key is valid.
checkKey(K) - Method in class net.datastructures.HeapPriorityQueue
Determines whether a given key is valid
checkKey(K) - Method in class net.datastructures.SortedListPriorityQueue
Determines whether a key is valid.
checkPosition(Position) - Method in class net.datastructures.AdjacencyListGraph
Determines whether a given position is valid.
checkPosition(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Determines whether the given position is a valid node.
checkPosition(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
If v is a good binary tree node, cast to BTPosition, else throw exception
checkPosition(Position<E>) - Method in class net.datastructures.LinkedTree
If v is a good tree node, cast to TreePosition, else throw exception
checkPosition(Position<E>) - Method in class net.datastructures.NodePositionList
Checks if position is valid for this list and converts it to DNode if it is valid; O(1) time
checkVertex(Vertex<V>) - Method in class net.datastructures.AdjacencyListGraph
Determines whether a given vertex is valid.
children(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns an iterable collection of the children of v.
children(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns an iterable collection of the children of a node.
children(Position<E>) - Method in class net.datastructures.LinkedTree
Returns an iterable collection of the children of a node.
children(Position<E>) - Method in interface net.datastructures.Tree
Returns an iterable collection of the children of a given node.
comp - Variable in class net.datastructures.HeapPriorityQueue
 
compare(E, E) - Method in class net.datastructures.DefaultComparator
Compares two given elements
CompleteBinaryTree<E> - Interface in net.datastructures
An interface for a complete binary tree.
compNumber - Variable in class net.datastructures.ComponentsDFS
 
COMPONENT - Variable in class net.datastructures.ComponentsDFS
 
ComponentsDFS<V,E> - Class in net.datastructures
This class extends DFS to compute the connected components of a graph.
ComponentsDFS() - Constructor for class net.datastructures.ComponentsDFS
 
ConnectivityDFS<V,E> - Class in net.datastructures
This class specializes DFS to determine whether the graph is connected.
ConnectivityDFS() - Constructor for class net.datastructures.ConnectivityDFS
 
createNode(Entry<K, V>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>) - Method in class net.datastructures.AVLTree
Creates a new binary search tree node (overrides super's version).
createNode(Entry<K, V>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>) - Method in class net.datastructures.AVLTreeMap
Creates a new binary search tree node (overrides super's version).
createNode(E, BTPosition<E>, BTPosition<E>, BTPosition<E>) - Method in class net.datastructures.LinkedBinaryTree
Creates a new binary tree node
createNode(E, TreePosition<E>, PositionList<Position<E>>) - Method in class net.datastructures.LinkedTree
Creates a new tree node
createNode(Entry<K, V>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>) - Method in class net.datastructures.RBTree
Creates a new tree node.
createNode(Entry<K, V>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>, BTPosition<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Creates a new tree node.
cursor - Variable in class net.datastructures.ElementIterator
 
cycle - Variable in class net.datastructures.FindCycleDFS
 
cycleStart - Variable in class net.datastructures.FindCycleDFS
 

D

DecorablePosition<E> - Interface in net.datastructures
An interface for a position that can be marked with an arbitrary number of decorations.
DefaultComparator<E> - Class in net.datastructures
Comparator based on the natural ordering
DefaultComparator() - Constructor for class net.datastructures.DefaultComparator
 
degree(Vertex<V>) - Method in class net.datastructures.AdjacencyListGraph
Return the degree of a given vertex
degree() - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Return the degree of a given vertex
Deque<E> - Interface in net.datastructures
Interface for a deque: a collection of objects that are inserted and removed at both ends; a subset of java.util.LinkedList methods.
dequeue() - Method in class net.datastructures.NodeQueue
 
dequeue() - Method in interface net.datastructures.Queue
Removes the element at the front of the queue.
DFS<V,E,I,R> - Class in net.datastructures
Generic DFS traversal of a graph using the template method pattern.
DFS() - Constructor for class net.datastructures.DFS
 
dfsTraversal(Vertex<V>) - Method in class net.datastructures.DFS
Recursive template method for a generic DFS traversal.
Dictionary<K,V> - Interface in net.datastructures
An interface for a dictionary storing (key-value) pairs.
Dijkstra<V,E> - Class in net.datastructures
Dijkstra's algorithm for the single-source shortest path problem in an undirected graph whose edges have integer weights.
Dijkstra() - Constructor for class net.datastructures.Dijkstra
 
dijkstraVisit(Vertex<V>) - Method in class net.datastructures.Dijkstra
The actual execution of Dijkstra's algorithm.
DIST - Variable in class net.datastructures.Dijkstra
Decoration key for vertex distances
DLNode<E> - Class in net.datastructures
A simple node class for a doubly-linked list.
DNode<E> - Class in net.datastructures
A simple node class for a doubly-linked list.
DNode(DNode<E>, DNode<E>, E) - Constructor for class net.datastructures.DNode
Constructor
done - Variable in class net.datastructures.FindCycleDFS
 
done - Variable in class net.datastructures.FindPathDFS
 
downHeap(Position<Entry<K, V>>) - Method in class net.datastructures.HeapPriorityQueue
Performs down-heap bubbling

E

Edge<E> - Interface in net.datastructures
An interface for an edge of a graph.
edges() - Method in class net.datastructures.AdjacencyListGraph
Return an iterator over the edges of the graph
edges() - Method in interface net.datastructures.Graph
Returns the edges of the graph as an iterable collection
elem - Variable in class net.datastructures.AdjacencyListGraph.MyPosition
The element stored at this position.
element() - Method in class net.datastructures.AdjacencyListGraph.MyPosition
Returns the element stored at this position.
element() - Method in class net.datastructures.ArrayListCompleteBinaryTree.BTPos
 
element() - Method in class net.datastructures.BTNode
Returns the element stored at this position
element() - Method in class net.datastructures.DNode
 
element() - Method in interface net.datastructures.Position
Return the element stored at this position.
element() - Method in class net.datastructures.TreeNode
Returns the element stored at this position
ElementIterator<E> - Class in net.datastructures
A simple iterator class for lists.
ElementIterator(PositionList<E>) - Constructor for class net.datastructures.ElementIterator
Creates an element iterator over the given list.
EList - Variable in class net.datastructures.AdjacencyListGraph
 
EmptyDequeException - Exception in net.datastructures
Runtime exception thrown when one tries to perform an access or removal operation on an empty deque.
EmptyDequeException(String) - Constructor for exception net.datastructures.EmptyDequeException
 
EmptyListException - Exception in net.datastructures
Thrown when a list cannot fulfill the requested operation because it is empty.
EmptyListException(String) - Constructor for exception net.datastructures.EmptyListException
 
EmptyPriorityQueueException - Exception in net.datastructures
Thrown when a priority queue cannot fulfill the requested operation because it is empty.
EmptyPriorityQueueException(String) - Constructor for exception net.datastructures.EmptyPriorityQueueException
 
EmptyQueueException - Exception in net.datastructures
Runtime exception thrown when one tries to perform operation front or dequeue on an empty queue.
EmptyQueueException(String) - Constructor for exception net.datastructures.EmptyQueueException
 
EmptyStackException - Exception in net.datastructures
Runtime exception thrown when one tries to perform operation top or pop on an empty stack.
EmptyStackException(String) - Constructor for exception net.datastructures.EmptyStackException
 
EmptyTreeException - Exception in net.datastructures
Runtime exception thrown when one tries to access the root of an empty tree.
EmptyTreeException(String) - Constructor for exception net.datastructures.EmptyTreeException
 
endVertices(Edge<E>) - Method in class net.datastructures.AdjacencyListGraph
Return the endvertices of a edge in an array of length 2
endVertices - Variable in class net.datastructures.AdjacencyListGraph.MyEdge
The end vertices of the edge.
endVertices() - Method in class net.datastructures.AdjacencyListGraph.MyEdge
Returns the end vertices of the edge.
endVertices(Edge<E>) - Method in interface net.datastructures.Graph
Returns the endvertices of a vertex as an array of length 2
enqueue(E) - Method in class net.datastructures.NodeQueue
 
enqueue(E) - Method in interface net.datastructures.Queue
Inserts an element at the rear of the queue.
entries() - Method in class net.datastructures.BinarySearchTree
Returns an iterator containing all entries in the tree.
entries() - Method in interface net.datastructures.Dictionary
Returns an iterator containing all the entries in the dictionary.
entries - Variable in class net.datastructures.SortedListPriorityQueue
 
entry(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTree
Extracts the entry at a given node of the tree.
entry(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTreeMap
Extracts the entry at a given node of the tree.
ENTRY - Variable in class net.datastructures.Dijkstra
Decoration key for entries in the priority queue
Entry<K,V> - Interface in net.datastructures
Interface for a key-value pair entry
entrySet() - Method in class net.datastructures.BinarySearchTreeMap
Returns an iterable object containing all entries in the tree.
entrySet() - Method in class net.datastructures.HashTableMap
Returns an iterable object containing all of the entries.
entrySet() - Method in interface net.datastructures.Map
Returns an iterable object containing all the entries in the map.
equals(Object) - Method in class net.datastructures.HashTableMap.HashEntry
 
EulerTour<E,R> - Class in net.datastructures
Template for algorithms traversing a binary tree using an Euler tour.
EulerTour() - Constructor for class net.datastructures.EulerTour
 
eulerTour(Position<E>) - Method in class net.datastructures.EulerTour
Template method
EulerTour.TourResult<R> - Class in net.datastructures
 
EulerTour.TourResult() - Constructor for class net.datastructures.EulerTour.TourResult
 
execute(Graph<V, E>, Vertex<V>, I) - Method in class net.datastructures.DFS
Execute a depth first search traversal on graph g, starting from a start vertex s, passing in an information object (in)
execute(Graph<V, E>, Vertex<V>, Object) - Method in class net.datastructures.Dijkstra
Executes Dijkstra's algorithm.
execute(BinaryTree<E>) - Method in class net.datastructures.EulerTour
Execution of the traversal.
expandExternal(Position<E>, E, E) - Method in class net.datastructures.LinkedBinaryTree
Expand an external node into an internal node with two external node children

F

finalResult(Integer) - Method in class net.datastructures.ComponentsDFS
 
finalResult(Boolean) - Method in class net.datastructures.ConnectivityDFS
 
finalResult(R) - Method in class net.datastructures.DFS
Returns the final result of the DFS execute method.
finalResult(Iterable<Position>) - Method in class net.datastructures.FindCycleDFS
 
finalResult(Iterable<Position>) - Method in class net.datastructures.FindPathDFS
 
find(K) - Method in class net.datastructures.BinarySearchTree
Returns an entry containing the given key.
find(K) - Method in interface net.datastructures.Dictionary
Returns an entry containing the given key, or null if no such entry exists.
findAll(K) - Method in class net.datastructures.BinarySearchTree
Returns an iterable collection of all the entries containing the given key.
findAll(K) - Method in interface net.datastructures.Dictionary
Returns an iterator containing all the entries containing the given key, or an empty iterator if no such entries exist.
FindCycleDFS<V,E> - Class in net.datastructures
This class specializes DFS to find a cycle.
FindCycleDFS() - Constructor for class net.datastructures.FindCycleDFS
 
findEntry(K) - Method in class net.datastructures.HashTableMap
Helper search method - returns index of found key or -(a + 1), where a is the index of the first empty or available slot found.
FindPathDFS<V,E> - Class in net.datastructures
Class specializing DFS to find a path between a start vertex and a target vertex.
FindPathDFS() - Constructor for class net.datastructures.FindPathDFS
 
finishVisit(Vertex<V>) - Method in class net.datastructures.DFS
Called after we finish the visit for a vertex (v).
finishVisit(Vertex<V>) - Method in class net.datastructures.FindCycleDFS
 
finishVisit(Vertex<V>) - Method in class net.datastructures.FindPathDFS
 
first() - Method in class net.datastructures.NodePositionList
Returns the first position in the list; O(1) time
first() - Method in interface net.datastructures.PositionList
Returns the first node in the list.
forEachToString(PositionList<E>) - Static method in class net.datastructures.NodePositionList
Returns a textual representation of a given node list using for-each
front() - Method in class net.datastructures.NodeQueue
 
front() - Method in interface net.datastructures.Queue
Inspects the element at the front of the queue.
FullStackException - Exception in net.datastructures
Runtime exception thrown when the capacity of the array used by an ArrayStack has been exceeded.
FullStackException(String) - Constructor for exception net.datastructures.FullStackException
 

G

get(int) - Method in class net.datastructures.ArrayIndexList
Returns the element stored at the given index.
get(K) - Method in class net.datastructures.BinarySearchTreeMap
Returns the value of the entry containing the given key.
get(K) - Method in class net.datastructures.HashTableMap
Returns the value associated with a key.
get(int) - Method in interface net.datastructures.IndexList
Returns the element at index i, without removing it.
get(K) - Method in interface net.datastructures.Map
Returns the value of the entry containing the given key.
getChildren() - Method in class net.datastructures.TreeNode
Returns the children of this position
getChildren() - Method in interface net.datastructures.TreePosition
 
getDist(Vertex<V>) - Method in class net.datastructures.Dijkstra
Get the distance of a vertex from the source vertex.
getElement() - Method in class net.datastructures.DLNode
 
getElement() - Method in class net.datastructures.Node
 
getEntry(Position) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Returns the entry stored at a heap node.
getFirst() - Method in interface net.datastructures.Deque
Returns the first element; an exception is thrown if deque is empty.
getFirst() - Method in class net.datastructures.NodeDeque
Inspect the first element without modifying the deque.
getHeight() - Method in class net.datastructures.AVLTree.AVLNode
 
getHeight() - Method in class net.datastructures.AVLTreeMap.AVLNode
 
getKey() - Method in class net.datastructures.BinarySearchTree.BSTEntry
 
getKey() - Method in class net.datastructures.BinarySearchTreeMap.BSTEntry
 
getKey() - Method in interface net.datastructures.Entry
Returns the key stored in this entry.
getKey() - Method in class net.datastructures.HashTableMap.HashEntry
 
getKey() - Method in class net.datastructures.HeapPriorityQueue.MyEntry
 
getKey() - Method in class net.datastructures.SortedListPriorityQueue.MyEntry
 
getLast() - Method in interface net.datastructures.Deque
Returns the last element; an exception is thrown if deque is empty.
getLast() - Method in class net.datastructures.NodeDeque
 
getLeft() - Method in class net.datastructures.BTNode
Returns the left child of this position
getLeft() - Method in interface net.datastructures.BTPosition
 
getNext() - Method in class net.datastructures.DLNode
 
getNext() - Method in class net.datastructures.DNode
 
getNext() - Method in class net.datastructures.Node
 
getParent() - Method in class net.datastructures.BTNode
Returns the parent of this position
getParent() - Method in interface net.datastructures.BTPosition
 
getParent() - Method in class net.datastructures.TreeNode
Returns the parent of this position
getParent() - Method in interface net.datastructures.TreePosition
 
getPrev() - Method in class net.datastructures.DLNode
 
getPrev() - Method in class net.datastructures.DNode
 
getRight() - Method in class net.datastructures.BTNode
Returns the right child of this position
getRight() - Method in interface net.datastructures.BTPosition
 
getValue() - Method in class net.datastructures.BinarySearchTree.BSTEntry
 
getValue() - Method in class net.datastructures.BinarySearchTreeMap.BSTEntry
 
getValue() - Method in interface net.datastructures.Entry
Returns the value stored in this entry.
getValue() - Method in class net.datastructures.HashTableMap.HashEntry
 
getValue() - Method in class net.datastructures.HeapPriorityQueue.MyEntry
 
getValue() - Method in class net.datastructures.SortedListPriorityQueue.MyEntry
 
graph - Variable in class net.datastructures.DFS
 
graph - Variable in class net.datastructures.Dijkstra
Input graph.
Graph<V,E> - Interface in net.datastructures
An interface for a graph.

H

HashTableMap<K,V> - Class in net.datastructures
A hash table data structure that uses linear probing to handle collisions.
HashTableMap() - Constructor for class net.datastructures.HashTableMap
Creates a hash table with prime factor 109345121 and capacity 1000.
HashTableMap(int) - Constructor for class net.datastructures.HashTableMap
Creates a hash table with prime factor 109345121 and given capacity.
HashTableMap(int, int) - Constructor for class net.datastructures.HashTableMap
Creates a hash table with the given prime factor and capacity.
HashTableMap.HashEntry<K,V> - Class in net.datastructures
Nested class for an entry in a hash table.
HashTableMap.HashEntry(K, V) - Constructor for class net.datastructures.HashTableMap.HashEntry
 
hashValue(K) - Method in class net.datastructures.HashTableMap
Hash function applying MAD method to default hash code.
hasLeft(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns whether v has a left child.
hasLeft(Position<E>) - Method in interface net.datastructures.BinaryTree
Returns whether a node has a left child.
hasLeft(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns whether a node has a left child.
hasNext() - Method in class net.datastructures.ElementIterator
Returns whether the iterator has a next object.
hasRedChild(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Returns whether a node has a red child.
hasRedChild(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Returns whether a node has a red child.
hasRight(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns whether v has a right child.
hasRight(Position<E>) - Method in interface net.datastructures.BinaryTree
Returns whether a node has a right child.
hasRight(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns whether a node has a right child.
head - Variable in class net.datastructures.NodeQueue
 
header - Variable in class net.datastructures.NodeDeque
 
header - Variable in class net.datastructures.NodePositionList
 
heap - Variable in class net.datastructures.HeapPriorityQueue
 
HeapAdaptablePriorityQueue<K,V> - Class in net.datastructures
Realization of an adaptable priority queue by means of a heap.
HeapAdaptablePriorityQueue() - Constructor for class net.datastructures.HeapAdaptablePriorityQueue
Creates an empty heap with a default comparator.
HeapAdaptablePriorityQueue(Comparator) - Constructor for class net.datastructures.HeapAdaptablePriorityQueue
Creates an empty heap with the given comparator.
HeapAdaptablePriorityQueue.LocationAwareEntry<K,V> - Class in net.datastructures
Inner class for a location-aware entry.
HeapAdaptablePriorityQueue.LocationAwareEntry(K, V) - Constructor for class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
HeapAdaptablePriorityQueue.LocationAwareEntry(K, V, Position) - Constructor for class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
HeapPriorityQueue<K,V> - Class in net.datastructures
Realization of a priority queue by means of a heap.
HeapPriorityQueue() - Constructor for class net.datastructures.HeapPriorityQueue
Creates an empty heap with the default comparator
HeapPriorityQueue(Comparator<K>) - Constructor for class net.datastructures.HeapPriorityQueue
Creates an empty heap with the given comparator
HeapPriorityQueue.MyEntry<K,V> - Class in net.datastructures
Inner class for heap entries.
HeapPriorityQueue.MyEntry(K, V) - Constructor for class net.datastructures.HeapPriorityQueue.MyEntry
 
height - Variable in class net.datastructures.AVLTree.AVLNode
 
height(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTree
Returns the height of a node (call back to an AVLNode).
height - Variable in class net.datastructures.AVLTreeMap.AVLNode
 
height(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTreeMap
Returns the height of a node (call back to an AVLNode).

I

Inc - Variable in class net.datastructures.AdjacencyListGraph.MyEdge
The positions of the entries for the edge in the incidence containers of the end vertices.
incEdges - Variable in class net.datastructures.AdjacencyListGraph.MyVertex
Incidence container of the vertex.
incidences() - Method in class net.datastructures.AdjacencyListGraph.MyEdge
Returns the positions of the edge in the incidence containers of its end vertices.
incidentEdges(Vertex<V>) - Method in class net.datastructures.AdjacencyListGraph
Return an iterator over the edges incident on a vertex
incidentEdges() - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Returns the incident edges on this vertex.
incidentEdges(Vertex<V>) - Method in interface net.datastructures.Graph
Returns the edges incident on a vertex as an iterable collection
index() - Method in class net.datastructures.ArrayListCompleteBinaryTree.BTPos
 
IndexList<E> - Interface in net.datastructures
An interface for array lists.
indexOf(Position<E>) - Method in interface net.datastructures.Sequence
Returns the index of the element stored at the given position.
INFINITE - Static variable in class net.datastructures.Dijkstra
Infinity value.
info - Variable in class net.datastructures.DFS
 
init(BinaryTree<E>) - Method in class net.datastructures.EulerTour
Initialization of the traversal
initResult() - Method in class net.datastructures.DFS
Initializes result (called first, once per vertex visited).
inorderPositions(Position<E>, PositionList<Position<E>>) - Method in class net.datastructures.LinkedBinaryTree
Creates a list storing the the nodes in the subtree of a node, ordered according to the inorder traversal of the subtree.
insert(K, V) - Method in class net.datastructures.AVLTree
Inserts an item into the dictionary and returns the newly created entry.
insert(K, V) - Method in class net.datastructures.BinarySearchTree
Inserts an entry into the tree and returns the newly created entry.
insert(K, V) - Method in interface net.datastructures.Dictionary
Inserts an item into the dictionary.
insert(K, V) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Inserts a key-value pair and returns the entry created.
insert(K, V) - Method in class net.datastructures.HeapPriorityQueue
Inserts a key-value pair and returns the entry created
insert(K, V) - Method in interface net.datastructures.PriorityQueue
Inserts a key-value pair and return the entry created.
insert(K, V) - Method in class net.datastructures.RBTree
Inserts an item into the dictionary and returns the newly created entry.
insert(K, V) - Method in class net.datastructures.SortedListAdaptablePriorityQueue
Inserts a key-value pair and returns the entry created
insert(K, V) - Method in class net.datastructures.SortedListPriorityQueue
Inserts a key-value pair and return the entry created.
insertAtExternal(Position<Entry<K, V>>, Entry<K, V>) - Method in class net.datastructures.BinarySearchTree
Auxiliary method for inserting an entry at an external node
insertAtExternal(Position<Entry<K, V>>, Entry<K, V>) - Method in class net.datastructures.BinarySearchTreeMap
Auxiliary method for inserting an entry at an external node
insertEdge(Vertex<V>, Vertex<V>, E) - Method in class net.datastructures.AdjacencyListGraph
Insert and return a new edge with a given element between two vertices
insertEdge(Vertex<V>, Vertex<V>, E) - Method in interface net.datastructures.Graph
Inserts and return a new edge with a given element between two vertices
insertEntry(Entry<K, V>) - Method in class net.datastructures.SortedListPriorityQueue
Auxiliary method used for insertion.
insertIncidence(Edge<E>) - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Inserts an edge into the incidence container of this vertex.
insertLeft(Position<E>, E) - Method in class net.datastructures.LinkedBinaryTree
Inserts a left child at a given node.
insertRight(Position<E>, E) - Method in class net.datastructures.LinkedBinaryTree
Inserts a right child at a given node.
insertVertex(V) - Method in class net.datastructures.AdjacencyListGraph
Insert and return a new vertex with a given element
insertVertex(V) - Method in interface net.datastructures.Graph
Inserts and return a new vertex with a given element
InvalidEntryException - Exception in net.datastructures
Thrown when an entry is discovered to be invalid.
InvalidEntryException(String) - Constructor for exception net.datastructures.InvalidEntryException
 
InvalidKeyException - Exception in net.datastructures
Thrown when a key is determined to be invalid.
InvalidKeyException(String) - Constructor for exception net.datastructures.InvalidKeyException
 
InvalidPositionException - Exception in net.datastructures
Thrown when a position is determined to be invalid.
InvalidPositionException(String) - Constructor for exception net.datastructures.InvalidPositionException
 
InvalidPositionException() - Constructor for exception net.datastructures.InvalidPositionException
 
isBalanced(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTree
Returns whether a node has balance factor between -1 and 1.
isBalanced(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTreeMap
Returns whether a node has balance factor between -1 and 1.
isDone() - Method in class net.datastructures.DFS
Determines whether the traversal is done early.
isDone() - Method in class net.datastructures.FindCycleDFS
 
isDone() - Method in class net.datastructures.FindPathDFS
 
isEmpty() - Method in class net.datastructures.ArrayIndexList
Returns whether the indexed list is empty.
isEmpty() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns whether the tree is empty.
isEmpty() - Method in class net.datastructures.ArrayStack
Testes whether the stack is empty.
isEmpty() - Method in class net.datastructures.BinarySearchTree
Returns whether the tree is empty.
isEmpty() - Method in class net.datastructures.BinarySearchTreeMap
Returns whether the tree is empty.
isEmpty() - Method in interface net.datastructures.Deque
Returns whether the deque is empty.
isEmpty() - Method in interface net.datastructures.Dictionary
Returns whether the dictionary is empty.
isEmpty() - Method in class net.datastructures.HashTableMap
Returns whether or not the table is empty.
isEmpty() - Method in class net.datastructures.HeapPriorityQueue
Returns whether the heap is empty
isEmpty() - Method in interface net.datastructures.IndexList
Returns whether the list is empty.
isEmpty() - Method in class net.datastructures.LinkedBinaryTree
Returns whether the tree is empty.
isEmpty() - Method in class net.datastructures.LinkedTree
Returns whether the tree is empty.
isEmpty() - Method in interface net.datastructures.Map
Returns whether the map is empty.
isEmpty() - Method in class net.datastructures.NodeDeque
This function returns true if and only if the deque is empty
isEmpty() - Method in class net.datastructures.NodePositionList
Returns whether the list is empty; O(1) time
isEmpty() - Method in class net.datastructures.NodeQueue
 
isEmpty() - Method in class net.datastructures.NodeStack
 
isEmpty() - Method in interface net.datastructures.PositionList
Returns whether the list is empty.
isEmpty() - Method in interface net.datastructures.PriorityQueue
Returns whether the priority queue is empty.
isEmpty() - Method in interface net.datastructures.Queue
Returns whether the queue is empty.
isEmpty() - Method in class net.datastructures.SortedListPriorityQueue
Returns whether the priority queue is empty.
isEmpty() - Method in interface net.datastructures.Stack
Return whether the stack is empty.
isEmpty() - Method in interface net.datastructures.Tree
Returns whether the tree is empty.
isExternal(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns whether v is an external node.
isExternal(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns whether a node is external.
isExternal(Position<E>) - Method in class net.datastructures.LinkedTree
Returns whether a node is external.
isExternal(Position<E>) - Method in interface net.datastructures.Tree
Returns whether a given node is external.
isFirst(Position<E>) - Method in class net.datastructures.NodePositionList
Returns whether a position is the first one; O(1) time
isInternal(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns whether v is an internal node.
isInternal(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns whether a node is internal.
isInternal(Position<E>) - Method in class net.datastructures.LinkedTree
Returns whether a node is internal.
isInternal(Position<E>) - Method in interface net.datastructures.Tree
Returns whether a given node is internal.
isLast(Position<E>) - Method in class net.datastructures.NodePositionList
Returns whether a position is the last one; O(1) time
isPosRed(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Returns whether a node is red.
isPosRed(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Returns whether a node is red.
isRed - Variable in class net.datastructures.RBTree.RBNode
 
isRed() - Method in class net.datastructures.RBTree.RBNode
 
isRed - Variable in class net.datastructures.RBTreeMap.RBNode
 
isRed() - Method in class net.datastructures.RBTreeMap.RBNode
 
isRoot(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns whether v is the root node.
isRoot(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns whether a node is the root.
isRoot(Position<E>) - Method in class net.datastructures.LinkedTree
Returns whether a node is the root.
isRoot(Position<E>) - Method in interface net.datastructures.Tree
Returns whether a given node is the root of the tree.
isVisited(DecorablePosition<?>) - Method in class net.datastructures.DFS
Test if a position (vertex or edge) has been visited.
iterator() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns an iterator of the elements stored at all nodes in the tree.
iterator() - Method in class net.datastructures.LinkedBinaryTree
Returns an iterator of the elements stored at the nodes
iterator() - Method in class net.datastructures.LinkedTree
Returns an iterator of the elements stored at the nodes
iterator() - Method in class net.datastructures.NodePositionList
Returns an iterator of all the elements in the list.
iterator() - Method in interface net.datastructures.PositionList
Returns an iterator of all the elements in the list.
iterator() - Method in interface net.datastructures.Tree
Returns an iterator of the elements stored in the tree.

K

k - Variable in class net.datastructures.SortedListPriorityQueue.MyEntry
 
key - Variable in class net.datastructures.BinarySearchTree.BSTEntry
 
key(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTree
Extracts the key of the entry at a given node of the tree.
key - Variable in class net.datastructures.BinarySearchTreeMap.BSTEntry
 
key(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTreeMap
Extracts the key of the entry at a given node of the tree.
key - Variable in class net.datastructures.HashTableMap.HashEntry
 
key - Variable in class net.datastructures.HeapPriorityQueue.MyEntry
 
keySet() - Method in class net.datastructures.BinarySearchTreeMap
Returns an iterable object containing all keys in the tree.
keySet() - Method in class net.datastructures.HashTableMap
Returns an iterable object containing all of the keys.
keySet() - Method in interface net.datastructures.Map
Returns an iterable object containing all the keys in the map.

L

last() - Method in class net.datastructures.NodePositionList
Returns the last position in the list; O(1) time
last() - Method in interface net.datastructures.PositionList
Returns the last node in the list.
left(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns the left child of v.
left(Position<E>) - Method in interface net.datastructures.BinaryTree
Returns the left child of a node.
left - Variable in class net.datastructures.EulerTour.TourResult
 
left(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns the left child of a node.
LinkedBinaryTree<E> - Class in net.datastructures
An implementation of the BinaryTree interface by means of a linked structure.
LinkedBinaryTree() - Constructor for class net.datastructures.LinkedBinaryTree
Creates an empty binary tree.
LinkedTree<E> - Class in net.datastructures
A linked class for a tree where nodes have an arbitrary number of children.
LinkedTree() - Constructor for class net.datastructures.LinkedTree
Creates an empty tree.
list - Variable in class net.datastructures.ElementIterator
 
loc - Variable in class net.datastructures.AdjacencyListGraph.MyEdge
The position of the edge in the edge container of the graph.
loc - Variable in class net.datastructures.AdjacencyListGraph.MyVertex
Position of the vertex in the vertex container of the graph.
loc - Variable in class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
location() - Method in class net.datastructures.AdjacencyListGraph.MyEdge
Returns the position of the edge in the edge container of the graph.
location() - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Returns the position of this vertex in the vertex container of the graph.
location() - Method in class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
location() - Method in class net.datastructures.SortedListAdaptablePriorityQueue.LocationAwareEntry
 

M

main(String[]) - Static method in class net.datastructures.ArrayStack
Test our program by performing a series of operations on stacks, printing the operations performed, the returned elements and the contents of the stack involved, after each operation.
main(String[]) - Static method in class net.datastructures.NodeQueue
Test program that performs a series of operations on on a queue and prints the operation performed, the returned element and the content of the stack after each operation.
main(String[]) - Static method in class net.datastructures.NodeStack
Test program that performs a series of operations on on a stack and prints the operation performed, the returned element and the content of the stack after each operation.
main(String[]) - Static method in class net.datastructures.Sort
 
makeBlack() - Method in class net.datastructures.RBTree.RBNode
 
makeBlack() - Method in class net.datastructures.RBTreeMap.RBNode
 
makeRed() - Method in class net.datastructures.RBTree.RBNode
 
makeRed() - Method in class net.datastructures.RBTreeMap.RBNode
 
Map<K,V> - Interface in net.datastructures
An interface for a map which binds a key uniquely to a value.
merge(PositionList<E>, PositionList<E>, Comparator<E>, PositionList<E>) - Static method in class net.datastructures.Sort
Merges two sorted lists, in1 and in2, into a sorted list in.
merge(E[], E[], Comparator<E>, int, int) - Static method in class net.datastructures.Sort
Merges two subarrays, specified by a start and increment.
mergeSort(PositionList<E>, Comparator<E>) - Static method in class net.datastructures.Sort
Sorts the elements of list in in nondecreasing order according to comparator c, using the merge-sort algorithm.
mergeSort(E[], Comparator<E>) - Static method in class net.datastructures.Sort
Sorts an array with a comparator using nonrecursive merge sort.
min() - Method in class net.datastructures.HeapPriorityQueue
Returns but does not remove an entry with minimum key
min() - Method in interface net.datastructures.PriorityQueue
Returns but does not remove an entry with minimum key.
min() - Method in class net.datastructures.SortedListPriorityQueue
Returns but does not remove an entry with minimum key.

N

n - Variable in class net.datastructures.HashTableMap
 
net.datastructures - package net.datastructures
 
next() - Method in class net.datastructures.ElementIterator
Returns the next object in the iterator.
next(Position<E>) - Method in class net.datastructures.NodePositionList
Returns the position after the given one; O(1) time
next(Position<E>) - Method in interface net.datastructures.PositionList
Returns the node after a given node in the list.
Node<E> - Class in net.datastructures
Node of a singly linked list, which stores references to its element and to the next node in the list.
Node() - Constructor for class net.datastructures.Node
Creates a node with null references to its element and next node.
Node(E, Node<E>) - Constructor for class net.datastructures.Node
Creates a node with the given element and next node.
NodeDeque<E> - Class in net.datastructures
Implementation of the Deque interface by means of a doubly linked list.
NodeDeque() - Constructor for class net.datastructures.NodeDeque
Creates an empty deque.
NodePositionList<E> - Class in net.datastructures
Realization of a PositionList using a doubly-linked list of nodes.
NodePositionList() - Constructor for class net.datastructures.NodePositionList
Constructor that creates an empty list; O(1) time
NodeQueue<E> - Class in net.datastructures
Realization of a queue by means of a singly-linked list of nodes.
NodeQueue() - Constructor for class net.datastructures.NodeQueue
Creates an empty queue.
NodeStack<E> - Class in net.datastructures
Implementation of the stack ADT by means of a singly linked list.
NodeStack() - Constructor for class net.datastructures.NodeStack
Creates an empty stack.
NonEmptyTreeException - Exception in net.datastructures
Runtime exception thrown when one tries to create the root of a tree that is not empty.
NonEmptyTreeException(String) - Constructor for exception net.datastructures.NonEmptyTreeException
 
numEdges() - Method in class net.datastructures.AdjacencyListGraph
 
numEdges() - Method in interface net.datastructures.Graph
Returns the number of edges of the graph
numElts - Variable in class net.datastructures.NodePositionList
 
numEntries - Variable in class net.datastructures.BinarySearchTree
 
numEntries - Variable in class net.datastructures.BinarySearchTreeMap
 
numVertices() - Method in class net.datastructures.AdjacencyListGraph
 
numVertices() - Method in interface net.datastructures.Graph
Returns the number of vertices of the graph

O

opposite(Vertex<V>, Edge<E>) - Method in class net.datastructures.AdjacencyListGraph
Return the other endvertex of an incident edge
opposite(Vertex<V>, Edge<E>) - Method in interface net.datastructures.Graph
Returns the other endvertex of an incident edge
out - Variable in class net.datastructures.EulerTour.TourResult
 

P

parent(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns the parent of v.
parent(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns the parent of a node.
parent(Position<E>) - Method in class net.datastructures.LinkedTree
Returns the parent of a node.
parent(Position<E>) - Method in interface net.datastructures.Tree
Returns the parent of a given node.
path - Variable in class net.datastructures.FindPathDFS
 
pop() - Method in class net.datastructures.ArrayStack
Removes the top element from the stack.
pop() - Method in class net.datastructures.NodeStack
 
pop() - Method in interface net.datastructures.Stack
Remove the top element from the stack.
pos - Variable in class net.datastructures.BinarySearchTree.BSTEntry
 
pos - Variable in class net.datastructures.BinarySearchTreeMap.BSTEntry
 
position() - Method in class net.datastructures.BinarySearchTree.BSTEntry
 
position() - Method in class net.datastructures.BinarySearchTreeMap.BSTEntry
 
Position<E> - Interface in net.datastructures
An interface for a position, which is a holder object storing a single element.
PositionList<E> - Interface in net.datastructures
An interface for positional lists.
positions() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns an iterable collection of all the nodes in the tree.
positions() - Method in class net.datastructures.LinkedBinaryTree
Returns an iterable collection of the tree nodes.
positions() - Method in class net.datastructures.LinkedTree
Returns an iterable collection of the tree nodes.
positions() - Method in class net.datastructures.NodePositionList
Returns an iterable collection of all the nodes in the list.
positions() - Method in interface net.datastructures.PositionList
Returns an iterable collection of all the nodes in the list.
positions() - Method in interface net.datastructures.Tree
Returns an iterable collection of the the nodes.
preorderPositions(Position<E>, PositionList<Position<E>>) - Method in class net.datastructures.LinkedBinaryTree
Creates a list storing the the nodes in the subtree of a node, ordered according to the preorder traversal of the subtree.
preorderPositions(Position<E>, PositionList<Position<E>>) - Method in class net.datastructures.LinkedTree
Creates a list storing the the nodes in the subtree of a node, ordered according to the preorder traversal of the subtree.
prev(Position<E>) - Method in class net.datastructures.NodePositionList
Returns the position before the given one; O(1) time
prev(Position<E>) - Method in interface net.datastructures.PositionList
Returns the node before a given node in the list.
prime - Variable in class net.datastructures.HashTableMap
 
PriorityQueue<K,V> - Interface in net.datastructures
Interface for the priority queue ADT
push(E) - Method in class net.datastructures.ArrayStack
Inserts an element at the top of the stack.
push(E) - Method in class net.datastructures.NodeStack
 
push(E) - Method in interface net.datastructures.Stack
Insert an element at the top of the stack.
put(K, V) - Method in class net.datastructures.AVLTreeMap
If there is an entry with the specified key, replaces the value of this entry with the specified value and returns the old value.
put(K, V) - Method in class net.datastructures.BinarySearchTreeMap
If there is an entry with the specified key, replaces the value of this entry with the specified value and returns the old value.
put(K, V) - Method in class net.datastructures.HashTableMap
Put a key-value pair in the map, replacing previous one if it exists.
put(K, V) - Method in interface net.datastructures.Map
If there is an entry with the specified key, replaces the value of this entry with the specified value and returns the old value.
put(K, V) - Method in class net.datastructures.RBTreeMap
If there is an entry with the specified key, replaces the value of this entry with the specified value and returns the old value.

Q

Q - Variable in class net.datastructures.Dijkstra
Auxiliary priority queue.
Queue<E> - Interface in net.datastructures
Interface for a queue: a collection of elements that are inserted and removed according to the first-in first-out principle.
quickSort(PositionList<E>, Comparator<E>) - Static method in class net.datastructures.Sort
Sorts the elements of list in in nondecreasing order according to comparator c, using a list-based implementation of the deterministic quicksort algorithm.
quickSort(E[], Comparator<E>) - Static method in class net.datastructures.Sort
Sorts the elements of array s in nondecreasing order according to comparator c, using the quick-sort algorithm.

R

RBTree<K,V> - Class in net.datastructures
Realization of a dictionary by means of a red-black tree.
RBTree() - Constructor for class net.datastructures.RBTree
 
RBTree(Comparator<K>) - Constructor for class net.datastructures.RBTree
 
RBTree.RBNode<K,V> - Class in net.datastructures
Nested class for the nodes of a red-black tree
RBTreeMap<K,V> - Class in net.datastructures
Realization of a map by means of a red-black tree.
RBTreeMap() - Constructor for class net.datastructures.RBTreeMap
 
RBTreeMap(Comparator<K>) - Constructor for class net.datastructures.RBTreeMap
 
RBTreeMap.RBNode<K,V> - Class in net.datastructures
Nested class for the nodes of a red-black tree
reached - Variable in class net.datastructures.ConnectivityDFS
 
rebalance(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTree
Rebalance method called by insert and remove.
rebalance(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTreeMap
Rebalance method called by insert and remove.
redChild(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Returns a red child of a node.
redChild(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Returns a red child of a node.
rehash() - Method in class net.datastructures.HashTableMap
Doubles the size of the hash table and rehashes all the entries.
remedyDoubleBlack(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Remedies a double black violation at a given node caused by removal.
remedyDoubleBlack(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Remedies a double black violation at a given node caused by removal.
remedyDoubleRed(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Remedies a double red violation at a given node caused by insertion.
remedyDoubleRed(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Remedies a double red violation at a given node caused by insertion.
remove(Entry<K, V>) - Method in interface net.datastructures.AdaptablePriorityQueue
Removes and returns an entry from the priority queue.
remove(int) - Method in class net.datastructures.ArrayIndexList
Removes the element stored at the given index.
remove() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Removes and returns the element at the last node.
remove(Entry<K, V>) - Method in class net.datastructures.AVLTree
Removes and returns an entry from the dictionary.
remove(K) - Method in class net.datastructures.AVLTreeMap
If there is an entry with the specified key, removes this entry and returns its value.
remove(Entry<K, V>) - Method in class net.datastructures.BinarySearchTree
Removes and returns a given entry.
remove(K) - Method in class net.datastructures.BinarySearchTreeMap
If there is an entry with the specified key, removes this entry and returns its value.
remove() - Method in interface net.datastructures.CompleteBinaryTree
Removes and returns the element stored in the last node of the tree.
remove(Entry<K, V>) - Method in interface net.datastructures.Dictionary
Removes and returns the given entry from the dictionary.
remove() - Method in class net.datastructures.ElementIterator
Throws an UnsupportedOperationException in all cases, because removal is not a supported operation in this iterator.
remove(K) - Method in class net.datastructures.HashTableMap
Removes the key-value pair with a specified key.
remove(Entry<K, V>) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Removes and returns the given entry from the heap.
remove(int) - Method in interface net.datastructures.IndexList
Removes and returns the element at index i, shifting the elements after this.
remove(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Removes a node with zero or one child.
remove(K) - Method in interface net.datastructures.Map
If there is an entry with the specified key, removes this entry and returns its value.
remove(Position<E>) - Method in class net.datastructures.NodePositionList
Remove the given position from the list; O(1) time
remove(Position<E>) - Method in interface net.datastructures.PositionList
Removes a node from the list, returning the element stored there.
remove(Entry<K, V>) - Method in class net.datastructures.RBTree
Removes and returns the given entry from the dictionary.
remove(K) - Method in class net.datastructures.RBTreeMap
If there is an entry with the specified key, removes this entry and returns its value.
remove(Entry<K, V>) - Method in class net.datastructures.SortedListAdaptablePriorityQueue
Removes and returns the given entry
removeAboveExternal(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Remove an external node v and replace its parent with v's sibling
removeEdge(Edge<E>) - Method in class net.datastructures.AdjacencyListGraph
Remove an edge and return its element
removeEdge(Edge<E>) - Method in interface net.datastructures.Graph
Removes an edge and return its element
removeExternal(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTree
Auxiliary method for removing an external node and its parent
removeExternal(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTreeMap
Auxiliary method for removing an external node and its parent
removeFirst() - Method in interface net.datastructures.Deque
Removes the first element; an exception is thrown if deque is empty.
removeFirst() - Method in class net.datastructures.NodeDeque
 
removeIncidence(Position<Edge<E>>) - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Removes an edge from the incidence container of this vertex.
removeLast() - Method in interface net.datastructures.Deque
Removes the last element; an exception is thrown if deque is empty.
removeLast() - Method in class net.datastructures.NodeDeque
 
removeMin() - Method in class net.datastructures.HeapPriorityQueue
Removes and returns an entry with minimum key
removeMin() - Method in interface net.datastructures.PriorityQueue
Removes and returns an entry with minimum key.
removeMin() - Method in class net.datastructures.SortedListPriorityQueue
Removes and returns an entry with minimum key.
removeVertex(Vertex<V>) - Method in class net.datastructures.AdjacencyListGraph
Remove a vertex and all its incident edges and return the element stored at the removed vertex
removeVertex(Vertex<V>) - Method in interface net.datastructures.Graph
Removes a vertex and all its incident edges and returns the element stored at the removed vertex
replace(Position, Object) - Method in class net.datastructures.AdjacencyListGraph
Replace the element a given position (vertex or edge) with a new element and return the old element
replace(Vertex<V>, V) - Method in class net.datastructures.AdjacencyListGraph
 
replace(Edge<E>, E) - Method in class net.datastructures.AdjacencyListGraph
 
replace(Position<E>, E) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Replaces the element at v.
replace(Vertex<V>, V) - Method in interface net.datastructures.Graph
Replaces the element of a given vertex with a new element and returns the old element
replace(Edge<E>, E) - Method in interface net.datastructures.Graph
Replaces the element of a given edge with a new element and returns the old element
replace(Position<E>, E) - Method in class net.datastructures.LinkedBinaryTree
Replaces the element at a node.
replace(Position<E>, E) - Method in class net.datastructures.LinkedTree
Replaces the element at a node.
replace(Position<E>, E) - Method in interface net.datastructures.Tree
Replaces the element stored at a given node.
replaceEntry(Position<Entry<K, V>>, Entry<K, V>) - Method in class net.datastructures.BinarySearchTree
Replaces an entry with a new entry (and reset the entry's location)
replaceEntry(Position<Entry<K, V>>, Entry<K, V>) - Method in class net.datastructures.BinarySearchTreeMap
Replaces an entry with a new entry (and reset the entry's location)
replaceEntry(Position, HeapAdaptablePriorityQueue.LocationAwareEntry<K, V>) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Replaces the element of the given position with the given location-aware entry.
replaceKey(Entry<K, V>, K) - Method in interface net.datastructures.AdaptablePriorityQueue
Replaces the key of an entry and returns the old key.
replaceKey(Entry<K, V>, K) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Replaces the key of the given entry.
replaceKey(Entry<K, V>, K) - Method in class net.datastructures.SortedListAdaptablePriorityQueue
Replaces the key of the given entry
replaceValue(Entry<K, V>, V) - Method in interface net.datastructures.AdaptablePriorityQueue
Replaces the value of an entry and returns the old value.
replaceValue(Entry<K, V>, V) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Replaces the value of the given entry.
replaceValue(Entry<K, V>, V) - Method in class net.datastructures.SortedListAdaptablePriorityQueue
Replaces the value of the given entry
restructure(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTree
Performs a tri-node restructuring.
restructure(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTreeMap
Performs a tri-node restructuring.
result() - Method in class net.datastructures.DFS
Returns a result of a visit (if needed).
right(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns the right child of v.
right(Position<E>) - Method in interface net.datastructures.BinaryTree
Returns the right child of a node.
right - Variable in class net.datastructures.EulerTour.TourResult
 
right(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Returns the right child of a node.
root() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns the root of the tree.
root - Variable in class net.datastructures.LinkedBinaryTree
 
root() - Method in class net.datastructures.LinkedBinaryTree
Returns the root of the tree.
root - Variable in class net.datastructures.LinkedTree
 
root() - Method in class net.datastructures.LinkedTree
Returns the root of the tree.
root() - Method in interface net.datastructures.Tree
Returns the root of the tree.

S

S - Variable in class net.datastructures.ArrayStack
Array used to implement the stack.
scale - Variable in class net.datastructures.HashTableMap
 
Sequence<E> - Interface in net.datastructures
An interface for a sequence, a data structure supporting all operations of a deque, indexed list and position list.
serialVersionUID - Static variable in exception net.datastructures.InvalidKeyException
 
set(int, E) - Method in class net.datastructures.ArrayIndexList
Replaces the element stored at the given index.
set(int, E) - Method in interface net.datastructures.IndexList
Replaces the element at index i with e, returning the previous element at i.
set(Position<E>, E) - Method in class net.datastructures.NodePositionList
Replace the element at the given position with the new element and return the old element; O(1) time
set(Position<E>, E) - Method in interface net.datastructures.PositionList
Replaces the element stored at the given node, returning old element.
setBlack(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Colors a node black.
setBlack(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Colors a node black.
setChildren(PositionList<Position<E>>) - Method in class net.datastructures.TreeNode
Sets the right child of this position
setChildren(PositionList<Position<E>>) - Method in interface net.datastructures.TreePosition
 
setColor(boolean) - Method in class net.datastructures.RBTree.RBNode
 
setColor(Position<Entry<K, V>>, boolean) - Method in class net.datastructures.RBTree
Sets the color of a node.
setColor(boolean) - Method in class net.datastructures.RBTreeMap.RBNode
 
setColor(Position<Entry<K, V>>, boolean) - Method in class net.datastructures.RBTreeMap
Sets the color of a node.
setComparator(Comparator<K>) - Method in class net.datastructures.HeapPriorityQueue
Sets the comparator used for comparing items in the heap.
setComparator(Comparator<K>) - Method in class net.datastructures.SortedListPriorityQueue
Sets the comparator for this priority queue.
setElement(T) - Method in class net.datastructures.AdjacencyListGraph.MyPosition
Sets the element stored at this position.
setElement(E) - Method in class net.datastructures.ArrayListCompleteBinaryTree.BTPos
 
setElement(E) - Method in class net.datastructures.BTNode
Sets the element stored at this position
setElement(E) - Method in interface net.datastructures.BTPosition
 
setElement(E) - Method in class net.datastructures.DLNode
 
setElement(E) - Method in class net.datastructures.DNode
 
setElement(E) - Method in class net.datastructures.Node
 
setElement(E) - Method in class net.datastructures.TreeNode
Sets the element stored at this position
setElement(E) - Method in interface net.datastructures.TreePosition
 
setHeight(int) - Method in class net.datastructures.AVLTree.AVLNode
 
setHeight(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTree
Sets the height of an internal node (call back to an AVLNode).
setHeight(int) - Method in class net.datastructures.AVLTreeMap.AVLNode
 
setHeight(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTreeMap
Sets the height of an internal node (call back to an AVLNode).
setIncidences(Position<Edge<E>>, Position<Edge<E>>) - Method in class net.datastructures.AdjacencyListGraph.MyEdge
Sets the positions of the edge in the incidence containers of its end vertices.
setKey(K) - Method in class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
setKey(K) - Method in class net.datastructures.SortedListAdaptablePriorityQueue.LocationAwareEntry
 
setLeft(BTPosition<E>) - Method in class net.datastructures.BTNode
Sets the left child of this position
setLeft(BTPosition<E>) - Method in interface net.datastructures.BTPosition
 
setLocation(Position<Edge<E>>) - Method in class net.datastructures.AdjacencyListGraph.MyEdge
Sets the position of the edge in the edge container of the graph.
setLocation(Position<Vertex<V>>) - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Sets the position of this vertex in the vertex container of the graph.
setLocation(Position) - Method in class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
setLocation(Position<Entry<K, V>>) - Method in class net.datastructures.SortedListAdaptablePriorityQueue.LocationAwareEntry
 
setNext(DLNode<E>) - Method in class net.datastructures.DLNode
 
setNext(DNode<E>) - Method in class net.datastructures.DNode
 
setNext(Node<E>) - Method in class net.datastructures.Node
 
setParent(BTPosition<E>) - Method in class net.datastructures.BTNode
Sets the parent of this position
setParent(BTPosition<E>) - Method in interface net.datastructures.BTPosition
 
setParent(TreePosition<E>) - Method in class net.datastructures.TreeNode
Sets the parent of this position
setParent(TreePosition<E>) - Method in interface net.datastructures.TreePosition
 
setPrev(DLNode<E>) - Method in class net.datastructures.DLNode
 
setPrev(DNode<E>) - Method in class net.datastructures.DNode
 
setRed(Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Colors a node red.
setRed(Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Colors a node red.
setRight(BTPosition<E>) - Method in class net.datastructures.BTNode
Sets the right child of this position
setRight(BTPosition<E>) - Method in interface net.datastructures.BTPosition
 
setup() - Method in class net.datastructures.ComponentsDFS
 
setup() - Method in class net.datastructures.ConnectivityDFS
Executes the DFS algorithm.
setup() - Method in class net.datastructures.DFS
Setup method that is called prior to the DFS execution.
setup() - Method in class net.datastructures.FindCycleDFS
Executes the DFS algorithm.
setup() - Method in class net.datastructures.FindPathDFS
Setup method to initialize the path.
setValue(V) - Method in class net.datastructures.HashTableMap.HashEntry
 
setValue(V) - Method in class net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry
 
setValue(V) - Method in class net.datastructures.SortedListAdaptablePriorityQueue.LocationAwareEntry
 
shift - Variable in class net.datastructures.HashTableMap
 
sibling(Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns the sibling of v.
sibling(Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Return the sibling of a node
size() - Method in class net.datastructures.ArrayIndexList
Returns the number of elements in the indexed list.
size() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns the number of (internal and external) nodes.
size() - Method in class net.datastructures.ArrayStack
Returns the number of elements in the stack.
size() - Method in class net.datastructures.BinarySearchTree
Returns the number of entries in the tree.
size() - Method in class net.datastructures.BinarySearchTreeMap
Returns the number of entries in the tree.
size() - Method in interface net.datastructures.Deque
Returns the number of elements in the deque.
size() - Method in interface net.datastructures.Dictionary
Returns the number of entries in the dictionary.
size() - Method in class net.datastructures.HashTableMap
Returns the number of entries in the hash table.
size() - Method in class net.datastructures.HeapPriorityQueue
Returns the size of the heap
size() - Method in interface net.datastructures.IndexList
Returns the number of elements in this list.
size - Variable in class net.datastructures.LinkedBinaryTree
 
size() - Method in class net.datastructures.LinkedBinaryTree
Returns the number of nodes in the tree.
size - Variable in class net.datastructures.LinkedTree
 
size() - Method in class net.datastructures.LinkedTree
Returns the number of nodes in the tree.
size() - Method in interface net.datastructures.Map
Returns the number of items in the map.
size - Variable in class net.datastructures.NodeDeque
 
size() - Method in class net.datastructures.NodeDeque
Return the size of the deque, that is the number of elements it has.
size() - Method in class net.datastructures.NodePositionList
Returns the number of elements in the list; O(1) time
size - Variable in class net.datastructures.NodeQueue
 
size() - Method in class net.datastructures.NodeQueue
 
size - Variable in class net.datastructures.NodeStack
 
size() - Method in class net.datastructures.NodeStack
 
size() - Method in interface net.datastructures.PositionList
Returns the number of elements in this list.
size() - Method in interface net.datastructures.PriorityQueue
Returns the number of items in the priority queue.
size() - Method in interface net.datastructures.Queue
Returns the number of elements in the queue.
size() - Method in class net.datastructures.SortedListPriorityQueue
Returns the number of elements in the priority queue.
size() - Method in interface net.datastructures.Stack
Return the number of elements in the stack.
size() - Method in interface net.datastructures.Tree
Returns the number of nodes in the tree.
Sort - Class in net.datastructures
Class containing various sorting algorithms.
Sort() - Constructor for class net.datastructures.Sort
 
SortedListAdaptablePriorityQueue<K,V> - Class in net.datastructures
Implementation of an adaptable priority queue by means of a sorted list.
SortedListAdaptablePriorityQueue() - Constructor for class net.datastructures.SortedListAdaptablePriorityQueue
Creates the priority queue with the default comparator
SortedListAdaptablePriorityQueue(Comparator<K>) - Constructor for class net.datastructures.SortedListAdaptablePriorityQueue
Creates the priority queue with the given comparator
SortedListAdaptablePriorityQueue(PositionList<Entry<K, V>>, Comparator<K>) - Constructor for class net.datastructures.SortedListAdaptablePriorityQueue
Creates the priority queue with the given comparator and list.
SortedListAdaptablePriorityQueue.LocationAwareEntry<K,V> - Class in net.datastructures
Inner class for a location-aware entry
SortedListAdaptablePriorityQueue.LocationAwareEntry(K, V) - Constructor for class net.datastructures.SortedListAdaptablePriorityQueue.LocationAwareEntry
 
SortedListAdaptablePriorityQueue.LocationAwareEntry(K, V, Position<Entry<K, V>>) - Constructor for class net.datastructures.SortedListAdaptablePriorityQueue.LocationAwareEntry
 
SortedListPriorityQueue<K,V> - Class in net.datastructures
Realization of a priority queue by means of a sorted node list in nondecreasing order.
SortedListPriorityQueue() - Constructor for class net.datastructures.SortedListPriorityQueue
Creates the priority queue with the default comparator.
SortedListPriorityQueue(Comparator<K>) - Constructor for class net.datastructures.SortedListPriorityQueue
Creates the priority queue with the given comparator.
SortedListPriorityQueue(PositionList<Entry<K, V>>, Comparator<K>) - Constructor for class net.datastructures.SortedListPriorityQueue
Creates the priority queue with the given comparator and list.
SortedListPriorityQueue.MyEntry<K,V> - Class in net.datastructures
Inner class for entries
SortedListPriorityQueue.MyEntry(K, V) - Constructor for class net.datastructures.SortedListPriorityQueue.MyEntry
 
Stack<E> - Interface in net.datastructures
Interface for a stack: a collection of objects that are inserted and removed according to the last-in first-out principle.
start - Variable in class net.datastructures.DFS
 
startVisit(Vertex<V>) - Method in class net.datastructures.ComponentsDFS
 
startVisit(Vertex<V>) - Method in class net.datastructures.ConnectivityDFS
 
startVisit(Vertex<V>) - Method in class net.datastructures.DFS
Called when we encounter a vertex (v).
startVisit(Vertex<V>) - Method in class net.datastructures.FindCycleDFS
 
startVisit(Vertex<V>) - Method in class net.datastructures.FindPathDFS
 
status(String, Object) - Method in class net.datastructures.ArrayStack
Prints status information about a recent operation and the stack.
STATUS - Static variable in class net.datastructures.DFS
 
status(Queue, String, Object) - Static method in class net.datastructures.NodeQueue
Prints information about an operation and the queue.
status(Stack, String, Object) - Static method in class net.datastructures.NodeStack
Prints information about an operation and the stack.
swap(Position<Entry<K, V>>, Position<Entry<K, V>>) - Method in class net.datastructures.HeapAdaptablePriorityQueue
Swaps the elements of the two positions.
swap(Position<Entry<K, V>>, Position<Entry<K, V>>) - Method in class net.datastructures.HeapPriorityQueue
Swaps the entries of the two given positions
swap(Position<Entry<K, V>>, Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Swaps the colors and elements at the two nodes.
swap(Position<Entry<K, V>>, Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Swaps the colors and elements at the two nodes.
swapColor(Position<Entry<K, V>>, Position<Entry<K, V>>) - Method in class net.datastructures.RBTree
Swaps the colors of a and b if they are different and returns whether a was red.
swapColor(Position<Entry<K, V>>, Position<Entry<K, V>>) - Method in class net.datastructures.RBTreeMap
Swaps the colors of a and b if they are different and returns whether a was red.
swapElements(Position<E>, Position<E>) - Method in class net.datastructures.ArrayListCompleteBinaryTree
Swaps the elements at two nodes.
swapElements(Position<E>, Position<E>) - Method in class net.datastructures.LinkedBinaryTree
Swap the elements at two nodes
swapElements(Position<E>, Position<E>) - Method in class net.datastructures.LinkedTree
Swap the elements at two nodes
swapElements(Position<E>, Position<E>) - Method in class net.datastructures.NodePositionList
Swap the elements of two give positions; O(1) time

T

T - Variable in class net.datastructures.ArrayListCompleteBinaryTree
 
tail - Variable in class net.datastructures.NodeQueue
 
tallerChild(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTree
Return a child of p with height no smaller than that of the other child.
tallerChild(Position<Entry<K, V>>) - Method in class net.datastructures.AVLTreeMap
Return a child of p with height no smaller than that of the other child.
top - Variable in class net.datastructures.ArrayStack
Index of the top element of the stack in the array.
top() - Method in class net.datastructures.ArrayStack
Inspects the element at the top of the stack.
top - Variable in class net.datastructures.NodeStack
 
top() - Method in class net.datastructures.NodeStack
 
top() - Method in interface net.datastructures.Stack
Inspect the element at the top of the stack.
toString() - Method in class net.datastructures.AdjacencyListGraph.MyEdge
Returns a string representation of the edge via a tuple of vertices.
toString() - Method in class net.datastructures.AdjacencyListGraph.MyVertex
Returns a string representation of the element stored at this vertex.
toString() - Method in class net.datastructures.AdjacencyListGraph
Returns a string representation of the vertex and edge lists, separated by a newline.
toString() - Method in class net.datastructures.ArrayListCompleteBinaryTree.BTPos
 
toString() - Method in class net.datastructures.ArrayListCompleteBinaryTree
Returns a String representing this complete binary tree.
toString() - Method in class net.datastructures.ArrayStack
Returns a string representation of the stack as a list of elements, with the top element at the end: [ ... , prev, top ].
toString() - Method in class net.datastructures.HashTableMap.HashEntry
Entry visualization.
toString() - Method in class net.datastructures.HeapPriorityQueue.MyEntry
 
toString() - Method in class net.datastructures.HeapPriorityQueue
Text visualization for debugging purposes
toString(PositionList<E>) - Static method in class net.datastructures.NodePositionList
Returns a textual representation of a given node list
toString() - Method in class net.datastructures.NodePositionList
Returns a textual representation of the list
toString() - Method in class net.datastructures.NodeQueue
 
toString() - Method in class net.datastructures.NodeStack
Returns a string representation of the stack as a list of elements, with the top element at the end: [ ... , prev, top ].
toString() - Method in class net.datastructures.SortedListPriorityQueue.MyEntry
 
toString() - Method in class net.datastructures.SortedListPriorityQueue
 
trailer - Variable in class net.datastructures.NodeDeque
 
trailer - Variable in class net.datastructures.NodePositionList
 
traverseBack(Edge<E>, Vertex<V>) - Method in class net.datastructures.DFS
Called when we traverse a back edge (e) from a vertex (from).
traverseBack(Edge<E>, Vertex<V>) - Method in class net.datastructures.FindCycleDFS
 
traverseDiscovery(Edge<E>, Vertex<V>) - Method in class net.datastructures.DFS
Called when we traverse a discovery edge (e) from a vertex (from).
traverseDiscovery(Edge<E>, Vertex<V>) - Method in class net.datastructures.FindCycleDFS
 
traverseDiscovery(Edge<E>, Vertex<V>) - Method in class net.datastructures.FindPathDFS
 
tree - Variable in class net.datastructures.EulerTour
 
Tree<E> - Interface in net.datastructures
An interface for a tree where nodes can have an arbitrary number of children.
TreeNode<E> - Class in net.datastructures
Class implementing a node of a binary tree by storing references to an element, a parent node, a left node, and a right node.
TreeNode() - Constructor for class net.datastructures.TreeNode
Default constructor
TreeNode(E, TreePosition<E>, PositionList<Position<E>>) - Constructor for class net.datastructures.TreeNode
Main constructor
TreePosition<E> - Interface in net.datastructures
Interface for a node of a binary tree.
treeSearch(K, Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTree
Auxiliary method used by find, insert, and remove.
treeSearch(K, Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTreeMap
Auxiliary method used by get, put, and remove.

U

unVisit(DecorablePosition<?>) - Method in class net.datastructures.DFS
Mark a position (vertex or edge) as unvisited.
UNVISITED - Static variable in class net.datastructures.DFS
 
upHeap(Position<Entry<K, V>>) - Method in class net.datastructures.HeapPriorityQueue
Performs up-heap bubbling

V

v - Variable in class net.datastructures.SortedListPriorityQueue.MyEntry
 
value - Variable in class net.datastructures.BinarySearchTree.BSTEntry
 
value(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTree
Extracts the value of the entry at a given node of the tree.
value - Variable in class net.datastructures.BinarySearchTreeMap.BSTEntry
 
value(Position<Entry<K, V>>) - Method in class net.datastructures.BinarySearchTreeMap
Extracts the value of the entry at a given node of the tree.
value - Variable in class net.datastructures.HashTableMap.HashEntry
 
value - Variable in class net.datastructures.HeapPriorityQueue.MyEntry
 
values() - Method in class net.datastructures.BinarySearchTreeMap
Returns an iterable object containing all values in the tree.
values() - Method in class net.datastructures.HashTableMap
Returns an iterable object containing all of the values.
values() - Method in interface net.datastructures.Map
Returns an iterable object containing all the values in the map.
Vertex<E> - Interface in net.datastructures
An interface for a vertex of a graph.
vertices() - Method in class net.datastructures.AdjacencyListGraph
Return an iterator over the vertices of the graph
vertices() - Method in interface net.datastructures.Graph
Returns the vertices of the graph as an iterable collection
visit(DecorablePosition<?>) - Method in class net.datastructures.DFS
Mark a position (vertex or edge) as visited.
visitBelow(Position<E>, EulerTour<E, R>.TourResult<R>) - Method in class net.datastructures.EulerTour
Method called for the visit on from below
VISITED - Static variable in class net.datastructures.DFS
 
visitLeft(Position<E>, EulerTour<E, R>.TourResult<R>) - Method in class net.datastructures.EulerTour
Method called for the visit on the left
visitResult - Variable in class net.datastructures.DFS
 
visitRight(Position<E>, EulerTour<E, R>.TourResult<R>) - Method in class net.datastructures.EulerTour
Method called for the visit on the right
VList - Variable in class net.datastructures.AdjacencyListGraph
 

W

WEIGHT - Variable in class net.datastructures.Dijkstra
Decoration key for edge weights

A B C D E F G H I K L M N O P Q R S T U V W
net.datastructures - version 5.0