Introducing the Skip List data structure – Arrays, collections and data structuresIntroducing the Skip List data structure – Arrays, collections and data structures

113. Introducing the Skip List data structure The Skip List data structure is a probabilistic data structure built on top of a linked list. A Skip List uses an underlying [...]

Introducing the K-D-trees data structure 2 – Arrays, collections and data structuresIntroducing the K-D-trees data structure 2 – Arrays, collections and data structures

Done! So inserting has two simple rules:We compare components alternatively starting with x. At level one, we compare x, at level two, we compare y, at level three we compare [...]

Introducing the K-D-trees data structure – Arrays, collections and data structuresIntroducing the K-D-trees data structure – Arrays, collections and data structures

114. Introducing the K-D-trees data structure A K-D Tree (also referred to as a K-Dimensional tree) is a data structure that is a flavor of Binary Search Tree (BST) dedicated [...]

Introducing the Zipper data structure 2 – Arrays, collections and data structuresIntroducing the Zipper data structure 2 – Arrays, collections and data structures

The remaining code handles the initialization of children in a lazy fashion (on demand):   @Override  public Collection<? extends Zippable> getChildren() {    lazyGetChildren();    return (children != null) ?      new LinkedList<>(Arrays.asList(children)) [...]

Introducing the Zipper data structure – Arrays, collections and data structuresIntroducing the Zipper data structure – Arrays, collections and data structures

115. Introducing the Zipper data structure The Zipper data structure is meant to facilitate cursor-like navigation capabilities over another data structure such as a tree. Moreover, it may provide capabilities [...]

Introducing the Binomial Heap data structure 3 – Arrays, collections and data structuresIntroducing the Binomial Heap data structure 3 – Arrays, collections and data structures

Implementing unionHeap(BinomialHeap heap) Consider two Binomial Heaps (H1 and H2). The goal of the union operation is to create H3 by unifying H1 with H2. Let’s assume that H1 (having [...]

Introducing the Fibonacci Heaps data structure – Arrays, collections and data structuresIntroducing the Fibonacci Heaps data structure – Arrays, collections and data structures

117. Introducing the Fibonacci Heaps data structure A Fibonacci Heap is a flavor of Binomial Heap with excellent performance in amortized time for operations such as insert, extract minimum and [...]

Introducing the Huffman Coding data structure – Arrays, collections and data structuresIntroducing the Huffman Coding data structure – Arrays, collections and data structures

119. Introducing the Huffman Coding data structure The Huffman Coding algorithm was developed by David A. Huffman in 1950 and it can be easily understood via an example. Let’s assume [...]