Tagged articles

Algorithm

648 articles · Page 6 of 7
Python Programming Learning Circle
Python Programming Learning Circle
May 9, 2020 · Fundamentals

Fish Division Puzzle and Classic Sorting Algorithms (Merge, Selection, Bubble) with Python Implementations

This article presents a combinatorial fish‑division puzzle solved by exhaustive search with Python code, followed by clear explanations and Python implementations of three fundamental sorting algorithms—merge sort, selection sort, and bubble sort—illustrating their core ideas and step‑by‑step processes.

AlgorithmPythonbubble sort
0 likes · 5 min read
Fish Division Puzzle and Classic Sorting Algorithms (Merge, Selection, Bubble) with Python Implementations
Python Programming Learning Circle
Python Programming Learning Circle
May 6, 2020 · Fundamentals

Python Performance Testing: Comparing Logical Operations, Built‑in Functions, and Class Implementations

This article examines Python execution speed by benchmarking simple arithmetic, logical checks, built‑in functions like max, and three class‑based point‑in‑rectangle implementations, revealing that straightforward if‑statements are often fastest while highlighting practical tips for writing performant Python code.

AlgorithmBenchmarkingPython
0 likes · 12 min read
Python Performance Testing: Comparing Logical Operations, Built‑in Functions, and Class Implementations
Laravel Tech Community
Laravel Tech Community
May 3, 2020 · Backend Development

PHP Implementation of WeChat Red Packet Splitting Algorithm

This article demonstrates a PHP class that implements the WeChat red packet splitting algorithm, explaining the constraints, providing a complete source code example, and showing how to instantiate the class to distribute a total amount into a specified number of packets with a minimum value.

AlgorithmMoney SplittingPHP
0 likes · 6 min read
PHP Implementation of WeChat Red Packet Splitting Algorithm
Java Architecture Diary
Java Architecture Diary
May 2, 2020 · Backend Development

Mastering Snowflake: How Distributed Systems Generate Unique IDs

This article explores various distributed ID generation methods, focusing on Twitter's Snowflake algorithm, detailing its structure, advantages, drawbacks, and comparisons with UUID, database auto-increment, and Redis, while providing implementation insights and references to related open-source solutions.

Algorithmdistributed IDsnowflake
0 likes · 7 min read
Mastering Snowflake: How Distributed Systems Generate Unique IDs
vivo Internet Technology
vivo Internet Technology
Apr 22, 2020 · Fundamentals

Hash Table Collisions and Resolution Strategies

The article explains how limited hash spaces cause collisions, then compares open hashing (separate chaining) and closed hashing techniques—linear probing, double hashing, and random hashing—detailing their insertion, search, and deletion algorithms along with the performance trade‑offs and load‑factor analysis for each method.

AlgorithmHash Tablecollision-resolution
0 likes · 16 min read
Hash Table Collisions and Resolution Strategies
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2020 · Fundamentals

Implementing a Priority Queue in Python Using heapq

This article explains how to implement a priority queue in Python using the built‑in heapq module, demonstrates extracting smallest and largest elements from price lists, and provides a full PriorityQueue class with push, pop, and is_empty methods, illustrated with stock portfolio examples.

AlgorithmHeapqPython
0 likes · 6 min read
Implementing a Priority Queue in Python Using heapq
Sohu Tech Products
Sohu Tech Products
Apr 15, 2020 · Fundamentals

Optimized String Matching: Boyer‑Moore Algorithm with Bad‑Character and Good‑Suffix Rules

This article explains the Boyer‑Moore string‑matching algorithm, detailing how the bad‑character and good‑suffix heuristics dramatically reduce comparisons, and provides a complete Java implementation with step‑by‑step illustrations of each matching round and the underlying shift calculations.

AlgorithmBoyer-Moorebad character rule
0 likes · 6 min read
Optimized String Matching: Boyer‑Moore Algorithm with Bad‑Character and Good‑Suffix Rules
Liangxu Linux
Liangxu Linux
Apr 14, 2020 · Fundamentals

Unlock Algorithm Mastery with the ‘Fucking Algorithm’ GitHub Repository

This article introduces the open‑source “Fucking Algorithm” project, a popular GitHub collection of over 60 LeetCode‑based articles that explain algorithm problems with detailed reasoning, aiming to improve developers' problem‑solving mindset and algorithmic thinking.

AlgorithmLeetCodeOpen Source
0 likes · 3 min read
Unlock Algorithm Mastery with the ‘Fucking Algorithm’ GitHub Repository
Sohu Tech Products
Sohu Tech Products
Apr 8, 2020 · Fundamentals

Brute‑Force and Simple Hash‑Based Substring Search (Rabin‑Karp) Explained with Examples

This article explains the brute‑force (BF) substring search algorithm, demonstrates its step‑by‑step operation with examples, then introduces a simple hash‑based sliding‑window method (a basic Rabin‑Karp approach), provides Java code, and shows how to compute and update hashes efficiently to locate a pattern in a main string.

AlgorithmHashRabin-Karp
0 likes · 7 min read
Brute‑Force and Simple Hash‑Based Substring Search (Rabin‑Karp) Explained with Examples
JD Tech Talk
JD Tech Talk
Apr 8, 2020 · Artificial Intelligence

Designing and Evaluating Recommendation Algorithms for Wealth Management Platforms

This article explores how large wealth‑management platforms can model product recommendation as a mapping between customers and financial products, defines various evaluation goals such as transaction volume, revenue and user satisfaction, and outlines a systematic A/B‑testing workflow for comparing and optimizing recommendation algorithms.

A/B testingAlgorithmmachine learning
0 likes · 10 min read
Designing and Evaluating Recommendation Algorithms for Wealth Management Platforms
Youku Technology
Youku Technology
Apr 3, 2020 · Industry Insights

How Youku Scaled Millions of DAU with DSP‑Driven RTB Advertising Algorithms

This article explains how Youku combined user‑growth objectives with real‑time bidding (RTB) advertising, designing and optimizing DSP algorithms to maximize high‑value daily active users under cost constraints, covering business background, RTB mechanics, ranking models, pricing strategies, engineering pipelines, and future directions.

AdvertisingAlgorithmDSP
0 likes · 13 min read
How Youku Scaled Millions of DAU with DSP‑Driven RTB Advertising Algorithms
Sohu Tech Products
Sohu Tech Products
Apr 1, 2020 · Fundamentals

Bitwise Operations: Techniques and Applications in Algorithmic Problems

This article introduces the basics of bitwise operations, common operators, practical tricks such as checking parity, setting or clearing bits, and demonstrates their use in solving classic algorithmic challenges like the poison bottle puzzle, power‑of‑two detection, counting set bits, and the 8‑Queens problem.

AlgorithmOptimizationbit manipulation
0 likes · 17 min read
Bitwise Operations: Techniques and Applications in Algorithmic Problems
DataFunTalk
DataFunTalk
Mar 31, 2020 · Product Management

Building User Profiles: From Zero to One and Scaling to Hundreds

This article explains the concept of user profiling, outlines an eight‑dimensional tag architecture, describes step‑by‑step methods for constructing a robust profile system from scratch and expanding it, and shows how these profiles support statistical analysis, targeted marketing, and recommendation algorithms.

AlgorithmData Productmarketing
0 likes · 18 min read
Building User Profiles: From Zero to One and Scaling to Hundreds
Sohu Tech Products
Sohu Tech Products
Mar 25, 2020 · Fundamentals

Understanding Brute‑Force, Boyer‑Moore, and KMP String‑Matching Algorithms with Java Code

This article explains the Brute‑Force (BF), Boyer‑Moore (BM), and Knuth‑Morris‑Pratt (KMP) string‑matching algorithms, illustrates their operation with step‑by‑step visual examples, discusses the inefficiencies of BF, the shift rules of BM, and the prefix‑suffix logic of KMP, and provides a complete Java implementation including the construction of the next array.

AlgorithmBoyer-MooreKMP
0 likes · 10 min read
Understanding Brute‑Force, Boyer‑Moore, and KMP String‑Matching Algorithms with Java Code
MaGe Linux Operations
MaGe Linux Operations
Mar 23, 2020 · Fundamentals

How to Reverse a Number into a List Using Recursion in Python

This article explains how to transform a number like 1234 into a reversed list of its digits using both a straightforward string method and two recursive implementations—standard and tail recursion—while noting Python's general preference for iterative solutions.

AlgorithmRecursionlist
0 likes · 2 min read
How to Reverse a Number into a List Using Recursion in Python
Xianyu Technology
Xianyu Technology
Mar 12, 2020 · R&D Management

Kunpeng Advertising System Architecture and Operational Design for Xianyu

Kunpeng, a three‑level advertising framework for Xianyu, unifies activity‑scene‑material abstraction, extensible DataFetcher and modular filter libraries, and a global traffic‑mixing algorithm, enabling business groups to self‑service material delivery, achieve 60‑100% conversion gains, cut UV cost by ~40% and halve time‑to‑market.

AdvertisingAlgorithmR&D Management
0 likes · 11 min read
Kunpeng Advertising System Architecture and Operational Design for Xianyu
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Feb 21, 2020 · Fundamentals

Longest Substring Without Repeating Characters – Sliding Window Analysis and Optimizations

This article explains the sliding‑window technique for solving the classic “Longest Substring Without Repeating Characters” problem, presents step‑by‑step analysis, demonstrates three Java implementations—from a basic set‑based method to hashmap and array optimizations—and discusses their time‑complexity improvements.

AlgorithmSliding Windowjava
0 likes · 8 min read
Longest Substring Without Repeating Characters – Sliding Window Analysis and Optimizations
Python Programming Learning Circle
Python Programming Learning Circle
Feb 20, 2020 · Fundamentals

Binary Search Algorithm Explanation

This article explains the binary search algorithm for locating a target element in a sorted array, describing its midpoint‑starting process, halving of the search range, termination conditions, and includes a simple example with its output.

Algorithmbinary searchfundamentals
0 likes · 3 min read
Binary Search Algorithm Explanation
Youku Technology
Youku Technology
Feb 13, 2020 · Artificial Intelligence

AI-Based Follow-Subtitle (Bullet) System for Video Streaming

The article presents an AI‑driven follow‑subtitle system for video streaming that uses server‑side face detection and tracking to attach speech‑bubble bullets to characters, synchronizing trajectories with playback via a client SDK, while addressing cut‑scene handling, latency, and power constraints.

AIAlgorithmface recognition
0 likes · 8 min read
AI-Based Follow-Subtitle (Bullet) System for Video Streaming
Selected Java Interview Questions
Selected Java Interview Questions
Feb 6, 2020 · Fundamentals

Binary Search Tree (BST) Overview, Implementation, and Traversal in C

This article introduces the concept of trees and binary search trees, defines a C struct for tree nodes, and provides complete implementations for creating nodes, inserting, deleting, searching, finding min/max, computing size and height, as well as recursive and non‑recursive traversals including pre‑order, in‑order, post‑order and level‑order.

AlgorithmC++Data Structures
0 likes · 13 min read
Binary Search Tree (BST) Overview, Implementation, and Traversal in C
JavaEdge
JavaEdge
Jan 2, 2020 · Fundamentals

How to Compute the Maximum Path Sum in a Binary Tree (C Solution)

This article explains the binary‑tree maximum path sum problem, provides example inputs and outputs, analyzes three possible path configurations, and presents both a brute‑force and an optimized depth‑first search implementation in C.

AlgorithmC++DFS
0 likes · 5 min read
How to Compute the Maximum Path Sum in a Binary Tree (C Solution)
Python Programming Learning Circle
Python Programming Learning Circle
Dec 27, 2019 · Fundamentals

Master Quick Sort in Python: From Simple Code to Optimized Implementation

This article explains the divide‑and‑conquer principle behind quick sort, walks through a concise Python version and a more classic C‑style implementation, analyzes their inefficiencies, and offers practical optimization tips such as better pivot selection, space reduction, and hybrid sorting strategies.

AlgorithmDivide and ConquerQuick Sort
0 likes · 9 min read
Master Quick Sort in Python: From Simple Code to Optimized Implementation
360 Tech Engineering
360 Tech Engineering
Dec 16, 2019 · Information Security

Understanding Random Number Generation for Lottery Programs and Cryptographic Security in JavaScript

This article explains the differences between true and pseudo‑random numbers, why JavaScript's Math.random is unsuitable for secure lottery draws, and how to use the Web Crypto API's Crypto.getRandomValues with a provided code example to achieve cryptographically strong randomness.

AlgorithmCrypto.getRandomValuesMath.random
0 likes · 8 min read
Understanding Random Number Generation for Lottery Programs and Cryptographic Security in JavaScript
58 Tech
58 Tech
Nov 29, 2019 · Big Data

Application of Big Data and Algorithms in the Real‑Estate Internet

The talk presented at the Shanghai Computer Society Annual Meeting details how big data and algorithms are leveraged in the real‑estate internet sector to enhance user personalization, improve agent matching, and assess video quality, illustrating practical implementations and performance gains across data collection, modeling, and recommendation pipelines.

AIAlgorithmBig Data
0 likes · 10 min read
Application of Big Data and Algorithms in the Real‑Estate Internet
Youzan Coder
Youzan Coder
Nov 15, 2019 · Fundamentals

Functions as Data Transformations: Recursion, Tail Calls, and Efficient Exponentiation & Fibonacci Implementations

The article treats functions as pure data‑to‑data mappings and demonstrates how common mathematical operations such as factorial, exponentiation, and Fibonacci can be expressed in TypeScript/JavaScript using recursive, tail‑recursive, iterative, and logarithmic‑time algorithms that illustrate functional transformation techniques and efficient algorithm design.

AlgorithmFibonacciFunctional Programming
0 likes · 8 min read
Functions as Data Transformations: Recursion, Tail Calls, and Efficient Exponentiation & Fibonacci Implementations
Efficient Ops
Efficient Ops
Nov 6, 2019 · Operations

Mastering Load Balancing: Types, Architectures, and Algorithms Explained

This article explains why a single server eventually hits a performance ceiling, introduces high‑performance clustering and the role of load balancers, compares DNS, hardware, and software load‑balancing solutions, outlines typical multi‑layer architectures, and reviews common load‑balancing algorithms with their pros and cons.

AlgorithmHigh AvailabilityLoad Balancing
0 likes · 18 min read
Mastering Load Balancing: Types, Architectures, and Algorithms Explained
21CTO
21CTO
Sep 28, 2019 · Backend Development

What I Learned From a Tough ByteDance Backend Interview: Nginx, Redis, and More

A candid recount of a ByteDance backend interview reveals how superficial preparation, gaps in Nginx, uWSGI, Redis, and data‑structure knowledge, and nervousness can derail even experienced developers, while offering concrete advice on early preparation, resume framing, and tackling tough technical questions.

AlgorithmInterviewNginx
0 likes · 12 min read
What I Learned From a Tough ByteDance Backend Interview: Nginx, Redis, and More
ITPUB
ITPUB
Sep 17, 2019 · Fundamentals

How a General Deadlock Prediction Algorithm Enhances Linux Lockdep for Read‑Write Locks

This article explains the challenges of deadlock detection in Linux kernel lockdep, especially with read‑write locks, and presents a formally proven general deadlock prediction algorithm that models lock dependencies using a two‑thread abstraction, lemmas, and lock‑type promotion to reliably predict potential deadlocks.

AlgorithmLockdepconcurrency
0 likes · 17 min read
How a General Deadlock Prediction Algorithm Enhances Linux Lockdep for Read‑Write Locks
FunTester
FunTester
Sep 16, 2019 · Fundamentals

Finding Twin Primes Using Recursive Filtering in Java

The article explains how to generate prime numbers with a recursive filtering method, identify twin primes below 10,000, and includes Java implementations of bubble sort and insertion sort, along with a brief commentary on Groovy's advantages and a curated list of related technical articles.

AlgorithmPrime NumbersRecursion
0 likes · 5 min read
Finding Twin Primes Using Recursive Filtering in Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 11, 2019 · Fundamentals

Common Algorithm Tricks: Bit Manipulation, Two‑Pointer Techniques, and XOR Applications

This article reviews several practical algorithm tricks—including using n&(n‑1) to clear the lowest set bit, counting bits, converting numbers, applying double‑pointer methods to linked lists and sorted arrays, and leveraging XOR properties—to simplify typical interview coding problems.

Algorithmbit manipulationtwo pointers
0 likes · 9 min read
Common Algorithm Tricks: Bit Manipulation, Two‑Pointer Techniques, and XOR Applications
MaGe Linux Operations
MaGe Linux Operations
Sep 1, 2019 · Fundamentals

10 Must‑Know Hand‑Coding Interview Algorithms Every Developer Should Master

This article presents the ten most frequently asked hand‑coding interview problems—quick sort, binary search, climbing stairs, two‑sum, max drawdown, merging sorted arrays, maximum subarray, longest non‑repeating substring, permutations, and three‑sum—each with clear Python implementations, difficulty ratings, occurrence probabilities, and sample outputs to boost your interview success.

AlgorithmPythoncoding interview
0 likes · 13 min read
10 Must‑Know Hand‑Coding Interview Algorithms Every Developer Should Master
FunTester
FunTester
Aug 26, 2019 · Fundamentals

How to Check If a Binary Tree Is Symmetric in O(n) Time

This article explains the symmetric‑tree problem, outlines a depth‑first recursive strategy with base‑case checks, demonstrates short‑circuit evaluation, analyzes time complexity, and provides a complete Java implementation that determines tree symmetry in linear time.

AlgorithmDFSRecursion
0 likes · 3 min read
How to Check If a Binary Tree Is Symmetric in O(n) Time
Java Captain
Java Captain
Aug 13, 2019 · Fundamentals

Reversing a Singly Linked List in K‑Node Groups Starting from the Tail

The article explains how to solve a variant of the linked‑list reversal problem where every K nodes are reversed as a group starting from the tail, using recursion and double reversal techniques, and provides complete Java implementations for the algorithm.

AlgorithmLinked ListRecursion
0 likes · 7 min read
Reversing a Singly Linked List in K‑Node Groups Starting from the Tail
Programmer DD
Programmer DD
Jul 27, 2019 · Fundamentals

Master Red-Black Trees: Visual Guide to Balancing Binary Search Trees

This article offers a clear, visual introduction to red‑black trees, covering binary search tree fundamentals, the four balancing rules, insertion cases with recolor and rotation steps, and step‑by‑step animated examples, helping readers grasp and remember the concepts through images and analogies.

AlgorithmBalancingData Structures
0 likes · 10 min read
Master Red-Black Trees: Visual Guide to Balancing Binary Search Trees
GF Securities FinTech
GF Securities FinTech
Jul 25, 2019 · Backend Development

How Nginx’s Smooth Weighted Round‑Robin Load Balancing Works

This article explains Nginx's five load‑balancing methods, focusing on the weighted round‑robin algorithm, its basic and smooth variants, provides code examples, step‑by‑step execution, and a mathematical proof of why the smooth version distributes traffic fairly according to server weights.

AlgorithmLoad BalancingNginx
0 likes · 8 min read
How Nginx’s Smooth Weighted Round‑Robin Load Balancing Works
Programmer DD
Programmer DD
Jul 24, 2019 · Fundamentals

Master Dynamic Programming: From Fibonacci to Knapsack, Levenshtein & LCS in Java

This comprehensive guide explains dynamic programming fundamentals, contrasts it with greedy recursion, and walks through Java implementations for Fibonacci, rod‑cutting, simplified and traditional knapsack, Levenshtein edit distance, and longest common subsequence, highlighting performance gains and reconstruction techniques.

AlgorithmLCSdynamic programming
0 likes · 26 min read
Master Dynamic Programming: From Fibonacci to Knapsack, Levenshtein & LCS in Java
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 12, 2019 · Backend Development

Improving Nginx Load Balancing with the Virtual Node Smooth Weighted Round‑Robin (VNSWRR) Algorithm in Tengine

This article analyzes the shortcomings of Nginx's native Smooth Weighted Round‑Robin (SWRR) algorithm in large‑scale application gateway scenarios, presents a real‑world case where weight adjustments cause traffic spikes, and introduces the VNSWRR algorithm that achieves O(1) selection time, smoother weight handling, and up to 60% higher QPS performance.

AlgorithmLoad BalancingVNSWRR
0 likes · 17 min read
Improving Nginx Load Balancing with the Virtual Node Smooth Weighted Round‑Robin (VNSWRR) Algorithm in Tengine
DataFunTalk
DataFunTalk
Jun 13, 2019 · Artificial Intelligence

What Makes a Good Recommendation System?

This article explores the multifaceted criteria for evaluating a good recommendation system, covering macro and micro perspectives, product domain considerations, information retrieval, algorithmic accuracy, user experience, and business impact, and outlines a systematic iteration process for continuous improvement.

AIAlgorithme-commerce
0 likes · 13 min read
What Makes a Good Recommendation System?
Architect's Tech Stack
Architect's Tech Stack
Jun 9, 2019 · Backend Development

Rate Limiting Strategies and Considerations for Microservices

This article reviews why rate limiting is crucial in microservice architectures, outlines common limiting techniques such as semaphore counting, thread‑pool isolation, fixed and sliding windows, token‑bucket and leaky‑bucket algorithms, and discusses practical considerations like clock sync, SDK vs. server enforcement, and accuracy‑latency trade‑offs.

Algorithmbackendtraffic control
0 likes · 13 min read
Rate Limiting Strategies and Considerations for Microservices
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jun 5, 2019 · Fundamentals

Understanding Paxos: A Beginner’s 30‑Minute Guide with Real‑World Analogy

This article explains the Paxos consensus algorithm in plain terms, using a relatable travel‑planning analogy to illustrate how proposers, acceptors, and majority voting achieve fault‑tolerant agreement in distributed systems, and connects the concept to real‑world implementations like Google’s Chubby and ZooKeeper.

AlgorithmFault TolerancePaxos
0 likes · 13 min read
Understanding Paxos: A Beginner’s 30‑Minute Guide with Real‑World Analogy
Java Captain
Java Captain
May 28, 2019 · Fundamentals

Five Classic Bitwise Operation Techniques in Java

This article introduces five classic bitwise operation examples in Java—including checking odd/even, swapping variables without a temporary, finding a unique number, fast exponentiation, and determining the greatest power of two not exceeding N—explaining the underlying binary logic, code implementations, and their efficiency advantages.

AlgorithmCodingOptimization
0 likes · 10 min read
Five Classic Bitwise Operation Techniques in Java
Tencent Cloud Developer
Tencent Cloud Developer
May 23, 2019 · Backend Development

Rate Limiting in Microservices: Why It’s Needed and Common Techniques

Rate limiting is essential for microservice resilience, preventing overloads and protecting business continuity, and can be implemented through various methods such as semaphores, thread‑pool isolation, fixed or sliding windows (using Redis ZSets or local memory), token‑bucket/leaky‑bucket algorithms, each with trade‑offs in accuracy, performance, clock synchronization, and deployment location.

AlgorithmMicroservicesrate limiting
0 likes · 16 min read
Rate Limiting in Microservices: Why It’s Needed and Common Techniques
Java Captain
Java Captain
Apr 25, 2019 · Fundamentals

Effective Strategies for Algorithm Practice and Problem Solving

This article shares practical, step‑by‑step techniques for improving algorithm problem‑solving skills, emphasizing gradual difficulty progression, categorizing problems by data structure, a three‑stage solving process, and the importance of abstraction and sustained motivation for effective LeetCode practice.

AlgorithmLeetCodecoding interview
0 likes · 9 min read
Effective Strategies for Algorithm Practice and Problem Solving
Java Captain
Java Captain
Apr 21, 2019 · Fundamentals

Binary Search and Its Variants in Java

This article explains the classic binary search algorithm, presents a Java implementation, and details multiple binary‑search variants—including finding first/last equal elements, elements less than or greater than a key—while providing clear code examples and guidance on boundary handling.

Algorithmbinary searchcoding interview
0 likes · 9 min read
Binary Search and Its Variants in Java
Java Captain
Java Captain
Mar 22, 2019 · Fundamentals

Understanding Recursion: Three Essential Elements and Practical Code Examples

This article introduces recursion by outlining its three essential elements—function purpose, base case, and recurrence relation—and demonstrates each step with clear Java/C examples such as factorial, Fibonacci, frog‑jump, and linked‑list reversal, while also covering common pitfalls and optimization techniques.

AlgorithmC++Coding
0 likes · 15 min read
Understanding Recursion: Three Essential Elements and Practical Code Examples
Architects' Tech Alliance
Architects' Tech Alliance
Mar 12, 2019 · Operations

Load Balancing: Concepts, Types, Strategies, and Algorithms

This article explains the fundamentals of load balancing, covering its definition, benefits, various types such as server, firewall, and link load balancing, hardware vs software solutions, local and global strategies, and common algorithms like round robin, weighted, least connections, and DNS‑based methods.

Algorithmcloud
0 likes · 13 min read
Load Balancing: Concepts, Types, Strategies, and Algorithms
58 Tech
58 Tech
Mar 7, 2019 · Big Data

In-Memory Inverted Index Compression Algorithms: Overview and MILC Optimization for High‑Performance Search

This article reviews major in‑memory inverted index compression techniques such as PForDelta, PEF, and MILC, explains their principles and trade‑offs, and details practical optimizations applied at 58.com to achieve query performance comparable to uncompressed indexes while reducing memory usage by about 35 percent.

AlgorithmBig DataMILC
0 likes · 17 min read
In-Memory Inverted Index Compression Algorithms: Overview and MILC Optimization for High‑Performance Search
Architect's Tech Stack
Architect's Tech Stack
Mar 1, 2019 · Fundamentals

Understanding Arrays: Random Access, Insertion, Deletion, and Efficiency

This article explains what arrays are, how they enable O(1) random access through address calculation, the time‑complexities of insertion and deletion operations, techniques for improving array efficiency, and why zero‑based indexing is used, comparing arrays with dynamic containers like ArrayList.

AlgorithmArrayData Structure
0 likes · 6 min read
Understanding Arrays: Random Access, Insertion, Deletion, and Efficiency
DataFunTalk
DataFunTalk
Jan 18, 2019 · Artificial Intelligence

Efficiency Optimization Practices for 58.com Search Ranking

This article presents a comprehensive overview of 58.com’s search efficiency optimization, detailing the business background, ranking framework, data, algorithm, and engineering components, describing the three-stage ranking process, strategy and platform optimizations, feature engineering, model upgrades, and the resulting performance improvements.

AlgorithmOnline Advertisingefficiency optimization
0 likes · 12 min read
Efficiency Optimization Practices for 58.com Search Ranking
Programmer DD
Programmer DD
Jan 9, 2019 · Fundamentals

How to Find the Peak in a Bitonic Array Using Binary Search

This article presents a JavaScript solution for locating the maximum element in a bitonic (first increasing then decreasing) array, explaining that the problem is a variant of binary search and providing a complete implementation using a binary‑search‑based algorithm.

AlgorithmInterview QuestionJavaScript
0 likes · 3 min read
How to Find the Peak in a Bitonic Array Using Binary Search
Programmer DD
Programmer DD
Jan 4, 2019 · Fundamentals

How to Build an O(log n) Priority Queue with a Binary Heap in JavaScript

This article explains the concept of a priority queue, presents a interview‑style problem requiring O(log n) enqueue and dequeue operations, and shows how to implement the solution efficiently using a binary heap with detailed step‑by‑step illustrations and a complete JavaScript code example.

AlgorithmData StructuresO(log n)
0 likes · 8 min read
How to Build an O(log n) Priority Queue with a Binary Heap in JavaScript
Java Captain
Java Captain
Dec 25, 2018 · Fundamentals

Common Algorithmic Techniques: Array Indexing, Modulo, Two‑Pointer, Bit‑Shift, Sentinel Nodes, and Recursion Optimizations

This article introduces several practical algorithmic tricks—using array indices as counters, applying modulo for circular traversal, employing two‑pointer methods for linked‑list problems, leveraging bit‑shift and bitwise operations, adding sentinel nodes, and optimizing recursive solutions with memoization and bottom‑up DP—each illustrated with Java code examples.

AlgorithmData StructuresOptimization
0 likes · 10 min read
Common Algorithmic Techniques: Array Indexing, Modulo, Two‑Pointer, Bit‑Shift, Sentinel Nodes, and Recursion Optimizations
Programmer DD
Programmer DD
Dec 17, 2018 · Fundamentals

How to Compute √2 Efficiently: Binary Search, Newton’s Method, and C Tricks

Learn multiple techniques to calculate the square root of 2—including binary search, Newton’s iteration, and a clever C library implementation—through clear explanations, step‑by‑step illustrations, and full JavaScript and C code examples that reveal the underlying mathematics and performance considerations.

AlgorithmC++Newton's method
0 likes · 4 min read
How to Compute √2 Efficiently: Binary Search, Newton’s Method, and C Tricks
21CTO
21CTO
Nov 27, 2018 · Big Data

How Netflix’s Data‑Driven Playbook Is Challenging Hollywood’s Creative Rules

Netflix’s data‑driven strategy, which uses massive subscriber analytics to shape original content and marketing, has sparked a clash with Hollywood’s traditional, relationship‑focused approach, leading to internal power struggles, leadership changes, and a broader debate over algorithmic versus human intuition in entertainment.

AlgorithmContent StrategyData Analytics
0 likes · 8 min read
How Netflix’s Data‑Driven Playbook Is Challenging Hollywood’s Creative Rules
Programmer DD
Programmer DD
Nov 21, 2018 · Fundamentals

Who Was Ada Lovelace? The Woman Who Invented Computer Programming

Ada Lovelace, the daughter of poet Byron, pioneered computer programming by introducing algorithms and the concept of loops, influencing modern software engineering and inspiring the Ada programming language named in her honor, recognized by the U.S. Department of Defense and industry leaders.

Ada LovelaceAlgorithmProgramming Language
0 likes · 7 min read
Who Was Ada Lovelace? The Woman Who Invented Computer Programming
Programmer DD
Programmer DD
Oct 30, 2018 · Fundamentals

What Is Paxos? A Storytelling Guide to Distributed Consensus

This article uses a vivid allegorical story to introduce the Paxos algorithm, then explains its roles, two-phase protocol, fault assumptions, and why majority and multiple acceptors are essential for achieving reliable consensus in distributed systems.

AlgorithmFault TolerancePaxos
0 likes · 10 min read
What Is Paxos? A Storytelling Guide to Distributed Consensus
JD Tech
JD Tech
Oct 16, 2018 · Fundamentals

Wave Fluctuation Equal Distribution (波动均分) Algorithm: Exhaustive and Quick Allocation Methods

This article introduces the "wave fluctuation equal distribution" algorithm that splits a value into N parts within a bounded range with random variation, explains its characteristics, and provides two JavaScript implementations—an exhaustive enumeration method and a fast random allocation method—along with performance analysis and validation techniques.

AlgorithmJavaScriptexhaustive search
0 likes · 7 min read
Wave Fluctuation Equal Distribution (波动均分) Algorithm: Exhaustive and Quick Allocation Methods
Java Backend Technology
Java Backend Technology
Oct 13, 2018 · Big Data

Check a New Integer Among 4 Billion Records in Seconds Using Bitmap & Distributed Methods

An interviewee faces the challenge of determining whether a newly given integer exists within a set of 4 billion numbers, and the article explores efficient solutions—from naive disk‑I/O approaches to distributed processing and the memory‑saving bitmap technique—highlighting their performance trade‑offs and implementation details.

AlgorithmBig DataBitmap
0 likes · 6 min read
Check a New Integer Among 4 Billion Records in Seconds Using Bitmap & Distributed Methods
UC Tech Team
UC Tech Team
Oct 11, 2018 · Backend Development

Avoiding Single Empty Seats in Cinema Seat Selection Using Regex

This article explains how to prevent isolated empty seats when users select cinema seats by modeling seat layouts, defining forbidden patterns, converting them into regular expressions, and implementing concise JavaScript validation code that reduces complex nested if‑statements to a few clear lines.

AlgorithmCinemaRegex
0 likes · 6 min read
Avoiding Single Empty Seats in Cinema Seat Selection Using Regex
21CTO
21CTO
Sep 21, 2018 · Big Data

Master Massive Data Processing: Key Techniques from Hash Maps to MapReduce

This comprehensive guide explores essential strategies for handling massive datasets, covering hash-based structures, bucket partitioning, heap and quicksort techniques, trie trees, Bloom filters, external sorting, and MapReduce, and demonstrates how to efficiently solve common interview problems such as top‑K queries and duplicate removal.

AlgorithmData StructuresHash
0 likes · 35 min read
Master Massive Data Processing: Key Techniques from Hash Maps to MapReduce
AutoHome Frontend
AutoHome Frontend
Sep 18, 2018 · Frontend Development

How Google Photos Delivers Smooth 60fps Scrolling with Advanced Layout Tricks

This article explains the technical challenges Google Photos faced—such as handling millions of images, preserving aspect ratios, enabling instant navigation, and maintaining 60fps scrolling—and details the algorithms, data chunking, justified layout, and performance optimizations that make the web UI fast and fluid.

AlgorithmFrontendLayout
0 likes · 27 min read
How Google Photos Delivers Smooth 60fps Scrolling with Advanced Layout Tricks
Meituan Technology Team
Meituan Technology Team
Sep 6, 2018 · Artificial Intelligence

Meituan Machine Learning Practice Book Released

Meituan’s new book, 'Machine Learning Practice,' authored by over twenty frontline engineers, offers a comprehensive guide to internet‑company ML techniques, is now sold in major bookstores, invites reader feedback, and provides QR‑code access to the team’s official account and an electronic bibliography, plus a companion summary of 27 essential AI articles.

AIAlgorithmMeituan
0 likes · 6 min read
Meituan Machine Learning Practice Book Released
Senior Brother's Insights
Senior Brother's Insights
Aug 15, 2018 · Fundamentals

How Does Base64 Really Work? A Deep Dive into Encoding Basics

This article explains the origin, alphabet, step‑by‑step conversion process, padding rules, and provides a Java example to illustrate how Base64 encodes binary data into printable characters, highlighting why the output is about one‑third larger than the input.

AlgorithmBase64Binary-to-Text
0 likes · 8 min read
How Does Base64 Really Work? A Deep Dive into Encoding Basics
MaGe Linux Operations
MaGe Linux Operations
Jul 16, 2018 · Fundamentals

12 Essential Python Coding Challenges with Solutions and Explanations

This article presents twelve Python programming exercises covering string manipulation, list handling, regular expressions, binary conversion, and algorithmic sorting, each accompanied by clear explanations and complete code snippets that illustrate how to solve the problems step by step.

AlgorithmPythonString Manipulation
0 likes · 13 min read
12 Essential Python Coding Challenges with Solutions and Explanations
Xianyu Technology
Xianyu Technology
Jul 9, 2018 · Big Data

Efficient GeoHash-Based Point‑in‑Polygon Matching for Massive Datasets

By encoding billions of GPS points and ten thousand district polygons into GeoHash cells, using exact matches, approximate filtering, neighbor‑cell lookup tables, and a final precise geometry test, the authors cut the required operations from 2×10^20 to about 1.8×10^12, enabling full processing in under a day.

AlgorithmPoint-in-PolygonSpatial Indexing
0 likes · 13 min read
Efficient GeoHash-Based Point‑in‑Polygon Matching for Massive Datasets
360 Quality & Efficiency
360 Quality & Efficiency
May 11, 2018 · Artificial Intelligence

Common Engineering Algorithms and Their Testing Methods

This article introduces the most commonly used algorithms in engineering—recommendation, optimization, estimation, and classification—explains their typical application scenarios, and discusses various testing methods and evaluation metrics such as offline experiments, user surveys, A/B testing, and performance indicators like accuracy, coverage, diversity, and robustness.

AlgorithmOptimizationevaluation
0 likes · 12 min read
Common Engineering Algorithms and Their Testing Methods
ITPUB
ITPUB
May 1, 2018 · R&D Management

Why Personality Beats Algorithms: A Senior Engineer’s Interview Playbook

The article reflects on a senior engineer’s interview experience, arguing that hiring should focus on the probability of "working well" rather than superficial metrics like education, algorithms, or basic knowledge, and it outlines how factors such as experience, fundamentals, algorithms, and especially personality influence hiring decisions.

AlgorithmExperiencePersonality
0 likes · 18 min read
Why Personality Beats Algorithms: A Senior Engineer’s Interview Playbook
Java Backend Technology
Java Backend Technology
Apr 22, 2018 · Backend Development

How to Build a Scalable Short URL Service: Algorithms, Use Cases, and Code

This article explores the concept of short URLs, their practical applications such as social media and QR codes, discusses various generation methods, presents algorithmic designs like incremental ID encoding and caching strategies, and provides a reference implementation for building a reliable URL shortening service.

AlgorithmRedisbackend
0 likes · 12 min read
How to Build a Scalable Short URL Service: Algorithms, Use Cases, and Code
Tencent Cloud Developer
Tencent Cloud Developer
Mar 19, 2018 · Artificial Intelligence

Basic Concepts of Decision Trees

Decision trees are tree-structured classifiers that split data using attributes chosen for maximal purity measured by Gini impurity or entropy, with algorithms like ID3 selecting splits by information gain, while overfitting is mitigated through constraints and pruning techniques such as REP, PEP, and CCP.

AlgorithmGini ImpurityID3
0 likes · 13 min read
Basic Concepts of Decision Trees
Qunar Tech Salon
Qunar Tech Salon
Mar 7, 2018 · Fundamentals

Dynamic Programming Solutions for 0/1, Complete, Unbounded, and Multi‑Knapsack Problems in JavaScript

This article explains the theory and JavaScript implementations of various knapsack problem variants—including 0/1, complete, unbounded, and multi‑knapsack—detailing state transition equations, space‑optimisation techniques such as rolling arrays and binary decomposition, and provides full code examples for each solution.

AlgorithmJavaScriptdynamic programming
0 likes · 16 min read
Dynamic Programming Solutions for 0/1, Complete, Unbounded, and Multi‑Knapsack Problems in JavaScript
Aotu Lab
Aotu Lab
Jan 23, 2018 · Frontend Development

How to Build a Popstar Match‑3 Game with MVC Architecture in JavaScript

This article explains the rules, scoring system, and level design of the classic "Popstar" match‑3 game, then details a full MVC implementation in JavaScript—including tile representation, wave‑average distribution, shuffle, wall solidification, view updates, control bindings, and a discussion of the knapsack‑style max‑score problem—while providing complete code snippets and a GitHub repository link.

AlgorithmFrontendGame Development
0 likes · 14 min read
How to Build a Popstar Match‑3 Game with MVC Architecture in JavaScript