resumejob/system-design-algorithms
resumejob/system-design-algorithms has 1,607 GitHub stars and 292 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 04:09 UTC. Last push 2025-09-23.
Advanced data structure and algorithm for system design,系统设计需要了解的算法
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSystem design algorithms
Algorithm you should know for preparing system design interview. For example, Learn Geohash / S2 Geometry algorithm for "How to design Uber like system?"
Sponsor
海外兔小班教学帮助你高效准备面试,学员大厂率超过 65%,入职不成功不收费。
How to contribute
The algorithm and its resources should:
- Can answer a system design question. For instance, Building a complete Tweet index can answer "How to implement Twitter search" or "How to implement hashtag in Twitter".
- Free to read or watch.
- Text would be better than videos.
Requirements
- Know when to use ☑️
- Know how it works ✅
Table of contents
- Bloom filter ✅
- Consistent hashing ✅
- Geohash / S2 Geometry ✅
- Two-Phase Commit (2PC) ✅
- Exponential Backoff ✅
- SSTable ✅
- Leaky bucket / Token bucket ✅
- Inverted index ✅
- Distributed Consensus Algorithms (e.g., Paxos, Raft) ✅
- Cache Eviction Policies (e.g., LRU, LFU) ✅
- Rsync algorithm ✅
- HyperLogLog ✅
- Trie algorithm ✅
- Lossy Counting ☑️
- Frugal Streaming ☑️
- Operational transformation ☑️
- Quadtree / Rtree ☑️
- Ray casting ☑️
Bloom filter
A Bloom filter is a data structure designed to tell you, rapidly and memory-efficiently, whether an element is present in a set.
Consistent hashing
Consistent hashing is an algorithm designed to distribute data across a cluster in a way that minimizes re-distribution when nodes are added or removed. It is particularly useful in distributed systems, such as distributed caches, distributed storage systems, and load balancing.
Geohash / S2 Geometry
Geohash can used by 1) dating apps to find romantic matches within a particular cell, and to create chat apps.2) Find nearby locations, and identify places of interest, restaurants, shops and accommodation establishments in an area. 3) Geohashers go on global expeditions to meet people and explore new places.
Two-Phase Commit (2PC)
Two-Phase Commit is a distributed algorithm that ensures all participating nodes in a distributed transaction either all commit or all abort the transaction, maintaining ACID properties across distributed systems.
Exponential Backoff
Exponential backoff is a retry strategy that increases the delay between retry attempts exponentially, helping to handle transient failures and prevent system overload in distributed systems.
SSTable
SSTable (Sorted String Table) is an immutable data structure that stores key-value pairs in sorted order, used in modern databases like Cassandra and BigTable to achieve high write throughput and efficient read operations.
Leaky bucket / Token bucket
A mechanism to control the amount and the rate of the traffic sent to the network
- Everything You Need To Know About API Rate Limiting
- How to Design a Scalable Rate Limiting Algorithm
Ieversed index
An inverted index is a data structure used primarily in text search engines.
Distributed Consensus Algorithms
Distributed consensus algorithm that enables nodes to agree on a value despite failures, requiring a majority for safety and progress.
Cache Eviction Policies
Cache eviction policies determine which items to remove from a cache when it reaches its capacity, with common strategies including Least Recently Used (LRU), First In First Out (FIFO), and Least Frequently Used (LFU).
Rsync algorithm
The rsync algorithm is a technique for reducing the cost of a file transfer by avoiding the transfer of blocks that are already at the destination.
HyperLogLog
HyperLogLog is an algorithm for the count-distinct problem, approximating the number of distinct elements in a multiset.
Trie algorithm
Trie is an efficient information reTrieval data structure. Using Trie, search complexities can be brought to optimal limit (key length)
- How to Design an Autocomplete System
- Spell Checkers
- prefix matching words (IP Addresses, Phone Numbers)
- Auto-complete feature using Trie
Lossy Counting
The lossy count algorithm is an algorithm to identify elements in a data stream whose frequency count exceed a user-given threshold.
- Fast and Reliable Ranking in Datastore
- Frequency Counts over Data Streams
- How we built rate limiting capable of scaling to millions of domains
- Rate-limiting strategies and techniques
Frugal Streaming
Frugal Streaming uses only one unit of memory per group to compute a quantile for each group
Operational transformation
Operational transformation (OT) is a technology for supporting a range of collaboration functionalities in advanced collaborative software systems.
Quadtree / Rtree
- Spatial Indexing with Quadtrees
- Find nearby interest points
Ray casting
Ray casting is the most basic of many computer graphics rendering algorithms that use the geometric algorithm of ray tracing. Given a point with longitude and latitude, return the Country of the point.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,534 starspublic-apis/public-apis
A collective list of free APIs
496,817 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
438,889 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,094 stars