Category: Implementing joins algorithms

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 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 [...]

Implementing a custom pattern-based ObjectInputFilter – Java I/O: Context-Specific Deserialization FiltersImplementing a custom pattern-based ObjectInputFilter – Java I/O: Context-Specific Deserialization Filters

128. Implementing a custom pattern-based ObjectInputFilter Let’s assume that we already have the Melon class and the helper methods for serializing/deserializing objects to/from byte arrays from Problem 124.Creating a pattern-based [...]

Implementing a custom method ObjectInputFilter – Java I/O: Context-Specific Deserialization FiltersImplementing a custom method ObjectInputFilter – Java I/O: Context-Specific Deserialization Filters

130. Implementing a custom method ObjectInputFilter Let’s assume that we already have the Melon class and the helper methods for serializing/deserializing objects to/from byte arrays from Problem 124.An ObjectInputFilter can [...]

Avoiding StackOverflowError at deserialization – Java I/O: Context-Specific Deserialization FiltersAvoiding StackOverflowError at deserialization – Java I/O: Context-Specific Deserialization Filters

132. Avoiding StackOverflowError at deserialization Let’s consider the following snippet of code: // ‘mapOfSets’ is the object to serialize/deserializeHashMap<Set, Integer> mapOfSets = new HashMap<>();Set<Set> set = new HashSet<>();mapOfSets.put(set, 1);set.add(set); And, [...]