Tag

Tree Structure

0 views collected around this technical thread.

Top Architect
Top Architect
Aug 22, 2024 · Backend Development

Implementing a Generic Tree Conversion Utility in Java

This article explains how to design a flexible TreeNode interface and a TreeUtil class in Java that convert flat collections into hierarchical tree structures, provides multiple static methods for object and JSON tree generation, and discusses optimization techniques for large data sets.

Data StructuresTree StructureUtility
0 likes · 10 min read
Implementing a Generic Tree Conversion Utility in Java
Java Architect Essentials
Java Architect Essentials
Jul 19, 2024 · Backend Development

Unified TreeNode Utility Class for Multi‑Level Menus, Comments, Departments, and Categories in SpringBoot

This article explains how to create a unified SpringBoot utility class that builds hierarchical structures such as multi‑level menus, comments, departments, and categories, discusses database design choices like the optional tree_path field, provides a detailed ITreeNode interface, implementation of TreeNodeUtil with code examples, and demonstrates testing and filtering scenarios.

Backend DevelopmentMulti-level MenuSpringBoot
0 likes · 12 min read
Unified TreeNode Utility Class for Multi‑Level Menus, Comments, Departments, and Categories in SpringBoot
Architecture Digest
Architecture Digest
Jan 19, 2024 · Backend Development

Assembling Hierarchical Tree Structures with Java Streams, Caching and Message Queues

This article demonstrates how to efficiently build department and regional hierarchical trees in Java by fetching all records in a single database query, using Stream API, Lambda expressions, in‑memory grouping, Redis caching and RocketMQ for asynchronous updates, achieving sub‑second response times even with tens of thousands of nodes.

CachingStreamTree Structure
0 likes · 11 min read
Assembling Hierarchical Tree Structures with Java Streams, Caching and Message Queues
37 Interactive Technology Team
37 Interactive Technology Team
Nov 21, 2022 · Mobile Development

Red Dot Counter Implementation in a Mobile App

The article explains how to implement a red‑dot badge system in the “玩心部落” mobile app using a tree‑structured RedPoint hierarchy combined with the Observer pattern, where each node tracks its count, notifies UI observers, propagates updates to parent nodes, and is managed centrally by a HeadRedPoint singleton for easy extension.

Observer PatternRed DotTree Structure
0 likes · 12 min read
Red Dot Counter Implementation in a Mobile App
IT Architects Alliance
IT Architects Alliance
Apr 16, 2022 · Backend Development

Designing a Flexible Workflow Engine: From Simple Chains to Complex Nested Nodes

This article narrates the step‑by‑step evolution of a custom workflow engine, detailing how simple sequential approvers were transformed into a tree‑structured system supporting parallel, multi‑sign, conditional, delegation, and nested nodes, complete with status management and progress metrics.

AutomationTree Structureapproval
0 likes · 9 min read
Designing a Flexible Workflow Engine: From Simple Chains to Complex Nested Nodes
Selected Java Interview Questions
Selected Java Interview Questions
Apr 14, 2022 · Backend Development

Converting a List to a Tree Structure Using Java 8 Streams

This article demonstrates how to transform a flat list into a hierarchical tree structure in Java by defining a NodeVO class, implementing a recursive Stream‑based conversion method, and testing it with sample data, showcasing the elegance of the Stream API over traditional loops.

Backend DevelopmentList ConversionStream API
0 likes · 4 min read
Converting a List to a Tree Structure Using Java 8 Streams
Top Architect
Top Architect
Apr 9, 2022 · Databases

Applying the Nested Set Model for Hierarchical Department Queries in MySQL

This article explains how to use the nested set (left‑right) model to efficiently query, count, and manipulate hierarchical department data in MySQL, providing SQL examples for retrieving descendants, ancestors, leaf detection, as well as insert, delete, and JavaScript tree‑building techniques.

DatabaseMySQLNested Set Model
0 likes · 11 min read
Applying the Nested Set Model for Hierarchical Department Queries in MySQL
Java Captain
Java Captain
Mar 12, 2022 · Backend Development

Building a Tree Structure from a Flat List Using Java 8 Streams

This article demonstrates how to retrieve flat menu data from a database into a List, then use Java 8 Stream operations and recursive methods to assemble a hierarchical tree structure, printing the result as JSON for verification.

Tree Structurebackendjava
0 likes · 4 min read
Building a Tree Structure from a Flat List Using Java 8 Streams
Youku Technology
Youku Technology
Feb 28, 2022 · Artificial Intelligence

Seq2Path: Generating Sentiment Tuples as Paths of a Tree

Seq2Path treats each sentiment tuple as an independent tree path, training with average path loss and decoding via constrained beam search with a discriminative token, achieving state‑of‑the‑art results on five aspect‑based sentiment analysis datasets and deployment in Alibaba Entertainment AI Brain.

ACLInformation ExtractionNatural Language Processing
0 likes · 3 min read
Seq2Path: Generating Sentiment Tuples as Paths of a Tree
Selected Java Interview Questions
Selected Java Interview Questions
Sep 19, 2021 · Backend Development

Designing a Multi‑Level Workflow Engine: From Simple Chains to Complex Conditional and Parallel Nodes

This article walks through the step‑by‑step design of a workflow engine, starting with a basic approval chain and progressively adding countersign, parallel, conditional, delegation, timeout, scripting, and progress‑tracking features, illustrating a tree‑based architecture and node‑state management.

Tree Structureapprovalbackend
0 likes · 12 min read
Designing a Multi‑Level Workflow Engine: From Simple Chains to Complex Conditional and Parallel Nodes