Tagged articles

Algorithm

648 articles · Page 7 of 7
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jan 7, 2018 · Operations

Mastering Load Balancing: Algorithms, Code Samples, and Real‑World Insights

This article explains the concept of load balancing in distributed systems, outlines its benefits for throughput and reliability, compares common architectural layers, evaluates key algorithmic considerations, and provides Python implementations of round‑robin, weighted, random, hash‑based, and least‑connection strategies along with deployment options.

AlgorithmLoad BalancingNetworking
0 likes · 14 min read
Mastering Load Balancing: Algorithms, Code Samples, and Real‑World Insights
Meituan Technology Team
Meituan Technology Team
Dec 1, 2017 · Big Data

Metric Logic Tree: Automated Anomaly Analysis for Business Metrics

The Metric Logic Tree automates business metric anomaly analysis by integrating heterogeneous data sources (Kylin, MySQL, Elasticsearch, Druid) with a three‑layer architecture—metric calculation, algorithmic analysis (waterfall and Gini‑coefficient methods), and a master‑worker computation service—that parallelizes queries, delivers immediate conclusions, and shortens decision cycles, as demonstrated in Meituan‑Dianping’s hotel‑travel operations.

AlgorithmBig DataData Pipeline
0 likes · 7 min read
Metric Logic Tree: Automated Anomaly Analysis for Business Metrics
Baixing.com Technical Team
Baixing.com Technical Team
Nov 30, 2017 · Artificial Intelligence

How User Profiling Powers Modern Recommendation Systems

This article explains what user profiling is, why it’s crucial for recommendation systems, outlines key dimensions such as personal attributes, status, and interests, describes algorithms like classification and autoregressive models, and details offline and real‑time computation methods, evaluation techniques, and practical examples.

AlgorithmRecommendation Systemsdata mining
0 likes · 11 min read
How User Profiling Powers Modern Recommendation Systems
Tencent Database Technology
Tencent Database Technology
Nov 23, 2017 · Fundamentals

Augmenting Red‑Black Trees with a Count Field for Order‑Statistic (Rank) Queries

This article explains how to extend a red‑black tree with a subtree‑size counter to support O(log n) rank and selection operations, detailing the required count updates during insertion, deletion, and tree rotations, and provides complete pseudocode for left/right rotations, rank queries, and element‑by‑rank retrieval.

Algorithmaugmented data structureorder statistics
0 likes · 6 min read
Augmenting Red‑Black Trees with a Count Field for Order‑Statistic (Rank) Queries
21CTO
21CTO
Nov 19, 2017 · Fundamentals

Demystifying PageRank: How Google Ranks Web Pages and Fights Spam

This article explains the core challenges of search engines, the origins and mechanics of the PageRank algorithm, its handling of dead ends and spider traps, extensions like Topic‑Sensitive PageRank, and the various link‑spam attacks and countermeasures such as Spam Farms and TrustRank.

AlgorithmPageRanklink spam
0 likes · 23 min read
Demystifying PageRank: How Google Ranks Web Pages and Fights Spam
Aotu Lab
Aotu Lab
Oct 13, 2017 · Game Development

How to Build a Classic Snake Game with MVC and Efficient Data Structures

This article explains how to implement the classic Snake game using the MVC pattern, detailing the model's grid representation, chain‑list versus array for the snake body, random food placement algorithms, view rendering optimizations with PIXI, and control APIs for game interaction.

AlgorithmGame DevelopmentJavaScript
0 likes · 12 min read
How to Build a Classic Snake Game with MVC and Efficient Data Structures
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 6, 2017 · Frontend Development

Mastering DOM Traversal and Sorting: Recursive & Non‑Recursive JavaScript Algorithms

This article explores how to implement recursive and non‑recursive DOM tree searches, hash‑based lookups, and several classic sorting algorithms—including quick sort and merge sort—in JavaScript, discussing their time and space complexities, stability considerations, and practical performance tips for front‑end development.

AlgorithmDOMFrontend
0 likes · 20 min read
Mastering DOM Traversal and Sorting: Recursive & Non‑Recursive JavaScript Algorithms
Architects' Tech Alliance
Architects' Tech Alliance
Jul 14, 2017 · Industry Insights

How a New ‘Non‑Balance’ Wear‑Leveling Algorithm Can Triple SSD Lifespan

The article explains the background of flash‑memory wear‑leveling, reviews common garbage‑collection strategies, compares classic algorithms such as Greedy, Cost‑Benefit, CAT and CICL, and introduces the Non‑Balance method that evaluates real block endurance to extend SSD life up to three times.

AlgorithmGarbage CollectionIndustry Insights
0 likes · 11 min read
How a New ‘Non‑Balance’ Wear‑Leveling Algorithm Can Triple SSD Lifespan
21CTO
21CTO
Jun 20, 2017 · Backend Development

Mastering API Rate Limiting with Token Bucket and Redis

This article explains how to protect API servers from abuse by implementing rate limiting using the Token Bucket algorithm, discusses its drawbacks, and provides practical Java and Redis-based solutions with code examples and performance considerations.

AlgorithmRedisbackend
0 likes · 14 min read
Mastering API Rate Limiting with Token Bucket and Redis
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 15, 2017 · Frontend Development

Top 10 Front-End Interview Algorithm Questions and Solutions

This article compiles ten common algorithmic challenges frequently asked in front‑end interviews, explains why mastering data structures matters for developers, and provides concise solutions and key insights for each problem, from palindrome checks to binary search tree implementation in JavaScript.

AlgorithmFrontendJavaScript
0 likes · 8 min read
Top 10 Front-End Interview Algorithm Questions and Solutions
MaGe Linux Operations
MaGe Linux Operations
May 31, 2017 · Artificial Intelligence

Can Python’s Minimax Reveal the Winning Strategy in Doudizhu?

This article explains how to use a Python implementation of the minimax algorithm to analyze a Doudizhu end‑game scenario, detailing the core logic, recursive hand simulation, caching optimizations, and the final result that the farmer side has no guaranteed winning strategy.

AlgorithmDoudizhuMiniMax
0 likes · 6 min read
Can Python’s Minimax Reveal the Winning Strategy in Doudizhu?
MaGe Linux Operations
MaGe Linux Operations
May 4, 2017 · Big Data

How to Process 100GB Logs and Massive Datasets with Hash Partitioning and Bloom Filters

This article explains the definition and 4V characteristics of big data and presents practical algorithms—including hash partitioning, min‑heap top‑K selection, bitmap extensions, and Bloom filter techniques—to efficiently handle ultra‑large log files, integer sets, and keyword searches within strict memory limits.

AlgorithmBig DataBitmap
0 likes · 12 min read
How to Process 100GB Logs and Massive Datasets with Hash Partitioning and Bloom Filters
Baidu Waimai Technology Team
Baidu Waimai Technology Team
Apr 26, 2017 · Fundamentals

Baidu Waimai Technical Monthly Issue 7 – Operations Monitoring, Big Data Platform, BFT Algorithm, Zombie Process, Nginx+Lua Overload Protection, OLTP/OLAP, User Repurchase Prediction, Frontend Tracking, and Favicon

The seventh issue of Baidu Waimai's technical monthly presents a collection of practical engineering articles covering operations monitoring, big‑data platform incubation, BFT crawling algorithm, zombie‑process avoidance, Nginx+Lua overload protection, OLTP/OLAP integration, new‑user repurchase prediction, a generic frontend tracking solution, and the use of favicons to personalize websites.

AIAlgorithmFrontend
0 likes · 6 min read
Baidu Waimai Technical Monthly Issue 7 – Operations Monitoring, Big Data Platform, BFT Algorithm, Zombie Process, Nginx+Lua Overload Protection, OLTP/OLAP, User Repurchase Prediction, Frontend Tracking, and Favicon
21CTO
21CTO
Feb 24, 2017 · Backend Development

Unveiling Nginx Load Balancing: Deep Dive into Strategies and Real‑World Tests

This article explores Nginx’s built‑in and extended load‑balancing algorithms—including weighted round‑robin, IP‑hash, fair, generic‑hash and consistent‑hash—by dissecting source code, explaining implementation details, and presenting comprehensive performance tests that compare their balance, consistency, and fault‑tolerance across varied scenarios.

AlgorithmLoad BalancingPerformance Testing
0 likes · 14 min read
Unveiling Nginx Load Balancing: Deep Dive into Strategies and Real‑World Tests
JavaScript
JavaScript
Feb 7, 2017 · Fundamentals

Master JavaScript Stacks: Build, Use, and Apply Stack Operations

This article explains the concept of a stack as a LIFO data structure, shows how to implement a Stack class in JavaScript with essential methods like push, pop, size, empty, peek, and clear, and demonstrates practical usage through recursive and iterative factorial calculations.

AlgorithmData StructureJavaScript
0 likes · 4 min read
Master JavaScript Stacks: Build, Use, and Apply Stack Operations
Hulu Beijing
Hulu Beijing
Dec 22, 2016 · Big Data

How Hulu Uses Big Data and Algorithms to Supercharge Its Ad System

This article explains how Hulu’s advertising platform leverages big‑data pipelines, time‑series forecasting, bipartite‑graph optimization, linear‑model targeting, and real‑time allocation to improve sales, delivery, reporting, and planning of guaranteed‑delivery brand ads.

AdvertisingAlgorithminventory optimization
0 likes · 11 min read
How Hulu Uses Big Data and Algorithms to Supercharge Its Ad System
WeChat Backend Team
WeChat Backend Team
Oct 27, 2016 · Fundamentals

Understanding Basic Paxos Through the Three-Generals Problem Analogy

By adapting the classic Two Generals problem into a Three-Armies scenario, this article demystifies the Basic Paxos algorithm, illustrating its prepare/commit phases, proposal handling, and consensus challenges with detailed step-by-step examples and insights into its practical implications for distributed systems.

AlgorithmPaxosdistributed consensus
0 likes · 14 min read
Understanding Basic Paxos Through the Three-Generals Problem Analogy
WeChat Backend Team
WeChat Backend Team
Oct 26, 2016 · Fundamentals

Why Fixed Membership Is Crucial for Paxos and How to Handle Dynamic Changes

The article explains that Paxos relies on a fixed set of voters (the majority) for consistency, shows why configuration‑driven member changes break the protocol, and introduces a simple dynamic membership algorithm that uses delayed activation windows to achieve atomic member updates without violating Paxos guarantees.

AlgorithmPaxosconsistency
0 likes · 8 min read
Why Fixed Membership Is Crucial for Paxos and How to Handle Dynamic Changes
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 14, 2016 · Fundamentals

Understanding Paxos: How Distributed Systems Reach Consensus

This article provides a vivid explanation of the Paxos algorithm, illustrating how it achieves reliable consensus among unreliable processors through a two‑phase prepare/promise and propose/accept process, using distributed auction analogies, message sequencing, and read/write operations to ensure consistency in distributed systems.

AlgorithmFault ToleranceRead/Write
0 likes · 15 min read
Understanding Paxos: How Distributed Systems Reach Consensus
Aotu Lab
Aotu Lab
Aug 10, 2016 · Artificial Intelligence

Can AI Teach Computers to Design Fonts? A Journey into Automated Typography

The article explores the author's experiments combining artificial intelligence with typography, detailing the development of algorithms that measure font attributes, compute similarity scores, and generate rule‑based design systems, while reflecting on the challenges, inspirations, and future possibilities of AI‑driven font selection and design.

AIAlgorithmdesign systems
0 likes · 21 min read
Can AI Teach Computers to Design Fonts? A Journey into Automated Typography
Architecture Digest
Architecture Digest
Jun 16, 2016 · Operations

Understanding Load Balancing: L4 and L7 Concepts, Types, and Strategies

This article explains load balancing fundamentals, differentiates layer‑4 and layer‑7 balancing, describes hardware and software solutions, local and global deployment, various algorithms and health‑check methods, and discusses performance, scalability, security, and management considerations for modern network operations.

AlgorithmL4L7
0 likes · 23 min read
Understanding Load Balancing: L4 and L7 Concepts, Types, and Strategies
21CTO
21CTO
May 11, 2016 · Fundamentals

Can Game Theory Explain Dating? Exploring the Stable Matching Algorithm

This article uses the classic stable matching (Gale‑Shapley) algorithm to model romantic courtship, illustrating how men‑proposing and women‑proposing versions lead to different stable pairings and highlighting the advantage of the proactive side in achieving preferred matches.

AlgorithmGale-ShapleyGame Theory
0 likes · 7 min read
Can Game Theory Explain Dating? Exploring the Stable Matching Algorithm
Architecture Digest
Architecture Digest
May 11, 2016 · Artificial Intelligence

Interest Feeds: From Facebook NewsFeed and EdgeRank to Pinterest Smart Feed and General Techniques

This article explains why interest‑driven feeds are essential, reviews Facebook's NewsFeed evolution and EdgeRank algorithm, details Pinterest's Smart Feed architecture and Pinnability model, and provides a comprehensive guide to building, ranking, and monitoring generic interest‑feed systems for social platforms.

AlgorithmFacebookPinterest
0 likes · 34 min read
Interest Feeds: From Facebook NewsFeed and EdgeRank to Pinterest Smart Feed and General Techniques
21CTO
21CTO
Apr 6, 2016 · Mobile Development

Ace iOS Interviews: Real Baidu & NetEase Experiences and Proven Tips

This article shares a detailed iOS interview journey—including Baidu, NetEase, and Alibaba rounds—along with algorithm questions, Objective‑C runtime insights, practical coding challenges, and actionable preparation strategies to help developers land their dream mobile development jobs.

AlgorithmInterviewObjective‑C
0 likes · 26 min read
Ace iOS Interviews: Real Baidu & NetEase Experiences and Proven Tips
Architect
Architect
Feb 26, 2016 · Artificial Intelligence

User-Based Collaborative Filtering Recommendation Algorithm Explained

This article introduces the concept and history of recommendation algorithms, outlines the basic conditions for recommendations, and provides a detailed explanation of user-based collaborative filtering, including similarity calculations, neighbor selection, recommendation scoring, practical code snippets, and discussion of potential issues.

AlgorithmCollaborative FilteringSimilarity
0 likes · 12 min read
User-Based Collaborative Filtering Recommendation Algorithm Explained
21CTO
21CTO
Feb 14, 2016 · Big Data

How PageRank Works: From Random Surfer Theory to MapReduce Implementation

This article explains the fundamental principles of Google's PageRank algorithm, modeling web pages as a directed graph and a random surfer, discusses matrix formulation, convergence issues like dangling nodes and traps, and demonstrates a practical MapReduce implementation with Python code for large‑scale rank computation.

AlgorithmBig DataMapReduce
0 likes · 15 min read
How PageRank Works: From Random Surfer Theory to MapReduce Implementation
Architect
Architect
Feb 3, 2016 · Fundamentals

The Mathematics Behind Google’s PageRank Algorithm

This article explains how Google’s PageRank algorithm uses the web’s link structure, Markov processes, and stochastic matrix adjustments—including damping factor α—to overcome ranking challenges and provide a mathematically sound method for ordering search results.

AlgorithmGoogleMarkov chain
0 likes · 21 min read
The Mathematics Behind Google’s PageRank Algorithm
ITPUB
ITPUB
Jan 18, 2016 · Databases

Mastering Tic‑Tac‑Toe with Oracle SQL: Generate All Endgames & Find Forced Wins

This article presents two Oracle SQL challenges from the 3rd ITPUB "Shengtou Media Cup" Tic‑Tac‑Toe contest, detailing how to generate every possible terminal game sequence for insertion into a table and how to compute forced win strategies for any given board using pure SQL techniques.

AlgorithmDatabase ProgrammingGame Theory
0 likes · 14 min read
Mastering Tic‑Tac‑Toe with Oracle SQL: Generate All Endgames & Find Forced Wins
ITPUB
ITPUB
Jan 14, 2016 · Databases

SQL Tic‑Tac‑Toe Challenge: Generate All Endgames and Find Forced Wins

Presented are two Oracle‑SQL challenges from the 3rd ITPUB “Shengtou Media Cup” Tic‑Tac‑Toe contest: (1) generate every possible terminal move sequence and board state, inserting them into a TICTACTOE table without PL/SQL in WITH clauses, and (2) given any valid board, compute the forced winner and the minimal remaining moves using recursive SQL and minimax logic.

AlgorithmGame TheoryOracle
0 likes · 8 min read
SQL Tic‑Tac‑Toe Challenge: Generate All Endgames and Find Forced Wins
Qunar Tech Salon
Qunar Tech Salon
Oct 22, 2015 · Artificial Intelligence

Airbnb’s Dynamic Pricing System and Machine‑Learning Platform (Aerosolve)

The article describes how Airbnb built and continuously improved a machine‑learning‑driven dynamic pricing tool—Aerosolve—that extracts property features, compares similar listings, incorporates seasonal and event‑driven demand, and automatically updates nightly price suggestions to help hosts set optimal rates.

AirbnbAlgorithmPrice Optimization
0 likes · 18 min read
Airbnb’s Dynamic Pricing System and Machine‑Learning Platform (Aerosolve)
Ctrip Technology
Ctrip Technology
Jun 29, 2015 · Artificial Intelligence

Bank Card Scanning and Recognition: Extending Support for Chinese Debit Cards

This article describes a project that enhances an open‑source card‑number scanning solution to recognize 19‑digit Chinese debit cards, addressing challenges such as black‑printed fonts, light‑colored embossed fonts, background filtering, single‑character OCR, and Luhn‑based checksum verification.

AlgorithmBank Card RecognitionOCR
0 likes · 6 min read
Bank Card Scanning and Recognition: Extending Support for Chinese Debit Cards
Suning Technology
Suning Technology
Jun 18, 2015 · Artificial Intelligence

How Suning Uses Naive Bayes for High‑Accuracy Product Classification

This article explains Suning's implementation of a Naive Bayes‑based product classification system, detailing its basic theory, formal definition, step‑by‑step training process, three implementation phases, evaluation results, and error analysis to improve classification accuracy.

AlgorithmNaive BayesSuning
0 likes · 6 min read
How Suning Uses Naive Bayes for High‑Accuracy Product Classification
MaGe Linux Operations
MaGe Linux Operations
Jun 12, 2015 · Fundamentals

Master Whiteboard Coding: Proven Strategies to Ace Technical Interviews

This article explains why whiteboard coding remains an effective interview tool, outlines the five common question types, describes how to design suitable coding problems, and provides detailed guidance for both interviewers and candidates on preparing, executing, and evaluating whiteboard coding sessions, complete with code examples and best‑practice tips.

AlgorithmInterview Tipscoding interview
0 likes · 21 min read
Master Whiteboard Coding: Proven Strategies to Ace Technical Interviews
Qunar Tech Salon
Qunar Tech Salon
Apr 6, 2015 · Fundamentals

Branch and Bound Method vs Backtracking: Basic Description and Comparison

The article explains the branch and bound algorithm, comparing it with backtracking, describing its search strategies, general procedure, and key differences such as search order, node handling, and optimal solution finding, while providing a basic overview and illustrative diagram.

AlgorithmOptimizationbacktracking
0 likes · 6 min read
Branch and Bound Method vs Backtracking: Basic Description and Comparison
Baidu Tech Salon
Baidu Tech Salon
Jan 12, 2015 · Artificial Intelligence

Boolean Algebra and Search Engine Technology

The article outlines how search engines combine the Tao of underlying principles—crawling, binary‑based Boolean indexing, PageRank matrix calculations, and TF‑IDF weighting—with specific Shu implementations to efficiently retrieve, rank, and present relevant web pages using Boolean logic, link analysis, and term relevance metrics.

AlgorithmIndexingPageRank
0 likes · 7 min read
Boolean Algebra and Search Engine Technology