Tagged articles
12 articles
Page 1 of 1
Model Perspective
Model Perspective
Nov 18, 2024 · Fundamentals

Explore Four Innovative Python Charts to Elevate Your Data Visualizations

This article introduces four innovative Python chart types—Radar Chart, Treemap, Ternary Plot, and Joy Plot—explaining their concepts, typical applications such as performance evaluation and market analysis, and providing complete code examples to help data analysts create compelling visualizations.

Data visualizationJoy PlotPython
0 likes · 8 min read
Explore Four Innovative Python Charts to Elevate Your Data Visualizations
Su San Talks Tech
Su San Talks Tech
Oct 30, 2023 · Backend Development

Boost Backend Performance with HashMap, LinkedHashMap, TreeMap & ByteBuffer

This article explores four powerful yet understated caching techniques—HashMap with read‑write locks, LinkedHashMap‑based LRU caches, TreeMap for consistent hashing, and ByteBuffer pooling—detailing their implementations in middleware such as RocketMQ, MyBatis, and Cobar to enhance backend performance.

ByteBufferConcurrentHashMapHashMap
0 likes · 10 min read
Boost Backend Performance with HashMap, LinkedHashMap, TreeMap & ByteBuffer
IT Xianyu
IT Xianyu
Oct 10, 2020 · Fundamentals

How to Choose Between HashMap and TreeMap in Java

HashMap and TreeMap serve different purposes in Java: HashMap offers fast, unordered access using hash codes, while TreeMap maintains keys in sorted order via a red‑black tree, and the article explains their implementations, performance trade‑offs, and how to customize TreeMap ordering with comparators.

CollectionsComparatorData Structures
0 likes · 5 min read
How to Choose Between HashMap and TreeMap in Java
Programmer DD
Programmer DD
Jul 23, 2020 · Fundamentals

When to Use HashMap vs TreeMap in Java? A Practical Guide

This article explains the differences between Java's HashMap and TreeMap, covering their underlying implementations, performance characteristics, thread safety, and how to customize TreeMap for descending order, helping developers choose the right map for their needs.

CollectionsData StructuresHashMap
0 likes · 7 min read
When to Use HashMap vs TreeMap in Java? A Practical Guide
Architecture Digest
Architecture Digest
Dec 18, 2019 · Fundamentals

Understanding Red‑Black Trees: Principles, Insertion, Deletion, Rotations and Java TreeMap Implementation

This article provides a comprehensive overview of red‑black trees, covering the underlying concepts of binary trees, binary search trees, balanced trees such as AVL, the five red‑black properties, insertion and deletion algorithms with color changes and rotations, and a detailed Java TreeMap source‑code illustration.

BalancingData StructuresDeletion
0 likes · 23 min read
Understanding Red‑Black Trees: Principles, Insertion, Deletion, Rotations and Java TreeMap Implementation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 20, 2019 · Fundamentals

Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java

An interview-style dialogue explains the distinctions between TreeSet and HashSet, the underlying implementations of HashMap versus TreeMap, and how red‑black trees provide balanced performance, covering hash collisions, treeification, and thread‑safety considerations in Java collections.

CollectionsData StructuresHashMap
0 likes · 6 min read
Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java
Selected Java Interview Questions
Selected Java Interview Questions
Oct 10, 2019 · Fundamentals

Choosing Between HashMap and TreeMap in Java

This article explains the differences between Java's HashMap and TreeMap, covering their underlying implementations, performance characteristics, ordering behavior, and how to use a custom comparator to achieve descending order, helping developers choose the appropriate map based on ordering and efficiency needs.

CollectionsComparatorData Structures
0 likes · 8 min read
Choosing Between HashMap and TreeMap in Java
Programmer DD
Programmer DD
Apr 19, 2019 · Fundamentals

Master Java’s Comparator: Sorting Collections, Streams, and Sets Made Easy

This article explains Java's Comparator interface, its compare method, lambda definitions, and how to use it with Collections.sort, List.sort, Arrays.sort, Stream.sorted, as well as with SortedSet and SortedMap structures, covering static and default methods like reversed, nullsFirst, thenComparing, and more.

ComparatorLambdaSorting
0 likes · 31 min read
Master Java’s Comparator: Sorting Collections, Streams, and Sets Made Easy
Programmer DD
Programmer DD
Mar 16, 2019 · Backend Development

Mastering Consistent Hashing: Custom Ordered Map and Performance Tips

This article explains the principles of consistent hashing, demonstrates how to implement a custom ordered map and a TreeMap‑based solution for node selection, compares their performance, and shows how to integrate the algorithm into a routing framework with extensible strategies for backend services.

Routing AlgorithmTreeMapconsistent hashing
0 likes · 11 min read
Mastering Consistent Hashing: Custom Ordered Map and Performance Tips