Skip to main content
David Liu
/
Algorithms
Overview
Data Structures
Linear
Tree
Graph
Set
Search
DFS
BFS
FOR
Optimization
Decrease & Conquer
Dynamic Programming
Math
Study Tracks
JZ Track
Problem-Solving Framework
FAQ
AI Systems
Overview
Foundations
Overview
Classical ML
Deep Learning
Language Models
Reinforcement Learning
Generative AI
Overview
Text & Pre-Training
Training Systems
Alignment
Inference
Multimodal
RAG
Agents
AI Engineering
Recommender Systems
Retrieval
Pre-Ranking
Ranking
Re-Ranking
Metrics
Cold Start
PyTorch
Search Systems
AI Evaluation
AI Safety
CS Foundations
Overview
Systems Foundations
Computer Networks
Operating System
Software & System Design
Design Pattern
Object-Oriented Design
System Design
Software Engineering
Overview
Languages & Runtimes
Overview
Java
Python
Go
C++
Data Systems
Overview
MySQL
Redis
MongoDB
SQL
Middleware
Overview
Kafka
RabbitMQ
Elasticsearch
Nginx
Delivery & Operations
Overview
Unix
Docker
Kubernetes
CI/CD
Quality & Tooling
Observability
Software Testing
Engineering Tools
Test Prep
Overview
TOEFL iBT
Overview
Reading
Listening
Speaking
Writing
GRE General Test
Overview
Verbal
Quantitative
Analytical Writing
Language Foundations
Archive
Course Notes
Personal Notes
All Articles
Tags
二分法实战
David Liu
8/3/26
Less than 1 minute
二分法实战
三种类型二分
在排序的输入集上二分
在未排序的输入集上二分
在答案集上二分
二分答案
输入集未排序
二分的本质:连续性
左侧和右侧,是两种不同的性质,左侧同时满足一种,右侧同时一种
抄书问题
二分答案的话,就是求满足条件的最大值或者满足条件的最小值
Prev
二分法
Next
二分法心法