Tagged articles

algorithm

659 articles · Page 4 of 7
Su San Talks Tech
Su San Talks Tech
Sep 20, 2022 · Game Development

How I Built a Solvable ‘Sheep’ Puzzle Game and Open‑sourced It

The author explains how the viral “Sheep Sheep” puzzle’s random mechanics make it nearly impossible to clear, then details the creation of a clone called “Fish Fish” with customizable difficulty, open‑source code, and the core implementation techniques used.

Puzzle Gamealgorithmfrontend
0 likes · 5 min read
How I Built a Solvable ‘Sheep’ Puzzle Game and Open‑sourced It
Java High-Performance Architecture
Java High-Performance Architecture
Sep 13, 2022 · Information Security

How to Perform Fuzzy Searches on Encrypted Data: Strategies and Trade‑offs

This article examines why encrypted data hinders fuzzy queries, categorizes three implementation approaches—from naive in‑memory decryption to conventional database tricks and advanced algorithmic solutions—evaluates their security, performance, and storage impacts, and provides practical references for real‑world systems.

Performancealgorithmdata security
0 likes · 11 min read
How to Perform Fuzzy Searches on Encrypted Data: Strategies and Trade‑offs
Tencent Cloud Developer
Tencent Cloud Developer
Sep 6, 2022 · Backend Development

Understanding Rate Limiting in Distributed Systems: Algorithms and Best Practices

Rate limiting safeguards distributed systems by controlling request rates through algorithms such as leaky bucket, token bucket, fixed and sliding windows, and back pressure, while client‑side tactics like exponential backoff, jitter, and careful retries, and requires atomic distributed storage solutions (e.g., Redis+Lua) to avoid race conditions.

System Designalgorithmback pressure
0 likes · 16 min read
Understanding Rate Limiting in Distributed Systems: Algorithms and Best Practices
DaTaobao Tech
DaTaobao Tech
Sep 5, 2022 · Artificial Intelligence

How Alibaba’s New Guide Boosts Live‑Stream Video Quality for Every Creator

Alibaba’s DaTaobao team unveiled a high‑definition live‑streaming guide that combines video processing algorithms, equipment recommendations, and standardized low‑cost solutions to dramatically improve picture quality for both top‑tier and novice streamers, while also offering free access and ongoing support.

AIAlibabaalgorithm
0 likes · 8 min read
How Alibaba’s New Guide Boosts Live‑Stream Video Quality for Every Creator
Hulu Beijing
Hulu Beijing
Aug 31, 2022 · Fundamentals

Algorithm Trio: Pattern Search, Tree Leaf Count, and Bounded Stock Trading

This article presents three algorithmic challenges: counting pattern occurrences on an M×N canvas, determining the number of leaf nodes in a binary tree represented by an array, and maximizing stock trade profit under constraints on negative returns and total gain, each with input specifications, sample cases, and solution outlines.

Pattern Matchingalgorithmbinary tree
0 likes · 8 min read
Algorithm Trio: Pattern Search, Tree Leaf Count, and Bounded Stock Trading
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Aug 31, 2022 · Fundamentals

Why My Simple Go Map Solution Timed Out and How I Fixed It

After struggling with a seemingly easy scoring problem in a regional programming contest, the author details multiple Go implementations—including a map, a 27‑base array, and a trie—examines their time and memory issues, discovers input handling pitfalls, and ultimately achieves an accepted solution.

Triealgorithmcompetitive programming
0 likes · 14 min read
Why My Simple Go Map Solution Timed Out and How I Fixed It
Model Perspective
Model Perspective
Aug 30, 2022 · Artificial Intelligence

Particle Swarm Optimization in Python: Full Implementation and Results

This article explains the core PSO velocity and position formulas, provides a complete Python implementation with detailed comments, runs the algorithm on a 2‑dimensional test function, and presents the optimal solution and convergence plot.

Artificial IntelligenceParticle Swarm OptimizationPython
0 likes · 5 min read
Particle Swarm Optimization in Python: Full Implementation and Results
Java Backend Technology
Java Backend Technology
Aug 25, 2022 · Information Security

How to Perform Fuzzy Searches on Encrypted Data: Methods, Pros & Cons

This article examines why encrypted data hinders fuzzy queries, categorizes three implementation strategies—from naïve to conventional to advanced—explains their mechanisms, evaluates performance and security trade‑offs, and provides practical references for building searchable encrypted fields.

algorithmdata privacyfuzzy search
0 likes · 12 min read
How to Perform Fuzzy Searches on Encrypted Data: Methods, Pros & Cons
IT Architects Alliance
IT Architects Alliance
Aug 21, 2022 · Backend Development

Consistent Hashing Algorithm: Principles, Java Implementation, and Optimizations for Distributed Cache Load Balancing

This article explains the fundamentals of consistent hashing, its application in load‑balancing distributed caches, analyzes common issues such as data skew and cache avalanche, introduces virtual nodes for uniform distribution, provides Java code examples, and compares it with Redis's HashSlot approach.

algorithmconsistent hashingdistributed cache
0 likes · 20 min read
Consistent Hashing Algorithm: Principles, Java Implementation, and Optimizations for Distributed Cache Load Balancing
Java Architect Essentials
Java Architect Essentials
Aug 20, 2022 · Information Security

Techniques for Performing Fuzzy Search on Encrypted Data

This article examines why encrypted data is unfriendly to fuzzy queries, categorizes three implementation approaches—naïve, conventional, and advanced—and evaluates their security, performance, and storage trade‑offs while providing practical code examples and reference resources.

Performancealgorithmdata privacy
0 likes · 10 min read
Techniques for Performing Fuzzy Search on Encrypted Data
Tencent Cloud Developer
Tencent Cloud Developer
Aug 18, 2022 · Fundamentals

Perfect Hash Functions and Their Use in High‑Performance HashMaps

The article explains perfect hash functions, their collision‑free construction methods such as FCH, CHD, and PTHash, compares them to conventional hash tables, reviews common and cryptographic hash functions, and shows how read‑only perfect‑hash maps deliver faster lookups and lower memory use for static key sets.

Benchmarkalgorithmdata structure
0 likes · 21 min read
Perfect Hash Functions and Their Use in High‑Performance HashMaps
Top Architect
Top Architect
Aug 16, 2022 · Databases

How to Perform Fuzzy Queries on Encrypted Data: Methods, Trade‑offs, and Recommendations

This article examines the difficulty of fuzzy searching encrypted fields and compares three solution families—naïve memory‑loading or tag‑table tricks, conventional token‑based encryption with indexable columns, and advanced algorithmic designs—highlighting their security, performance, and storage implications while recommending the most practical approach.

algorithmdatabaseencryption
0 likes · 10 min read
How to Perform Fuzzy Queries on Encrypted Data: Methods, Trade‑offs, and Recommendations
HelloTech
HelloTech
Aug 5, 2022 · Artificial Intelligence

Intelligent Transaction System Construction for Halu Carpool

In a July 2022 keynote, Halu’s senior algorithm expert Wang Fan outlined the construction of an intelligent transaction system for its car‑pool service, detailing business challenges, a decomposition into matching, pricing, marketing and arbitration, a recommendation‑pipeline architecture, and three‑stage algorithm evolution that boosted order volume by over 20 %.

algorithmcarpoolintelligent matching
0 likes · 12 min read
Intelligent Transaction System Construction for Halu Carpool
Architect's Guide
Architect's Guide
Aug 1, 2022 · Backend Development

Understanding Rate Limiting: Concepts, Algorithms, and Practical Implementations

This article explains why rate limiting is essential for both physical venues and online services, describes common strategies such as circuit breaking, service degradation, delay handling, and privilege handling, compares caching, degradation, and limiting, and details counter, leaky‑bucket, and token‑bucket algorithms with concrete Guava and Nginx‑Lua implementations.

BackendGuavaalgorithm
0 likes · 15 min read
Understanding Rate Limiting: Concepts, Algorithms, and Practical Implementations
Selected Java Interview Questions
Selected Java Interview Questions
Jul 29, 2022 · Backend Development

Seven Directions of Code Performance Optimization for Java Backend

This article outlines seven major areas of Java backend performance optimization—including reuse, computation, result‑set, resource‑conflict, algorithm, efficient implementation, and JVM tuning—explaining concepts, techniques, and practical examples to help developers improve application speed and resource utilization.

BackendOptimizationPerformance
0 likes · 11 min read
Seven Directions of Code Performance Optimization for Java Backend
Sohu Tech Products
Sohu Tech Products
Jul 6, 2022 · Game Development

Implementing Hint Functionality for a 24‑Point Game in Swift

This article explains how to design and code a hint feature for a 24‑point puzzle app on iOS, covering random number generation, validation of solvable sets, recursive expression search, expression‑to‑string conversion, optimization of parentheses, and provides complete Swift source code with detailed algorithmic explanations.

24-point gameSwiftalgorithm
0 likes · 15 min read
Implementing Hint Functionality for a 24‑Point Game in Swift
政采云技术
政采云技术
Jun 28, 2022 · Backend Development

Understanding the Snowflake Algorithm: Principles, Issues, and Solutions

This article explains Twitter's open‑source Snowflake distributed ID generation algorithm, detailing its bit‑field structure, common pitfalls such as clock rollback and JavaScript precision limits, and practical mitigation strategies for high‑concurrency, sharding, and sequence handling.

Backend DevelopmentSnowflakealgorithm
0 likes · 7 min read
Understanding the Snowflake Algorithm: Principles, Issues, and Solutions
Python Crawling & Data Mining
Python Crawling & Data Mining
Jun 25, 2022 · Fundamentals

Unlock Multiplication Without Tables: Russian Peasant Multiplication Explained and Implemented in Python

This article introduces the Russian peasant multiplication algorithm, explains its historical background and step‑by‑step process using halving and doubling tables, connects it to binary expansion, and provides a complete Python implementation that demonstrates its low‑memory, creative approach to multiplication.

Russian peasant multiplicationalgorithmbinary
0 likes · 11 min read
Unlock Multiplication Without Tables: Russian Peasant Multiplication Explained and Implemented in Python
Hulu Beijing
Hulu Beijing
Jun 23, 2022 · Operations

How to Optimize Ad Traffic Allocation with Front‑Load Curves and PID Control

This article explains how to prioritize ad orders, use front‑loading to smooth traffic fluctuations, model delivery constraints with differential equations, and apply PID‑based selection coefficients to achieve efficient, real‑time traffic allocation in streaming advertising systems.

OperationsPID controlad allocation
0 likes · 13 min read
How to Optimize Ad Traffic Allocation with Front‑Load Curves and PID Control
IT Services Circle
IT Services Circle
Jun 10, 2022 · Fundamentals

Page Replacement Algorithms: OPT, FIFO, LRU, CLOCK, and LFU

This article reviews virtual memory concepts and explains five page replacement algorithms—Optimal (OPT), First‑In‑First‑Out (FIFO), Least Recently Used (LRU), CLOCK (including a simple and improved version), and Least Frequently Used (LFU)—detailing their principles, operation, advantages, drawbacks, and illustrative examples.

FIFOLRUOPT
0 likes · 14 min read
Page Replacement Algorithms: OPT, FIFO, LRU, CLOCK, and LFU
Laravel Tech Community
Laravel Tech Community
Jun 8, 2022 · Fundamentals

Comprehensive Programming and IT Knowledge Quiz with Multiple‑Choice and Coding Questions

This timed programmer quiz combines single‑choice, short‑answer, and coding problems that test a broad spectrum of IT topics—from programming history and algorithms to Linux commands, networking layers, Helm chart concepts, and practical Python and C coding tasks—providing a holistic assessment of technical fundamentals.

C++PythonQuiz
0 likes · 9 min read
Comprehensive Programming and IT Knowledge Quiz with Multiple‑Choice and Coding Questions
Laravel Tech Community
Laravel Tech Community
Jun 6, 2022 · Artificial Intelligence

What an Open‑Source Twitter Algorithm Would Look Like: Architecture, Data Model, and Engineering Challenges

This article examines the practical aspects of open‑sourcing Twitter’s recommendation algorithm, covering the platform’s data model, timeline views, ranking features, a TypeScript pseudocode illustration, and the major engineering challenges of scale, real‑time processing, reliability, and security.

Twitteralgorithmlarge-scale
0 likes · 14 min read
What an Open‑Source Twitter Algorithm Would Look Like: Architecture, Data Model, and Engineering Challenges
Model Perspective
Model Perspective
Jun 4, 2022 · Artificial Intelligence

Master K-means Clustering: How the Algorithm Finds Compact Groups

K-means is a classic distance‑based clustering algorithm that iteratively partitions data into k compact, well‑separated groups by minimizing the sum of squared errors, using random centroid initialization and heuristic updates until convergence, making it a fundamental tool in AI and data analysis.

ClusteringK-MeansUnsupervised Learning
0 likes · 3 min read
Master K-means Clustering: How the Algorithm Finds Compact Groups
Code Ape Tech Column
Code Ape Tech Column
Jun 4, 2022 · Fundamentals

Understanding the Paxos Consensus Algorithm: Principles, Roles, and Derivation

This article provides a comprehensive introduction to the Paxos consensus algorithm, explaining its purpose, core concepts, roles of proposers, acceptors and learners, safety and liveness properties, and the step‑by‑step derivation of its two‑phase protocol for achieving fault‑tolerant distributed consistency.

AcceptorDistributed ConsensusPaxos
0 likes · 17 min read
Understanding the Paxos Consensus Algorithm: Principles, Roles, and Derivation
Model Perspective
Model Perspective
May 24, 2022 · Operations

Mastering the Minimum Cost Flow Problem: Concepts and Solution Algorithms

This article explains the minimum cost flow problem—delivering a specified amount of flow from supply nodes to demand nodes at the lowest possible cost—covers its linear programming formulation, highlights key solution methods such as successive shortest path, cycle canceling, primal‑dual, network simplex, and outlines its primary applications in distribution network optimization.

Linear Programmingalgorithmminimum cost flow
0 likes · 3 min read
Mastering the Minimum Cost Flow Problem: Concepts and Solution Algorithms
Model Perspective
Model Perspective
May 24, 2022 · Fundamentals

How to Maximize Flow in Networks: An Oil Pipeline Case Study

Exploring the fundamentals of the maximum flow problem, this article explains network flow concepts, outlines the three core properties of flow models, and demonstrates their application with an oil‑pipeline case study solved using NetworkX, concluding with key insights and a reference.

algorithmcapacitymaximum flow
0 likes · 4 min read
How to Maximize Flow in Networks: An Oil Pipeline Case Study
Architect
Architect
May 24, 2022 · Big Data

Processing 10 GB Age Data on a 4 GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Approaches

The article presents a complete Java solution for generating, reading, and analyzing a 10 GB file of age values (18‑70) on a 4 GB RAM, 2‑core PC, comparing single‑threaded counting with a producer‑consumer multithreaded design that dramatically improves CPU utilization and reduces total processing time.

Performance Optimizationalgorithmjava
0 likes · 20 min read
Processing 10 GB Age Data on a 4 GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Approaches

Dynamic Page Floor Sorting for Intelligent Marketing in NetEase Yanxuan

NetEase Yanxuan’s Olympus platform introduces dynamic page‑floor sorting that automatically reorders product modules in real time using a multi‑armed‑bandit algorithm, delivering faster, more accurate and stable personalized marketing, improving exposure efficiency, ROI and handling peak traffic with sub‑40 ms rendering.

Marketing AutomationReal-time Dataalgorithm
0 likes · 10 min read
Dynamic Page Floor Sorting for Intelligent Marketing in NetEase Yanxuan
Sohu Tech Products
Sohu Tech Products
May 18, 2022 · Fundamentals

Overview of a Web Page Content Extraction Algorithm and Its Practical Demo

This article introduces a web page content extraction algorithm that automatically structures titles, timestamps, body text, authors, and sources from arbitrary news pages, explains how to use an online demo, compares it with existing solutions, and discusses its broader applications and limitations.

Content ExtractionGNEWeb Scraping
0 likes · 8 min read
Overview of a Web Page Content Extraction Algorithm and Its Practical Demo
NetEase Yanxuan Technology Product Team
NetEase Yanxuan Technology Product Team
Apr 18, 2022 · Artificial Intelligence

Supply‑Demand Coordination in E‑commerce: Challenges and Algorithmic Solutions

Effective e‑commerce supply‑demand coordination requires accurate SKU‑level forecasting, optimized replenishment under MOQ and lead‑time constraints, and dynamic post‑sale traffic control, using a blend of time‑series, tree‑based and deep learning models together with expert knowledge to minimize inventory costs and avoid stock‑outs.

AIOptimizationSupply Chain
0 likes · 10 min read
Supply‑Demand Coordination in E‑commerce: Challenges and Algorithmic Solutions
IT Services Circle
IT Services Circle
Apr 12, 2022 · Big Data

Finding Missing Unsigned Integers in a 4‑Billion‑Element File Using Interval Counting and Bitmap Technique

The article explains how to locate all missing 32‑bit unsigned integers in a 4 billion‑entry file by first partitioning the range into intervals, counting entries per interval with a tiny int[64] array, and then applying a bitmap method only to under‑filled intervals, achieving a memory footprint of just a few hundred bytes.

BitmapMemory Optimizationalgorithm
0 likes · 5 min read
Finding Missing Unsigned Integers in a 4‑Billion‑Element File Using Interval Counting and Bitmap Technique
IT Services Circle
IT Services Circle
Apr 11, 2022 · Fundamentals

Maximum Satisfaction (LeetCode 1402) – Greedy Algorithm Solution

This article explains the LeetCode 1402 problem of maximizing the total satisfaction score by arranging dishes, describes the greedy approach of sorting and using suffix sums, and provides a Java implementation that iteratively adds positive suffix sums to compute the optimal result.

LeetCodealgorithmgreedy
0 likes · 4 min read
Maximum Satisfaction (LeetCode 1402) – Greedy Algorithm Solution
DataFunSummit
DataFunSummit
Apr 10, 2022 · Artificial Intelligence

Algorithmic Optimization of Information‑Flow Advertising for Hallo Mobility

This presentation details how Hallo Mobility tackles the challenges of information‑flow ad modeling by describing the ad ecosystem, the company’s business evolution, and the advertiser‑side algorithmic solutions—including plan‑level quality detection, creative‑level uplift modeling, feature‑cross engineering, and pre‑bid user screening—while outlining future directions for automated, data‑driven ad delivery.

AIInformation FlowUplift Modeling
0 likes · 18 min read
Algorithmic Optimization of Information‑Flow Advertising for Hallo Mobility
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2022 · Fundamentals

Algorithmic Solutions for Seven Programming Problems (Number Cards, Grid Lines, Cube Packing, Shortest Path, Hamiltonian Cycle, Time Display, Pascal's Triangle)

This article presents detailed problem statements, mathematical analysis, and Python implementations for seven algorithmic challenges covering combinatorial counting, geometry, number theory, graph shortest paths, Hamiltonian cycles, time conversion, and Pascal's triangle indexing.

algorithmcombinatoricscompetitive programming
0 likes · 14 min read
Algorithmic Solutions for Seven Programming Problems (Number Cards, Grid Lines, Cube Packing, Shortest Path, Hamiltonian Cycle, Time Display, Pascal's Triangle)
IT Services Circle
IT Services Circle
Apr 9, 2022 · Fundamentals

Finding the Majority QQ Number: Moore Voting Algorithm Explained

This article explains a Tencent interview question requiring identification of a QQ number appearing more than half the time among 2N entries, discusses naive sorting and hashmap approaches, and presents the optimal O(N) time, O(1) space Moore voting algorithm with a complete C++ implementation and sample output.

C++Moore votingalgorithm
0 likes · 6 min read
Finding the Majority QQ Number: Moore Voting Algorithm Explained
Alibaba Terminal Technology
Alibaba Terminal Technology
Apr 7, 2022 · Frontend Development

Building a Powerful Tile Layout System with React‑Grid‑Layout and Low‑Code Engine

This article explains how a low‑code platform redesigned its report page using a tile layout powered by React‑Grid‑Layout, detailing vertical and horizontal squeeze modes, nesting, height‑auto adaptation, mixed tile‑flow layouts, and algorithm optimizations for smoother drag‑and‑drop interactions.

Drag-and-DropLayoutalgorithm
0 likes · 12 min read
Building a Powerful Tile Layout System with React‑Grid‑Layout and Low‑Code Engine
High Availability Architecture
High Availability Architecture
Mar 29, 2022 · Fundamentals

Abstract Paxos: Unifying Paxos and Raft through Formal Derivation of Distributed Consensus

This article presents abstract‑paxos, a unified framework that derives Paxos and Raft from first principles, defines information certainty, quorum, and a total order on states using commit_index, and details a two‑phase protocol, member‑change handling, and how the model maps to classic Paxos and Raft implementations.

ConsensusPaxosRaft
0 likes · 25 min read
Abstract Paxos: Unifying Paxos and Raft through Formal Derivation of Distributed Consensus
IT Services Circle
IT Services Circle
Mar 21, 2022 · Fundamentals

Finding the Smallest Missing Positive Integer: Interview Problem Explanation and Go Solutions

This article explains a classic interview question of locating the smallest missing positive integer from an array, analyzes its theoretical bounds, and presents three O(n) time, O(1) space solutions—including a clever marking technique and a swap‑based method—accompanied by complete Go implementations.

algorithminterviewmissing-number
0 likes · 7 min read
Finding the Smallest Missing Positive Integer: Interview Problem Explanation and Go Solutions
NiuNiu MaTe
NiuNiu MaTe
Mar 15, 2022 · Fundamentals

Master the Container With Most Water: Two‑Pointer Solution Explained

This article presents a detailed walkthrough of the LeetCode "Container With Most Water" problem, covering the problem statement, a two‑pointer analysis, and a complete Java implementation, while highlighting key insights for efficiently maximizing water storage.

LeetCodeTwo-pointeralgorithm
0 likes · 4 min read
Master the Container With Most Water: Two‑Pointer Solution Explained
Tencent Cloud Developer
Tencent Cloud Developer
Mar 14, 2022 · Backend Development

Consistent Hashing Algorithm: Theory, Go Implementation, and Load-Balanced Extension

The article explains consistent hashing—using a circular 2^32 hash ring with virtual nodes to evenly distribute keys across dynamic cache servers—provides a complete Go implementation including host registration, key lookup, and a bounded‑load extension that tracks server load, demonstrates a proxy‑cache setup, and discusses practical testing and production‑grade enhancements.

Cachingalgorithmconsistent hashing
0 likes · 27 min read
Consistent Hashing Algorithm: Theory, Go Implementation, and Load-Balanced Extension
21CTO
21CTO
Mar 6, 2022 · Game Development

How to Build a Missile Auto‑Tracking System in Python with Pygame

This article explains how to implement an automatic missile‑tracking system for a shooting game using Python’s Pygame library, covering the underlying differential‑equation‑based algorithm, step‑by‑step trigonometric calculations, handling of coordinate systems, image rotation challenges, and provides complete source code.

Missile TrackingPygamealgorithm
0 likes · 11 min read
How to Build a Missile Auto‑Tracking System in Python with Pygame
Top Architect
Top Architect
Mar 5, 2022 · Fundamentals

Understanding Skip Lists and Their Implementation in Redis

This article explains the concept of skip lists as an ordered random data structure, illustrates how Redis uses skip lists for sorted sets, and provides a complete Java implementation with detailed code examples and analysis of their performance characteristics.

RedisSkip Listalgorithm
0 likes · 13 min read
Understanding Skip Lists and Their Implementation in Redis
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 3, 2022 · Fundamentals

5 Clever Python Ways to Compute 1‑2+3‑4+…+99

This article presents a Python fan's arithmetic challenge—calculating the alternating sum 1‑2+3‑4+…+99—and walks through five distinct code solutions, from basic loops to concise itertools one‑liners, highlighting their logic and trade‑offs.

Code ExampleLoopsPython
0 likes · 5 min read
5 Clever Python Ways to Compute 1‑2+3‑4+…+99
ByteDance Data Platform
ByteDance Data Platform
Feb 18, 2022 · Frontend Development

How ByteDance’s Front‑End Team Built High‑Performance Shape Word Clouds

ByteDance’s data platform front‑end team surveyed academic, commercial, and open‑source word‑cloud solutions, identified gaps in geo‑ and shape‑based clouds, and engineered a performant front‑end layout algorithm that generates customizable shape word clouds for diverse business scenarios.

Data Visualizationalgorithmshape cloud
0 likes · 11 min read
How ByteDance’s Front‑End Team Built High‑Performance Shape Word Clouds
Baobao Algorithm Notes
Baobao Algorithm Notes
Feb 15, 2022 · Industry Insights

Why Your Algorithm Gains May Still Drag Down Overall Business: 6 Hidden Pitfalls

Even when individual algorithm modules show higher accuracy or revenue, the overall platform can decline due to factors like competitor encroachment, macro‑economic shifts, concept drift, overlapping marginal returns, attribution errors, and coupled A/B experiments, all of which require careful analysis and mitigation.

AB Testingalgorithmconcept drift
0 likes · 7 min read
Why Your Algorithm Gains May Still Drag Down Overall Business: 6 Hidden Pitfalls
NiuNiu MaTe
NiuNiu MaTe
Feb 15, 2022 · Fundamentals

Why Do Only Perfect Squares Stay Lit? Solving the Bulb Switch Puzzle

The article explains the classic bulb‑switch problem, showing how toggling bulbs in successive rounds leads to only those positioned at perfect‑square indices remaining on, derives the mathematical reasoning behind the pattern, and presents a concise O(1) solution using the integer square‑root of n.

LeetCodeMathalgorithm
0 likes · 7 min read
Why Do Only Perfect Squares Stay Lit? Solving the Bulb Switch Puzzle
Top Architect
Top Architect
Jan 26, 2022 · Backend Development

Understanding Service Rate Limiting: Algorithms and Distributed Implementation

This article explains why service rate limiting is essential for high‑concurrency systems, compares it with service degradation, introduces common limiting algorithms such as counter, leaky‑bucket and token‑bucket, and shows how to implement distributed rate limiting using Redis for real‑world backend services.

algorithmdistributed systemsrate limiting
0 likes · 9 min read
Understanding Service Rate Limiting: Algorithms and Distributed Implementation
MaGe Linux Operations
MaGe Linux Operations
Jan 24, 2022 · Fundamentals

Discover Lucky Numbers in a List with a One‑Line Python Trick

This article explains the concept of “lucky numbers” in an integer list—where a number’s value equals its occurrence count—and walks through a Python solution that progressively uses set, count, map, zip, filter, lambda and sorted, culminating in a concise one‑liner implementation.

Listalgorithmfilter
0 likes · 8 min read
Discover Lucky Numbers in a List with a One‑Line Python Trick
Shopee Tech Team
Shopee Tech Team
Dec 30, 2021 · Game Development

Inside Shopee Candy: Building a Scalable Match‑3 H5 Game Architecture

This article walks through the origin, architecture, and tooling of Shopee Candy, a multi‑region match‑3 H5 game, detailing the Algorithm SDK, animation system, map editor, score runner, replayer, and future plans for configurability, performance, anti‑cheat, and AI‑driven level design.

AnimationH5algorithm
0 likes · 16 min read
Inside Shopee Candy: Building a Scalable Match‑3 H5 Game Architecture
DeWu Technology
DeWu Technology
Dec 23, 2021 · Frontend Development

Pure JavaScript Smooth Curve Generation Using Bézier Curves

This guide shows how to generate smooth, high‑quality curves from a polyline in pure JavaScript by computing quadratic and cubic Bézier points, deriving control points via angle‑bisector geometry, assembling the segments, and rendering and animating the result on an HTML5 canvas without external libraries.

Bézier CurveCanvasFront-end
0 likes · 10 min read
Pure JavaScript Smooth Curve Generation Using Bézier Curves
Python Programming Learning Circle
Python Programming Learning Circle
Dec 21, 2021 · Fundamentals

Finding Lucky Numbers in a List Using Python: Step‑by‑Step with map, zip, filter and a One‑Liner

This tutorial explains how to solve the LeetCode "Lucky Numbers in a List" problem in Python by extracting unique elements, counting their occurrences with map and count, pairing them with zip, filtering with lambda, sorting the result, and finally compressing the whole logic into a single expressive line of code.

ListPythonalgorithm
0 likes · 8 min read
Finding Lucky Numbers in a List Using Python: Step‑by‑Step with map, zip, filter and a One‑Liner
Liangxu Linux
Liangxu Linux
Dec 15, 2021 · Fundamentals

Cracking the 4‑Billion QQ Deduplication Challenge with 1 GB Memory

This article walks through four approaches—sorting, hashmap, file splitting, and a bitmap technique—to deduplicate 4 billion QQ numbers within a 1 GB memory limit, explains why the first three fail, and shows how a bitmap solves the problem efficiently.

BitmapMemory Optimizationalgorithm
0 likes · 8 min read
Cracking the 4‑Billion QQ Deduplication Challenge with 1 GB Memory
ELab Team
ELab Team
Dec 15, 2021 · Fundamentals

Unveiling the Magic of Fast Inverse Square Root: How 0x5f3759df Powers Game Physics

This article demystifies the fast inverse square root algorithm used in games, explaining the origin of the infamous 0x5f3759df magic number, the underlying IEEE‑754 floating‑point representation, the evil bit‑hack, Newton iteration steps, and how these tricks accelerate vector normalization.

Fast Inverse Square Rootalgorithmbit hack
0 likes · 17 min read
Unveiling the Magic of Fast Inverse Square Root: How 0x5f3759df Powers Game Physics
HelloTech
HelloTech
Dec 13, 2021 · Big Data

Smart Matching Engine for Ride-Sharing: Technical Implementation and Algorithms

The Smart Matching Engine for Haolo’s ride‑sharing service ingests driver and passenger orders via Kafka‑Flink pipelines into Elasticsearch, then applies multi‑stage matching—nearby search, itinerary‑based filtering using ETA, angle, distance, route‑similarity and shared‑mileage calculations—and finally ranks results with evolving pre‑sorting and algorithmic models, including PMML and deep‑learning, to optimize driver‑passenger pairing.

ElasticsearchFlinkKafka
0 likes · 9 min read
Smart Matching Engine for Ride-Sharing: Technical Implementation and Algorithms
DataFunTalk
DataFunTalk
Dec 13, 2021 · Artificial Intelligence

Dual Vector Foil (DVF): Decoupled Index and Model for Large‑Scale Retrieval

The article introduces the Dual Vector Foil (DVF) algorithm system, which decouples index construction from model training to enable lightweight, high‑precision large‑scale recall using arbitrary complex models, and details its two‑stage and one‑stage solutions, graph‑based retrieval implementation, performance optimizations, and experimental results.

algorithmdeep learninggraph indexing
0 likes · 28 min read
Dual Vector Foil (DVF): Decoupled Index and Model for Large‑Scale Retrieval
Python Crawling & Data Mining
Python Crawling & Data Mining
Dec 13, 2021 · Big Data

How to De‑duplicate 4 Billion QQ Numbers with Only 1 GB RAM

This article explains several algorithmic strategies—including sorting, hash maps, file splitting, and bitmap techniques—to remove duplicates from a file containing 4 billion QQ numbers while staying within a 1 GB memory limit, and it provides extension exercises for sorting, median, top‑K, and duplicate detection.

BitmapMemory Optimizationalgorithm
0 likes · 8 min read
How to De‑duplicate 4 Billion QQ Numbers with Only 1 GB RAM
Java Backend Technology
Java Backend Technology
Dec 9, 2021 · Big Data

How to Efficiently Find Common URLs in Billions of Records

This article explains how to handle the massive‑data problem of intersecting two files containing billions of URLs by using hash‑based divide‑and‑conquer techniques, file partitioning, and in‑memory hash lookups to achieve scalable performance beyond naive O(m·n) approaches.

Divide and ConquerURL intersectionalgorithm
0 likes · 8 min read
How to Efficiently Find Common URLs in Billions of Records
Open Source Linux
Open Source Linux
Dec 2, 2021 · Backend Development

Mastering Rate Limiting: Strategies, Algorithms, and Real-World Implementations

This article explains why rate limiting is essential for system stability, outlines common throttling patterns such as circuit breaking, degradation, delayed processing, and privilege handling, and dives into popular algorithms like counter, leaky bucket, and token bucket with concrete Java and Nginx examples.

algorithmconcurrencydistributed systems
0 likes · 13 min read
Mastering Rate Limiting: Strategies, Algorithms, and Real-World Implementations
NiuNiu MaTe
NiuNiu MaTe
Dec 2, 2021 · Fundamentals

Master the Classic 2‑Egg 100‑Floor Problem: Optimal Strategies Explained

This article explains the classic two‑egg, 100‑floor interview puzzle, analyzes why it became a staple, and walks through four solution approaches—from a naïve linear method to binary search and a balanced partition strategy—culminating in a mathematically derived optimal method that never exceeds fourteen drops.

Optimizationalgorithmbinary search
0 likes · 8 min read
Master the Classic 2‑Egg 100‑Floor Problem: Optimal Strategies Explained
Alibaba Terminal Technology
Alibaba Terminal Technology
Nov 29, 2021 · Mobile Development

How Youku Optimized Free‑Viewpoint Video Playback for a Seamless Mobile Experience

This article details Youku’s first “Free Viewpoint” technology optimization, explaining its underlying principles, client architecture, performance‑boosting strategies such as smart bitrate, multi‑channel downloading, pre‑caching, and the resulting improvements in playback smoothness and device coverage.

Mobile Streamingalgorithmfree-viewpoint
0 likes · 9 min read
How Youku Optimized Free‑Viewpoint Video Playback for a Seamless Mobile Experience
NiuNiu MaTe
NiuNiu MaTe
Nov 26, 2021 · Big Data

How to Deduplicate 4 Billion QQ Numbers Using Only 1 GB of Memory

This article walks through four practical techniques—sorting, hashmap, file splitting, and bitmap—to remove duplicate QQ numbers from a 4‑billion‑record file within a 1 GB memory limit, and provides extended exercises for sorting, median, top‑K, and duplicate detection.

Bitmapalgorithmbig data
0 likes · 8 min read
How to Deduplicate 4 Billion QQ Numbers Using Only 1 GB of Memory
JavaEdge
JavaEdge
Nov 19, 2021 · Fundamentals

Master Sliding Window Maximum with Heap and Deque – Step-by-Step Solution

This article explains how to compute the maximum of each k‑sized sliding window over an integer array using both a priority‑queue (heap) approach and an optimized monotonic deque technique, complete with detailed walkthroughs, visual illustrations, and full Python code.

Heapalgorithmdeque
0 likes · 9 min read
Master Sliding Window Maximum with Heap and Deque – Step-by-Step Solution
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 13, 2021 · Fundamentals

Sliding Window Technique: Concepts, Framework, and LeetCode Examples

This article introduces the sliding window algorithmic technique, explains its relation to TCP flow control, demonstrates its implementation with Java code for maximum subarray sum, longest substring without repeats, and minimum window substring problems, and provides a reusable framework for solving similar LeetCode challenges.

LeetCodealgorithmsliding window
0 likes · 10 min read
Sliding Window Technique: Concepts, Framework, and LeetCode Examples
DeWu Technology
DeWu Technology
Nov 12, 2021 · Mobile Development

Detecting and Fixing iOS Memory Leaks with Object‑Graph Scanning

This article explains why iOS memory leaks become critical as apps grow, introduces five representative leak models, details a production‑ready object‑graph scanning solution with custom data structures and a non‑recursive DFS algorithm, and evaluates its performance impact and mitigation strategies.

DetectionMemory LeakPerformance
0 likes · 13 min read
Detecting and Fixing iOS Memory Leaks with Object‑Graph Scanning
DataFunSummit
DataFunSummit
Nov 7, 2021 · Artificial Intelligence

How Information‑Flow Recommendation Systems Upgrade Drives User Growth

The article examines how low‑level recommendation‑algorithm improvements in information‑flow feeds can boost user retention, LTV and overall growth by addressing cold‑start challenges, survivor bias, and causal inference through personalized ranking, ecosystem construction, and multi‑task learning.

Causal InferenceInformation Flowalgorithm
0 likes · 14 min read
How Information‑Flow Recommendation Systems Upgrade Drives User Growth
HomeTech
HomeTech
Nov 3, 2021 · Big Data

Real‑time Materialized View Practices with Apache Flink: System Analysis, Algorithm Design, and Implementation

This article presents Car Home's experience building a real‑time materialized view system on Apache Flink, detailing system analysis, problem decomposition, a global‑version‑based CDC algorithm, its implementation as a Flink connector, practical deployment results, and remaining challenges such as clock dependency and state size.

CDCFlinkMaterialized View
0 likes · 17 min read
Real‑time Materialized View Practices with Apache Flink: System Analysis, Algorithm Design, and Implementation
Top Architect
Top Architect
Nov 1, 2021 · Backend Development

Design and Implementation of a Points-Based Lottery System Using Spring Boot

This article explains how to design and implement a points‑based lottery (luck draw) system in Java with Spring Boot, covering database schema for prizes, probability limits, prize pools, the random draw algorithm, prize restrictions, and asynchronous prize distribution using a factory pattern.

AsyncLotteryalgorithm
0 likes · 10 min read
Design and Implementation of a Points-Based Lottery System Using Spring Boot
NiuNiu MaTe
NiuNiu MaTe
Oct 27, 2021 · Fundamentals

Master the House Robber Problem with Dynamic Programming

This article explains the classic House Robber interview question, detailing the problem constraints, illustrating why a naive alternating‑house approach fails, and presenting a clear dynamic‑programming solution with recurrence, base cases, and a concise code example.

DPalgorithmdynamic programming
0 likes · 5 min read
Master the House Robber Problem with Dynamic Programming
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Oct 22, 2021 · Fundamentals

Understanding DAG Basics and the Dagre Layout Algorithm with Perfect-Process

This article introduces the fundamentals of directed acyclic graphs (DAGs), explains adjacency representations, details the Dagre layout algorithm’s concepts, computation steps, and constraints, and presents the Perfect‑Process front‑end library that implements these techniques for interactive pipeline diagram rendering and editing.

DAGalgorithmfrontend
0 likes · 13 min read
Understanding DAG Basics and the Dagre Layout Algorithm with Perfect-Process
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 20, 2021 · Backend Development

Why Rate Limiting Matters: Strategies, Algorithms, and Real-World Implementations

Rate limiting protects services from overload by controlling traffic, using techniques such as circuit breaking, degradation, buffering, privilege handling, and algorithms like counters, leaky bucket, and token bucket, with implementations ranging from Guava in Java to Nginx+Lua for distributed systems.

algorithmrate limitingtraffic control
0 likes · 14 min read
Why Rate Limiting Matters: Strategies, Algorithms, and Real-World Implementations
21CTO
21CTO
Oct 17, 2021 · Fundamentals

Mastering Interview Math: Implement a Custom Square Root Function Without Libraries

This article explores how to solve a common interview coding challenge—implementing a square‑root function without using library calls—by discussing problem analysis, linear and binary‑search approaches, optimization techniques, testing strategies, and the broader skills interviewers aim to assess.

algorithmbinary searchcoding-challenge
0 likes · 15 min read
Mastering Interview Math: Implement a Custom Square Root Function Without Libraries
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 12, 2021 · Backend Development

Backend Interview Questions and Answers: HTTP, HTTPS, TCP, Virtual Memory, Eureka, Hystrix, Zookeeper, and Longest Substring Algorithm

This article compiles a series of backend interview questions covering HTTP header fields, HTTPS handshake, TCP connection states, virtual and physical memory concepts, TCP connection limits, Eureka architecture and consistency, Hystrix fault‑tolerance mechanisms, Zookeeper's Zab protocol and leader election, and provides a Java solution for finding the longest substring without repeating characters.

EurekaHTTPSTCP
0 likes · 19 min read
Backend Interview Questions and Answers: HTTP, HTTPS, TCP, Virtual Memory, Eureka, Hystrix, Zookeeper, and Longest Substring Algorithm