YiSu Grain
Author

YiSu Grain

A fleeting mayfly in the world, a single grain in the boundless sea.

68
Articles
0
Likes
32
Views
0
Comments
Recent Articles

Latest from YiSu Grain

68 recent articles
YiSu Grain
YiSu Grain
Nov 13, 2024 · Frontend Development

FineReport Tip: Show Fixed‑URL Image on Hover in a Standard Report (Part 1)

This tutorial walks through creating a FineReport template, adding a parameter panel, designing the table, importing Bootstrap CSS/JS, configuring a tooltip, writing JavaScript to display a fixed‑URL image when hovering over cells in column E, and previewing the result.

BootstrapFineReportJavaScript
0 likes · 4 min read
FineReport Tip: Show Fixed‑URL Image on Hover in a Standard Report (Part 1)
YiSu Grain
YiSu Grain
Nov 7, 2024 · Operations

Building a Safety Equipment Warning System with FineReport – Step‑by‑Step Guide

This article walks through creating a safety‑protective‑equipment warning management system using FineReport, covering MySQL table setup, data import templates, batch handling, validation formulas, SQL‑driven datasets, pagination controls, batch deletion, warning calculations, detailed view reports, and dashboard visualisation with pie, bar and gauge charts.

BIDashboardDataValidation
0 likes · 23 min read
Building a Safety Equipment Warning System with FineReport – Step‑by‑Step Guide
YiSu Grain
YiSu Grain
Oct 29, 2024 · Fundamentals

Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting

The article explains what inversion pairs are, demonstrates a naïve O(n²) counting method, then introduces a smarter right‑to‑left approach using a Fenwick (Binary Indexed) tree with discretization to achieve efficient O(n log n) inversion counting, providing full Python implementations and step‑by‑step examples.

Binary Indexed TreeFenwick treePython
0 likes · 7 min read
Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting
YiSu Grain
YiSu Grain
Oct 25, 2024 · Fundamentals

Understanding Treap: A Balanced Tree Explained

This article explains the treap data structure, detailing how each node stores a key and a priority to satisfy both binary‑search‑tree ordering and heap ordering, and walks through insertion, rotation, deletion, and a full Python implementation with concrete examples.

Data StructuresPythonTreap
0 likes · 14 min read
Understanding Treap: A Balanced Tree Explained
YiSu Grain
YiSu Grain
Oct 23, 2024 · Fundamentals

Understanding Fenwick Tree: A Step‑by‑Step Guide

This article explains how a Fenwick (Binary Indexed) Tree stores prefix sums using binary representations and the least‑significant‑bit trick, shows concrete examples for computing sums of sub‑arrays, and provides a full Python implementation with update and query operations.

Binary Indexed TreeData StructureFenwick tree
0 likes · 9 min read
Understanding Fenwick Tree: A Step‑by‑Step Guide
YiSu Grain
YiSu Grain
Oct 22, 2024 · Fundamentals

How Segment Trees Enable Lightning‑Fast Range Sum Queries

This article explains the segment tree data structure, showing how to build it both bottom‑up and recursively, how node indexing works, and how the query algorithm skips irrelevant intervals to compute range sums in logarithmic time, complete with Python code examples and performance tips.

Pythonbinary treebottom‑up construction
0 likes · 18 min read
How Segment Trees Enable Lightning‑Fast Range Sum Queries
YiSu Grain
YiSu Grain
Oct 21, 2024 · Fundamentals

Designing an Intelligent Travel Planner with Dijkstra’s Algorithm to Boost Trip Efficiency

This article walks through the design of an intelligent travel‑planning system that uses Dijkstra’s algorithm to compute the minimum travel cost to each city while maximizing the number of cities visited, detailing problem formulation, algorithmic steps, variable initialization, edge‑relaxation logic, and a full Python implementation.

DijkstraPythongraph algorithm
0 likes · 18 min read
Designing an Intelligent Travel Planner with Dijkstra’s Algorithm to Boost Trip Efficiency
YiSu Grain
YiSu Grain
Oct 19, 2024 · Fundamentals

How Heap and Recursion Can Select the Best Tourist Attractions

The article explains how to use a max‑heap together with backtracking and a greedy strategy in Python to recommend the top three attractions with the highest scores while keeping the total travel distance under 20 km, and discusses the algorithm's steps, example execution, and limitations.

Data StructuresPythonbacktracking
0 likes · 12 min read
How Heap and Recursion Can Select the Best Tourist Attractions