structures

some data structures not built into Javascript natively

virtuosity.structures

Classes


Classes

LinkedList

linked list

new virtuosity.structures.LinkedList();

DoublyLinkedList

doubly linked list

new virtuosity.structures.DoublyLinkedList();

Stack

stack

new virtuosity.structures.Stack();

Queue

queue

new virtuosity.structures.Queue();

PriorityQueue

priority queue

new virtuosity.structures.PriorityQueue();

Heap

tree-like automatic ordering of a set for the purpose of getting the lowest value quickly. This is faster than a normal binary search tree as it actually uses an array

new virtuosity.structures.Heap();

ReverseHeap

tree-like automatic ordering of a set for the purpose of getting the highest value quickly. This is faster than a normal binary search tree as it actually uses an array

new virtuosity.structures.ReverseHeap();