---
title: "Algorithms"
description: "Algorithm design or analysis as a central topic"
url: "https://swe.quest/tags/algorithms?per=96"
---

# Algorithms

Topic in Architecture & design: Algorithm design or analysis as a central topic

By difficulty: [Easy](https://swe.quest/tags/algorithms.md?difficulty=easy) · [Medium](https://swe.quest/tags/algorithms.md?difficulty=medium) · [Hard](https://swe.quest/tags/algorithms.md?difficulty=hard)

Posts 1–96 of 99, page 1 of 2, newest first.

## 2026-11-24

- [Lazy gas, hot gas, and a thousand robots](https://swe.quest/articles/lazy-gas-hot-gas-and-a-thousand-robots-6f7a6530e96fde6f.md): Amazon Science · 2026-11-24 · Hard · 6 min read · Algorithms, Scientific computing, Machine learning
  Anonymous multiagent pathfinding (MAPF) for warehouse robots can be solved to optimality in polynomial time by formulating it as multimarginal optimal transport (MMOT) whose constraint matrices stay totally unimodular.

## 2026-11-13

- [Advancing science & engineering with Antigravity’s /teamwork](https://swe.quest/articles/advancing-science-engineering-with-antigravity-s-teamwork-0e40d692e8fc9ab5.md): Google Research · 2026-11-13 · Easy · 14 min read · AI agents, LLMs, Formal methods, Algorithms
  Antigravity's /teamwork multi-agent harness pairs parallel exploration with independent falsifiers (Lean 4, unmodified test suites, simulators, hardware counters) and partitions context so each agent sees only the files and tools it needs, with critics and auditors verifying results from clean contexts.

## 2026-11-10

- [Complexity of Differentially Private Selection via Federated APIs](https://swe.quest/articles/complexity-of-differentially-private-selection-via-federated-apis-707081b57325b85a.md): Apple Machine Learning Research · 2026-11-10 · Hard · 1 min read · Privacy, Algorithms, Machine learning
  Private selection built only on the standard noisy-aggregation primitive used in federated differential privacy needs Ω(√d/ε) samples, which explains the utility gap against the central model.
- [Understanding Private Evolution as Learning-Augmented Clustering](https://swe.quest/articles/understanding-private-evolution-as-learning-augmented-clustering-58ac5a66449a6d2b.md): Apple Machine Learning Research · 2026-11-10 · Hard · 2 min read · Privacy, Machine learning, Algorithms
  Private Evolution (PE), a differentially private synthetic data generation algorithm, performs far better in practice than worst-case Wasserstein learning analyses predict, and recasting it as generative model-augmented Wasserstein learning explains why.
- [Toward a Theory of Evaluability](https://swe.quest/articles/toward-a-theory-of-evaluability-047f64965b8c9ea7.md): Apple Machine Learning Research · 2026-11-10 · Hard · 1 min read · Evaluation, Machine learning, Algorithms
  Formalizes 'evaluability': whether a black-box model can be accurately evaluated when test samples may have been seen during training, a held-out assumption that is hard to justify for large foundation models.

## 2026-11-07

- [JIT bitmap text rendering for microcontrollers](https://swe.quest/articles/jit-bitmap-text-rendering-for-microcontrollers-b2c91e4d8888665c.md): Linebender · 2026-11-07 · Hard · 13 min read · Compilers, Performance engineering, Hardware, Algorithms
  Proportionally spaced, kerned bitmap text on the RP2350 renders fast enough to race the beam by JIT-compiling each string into ARM Cortex-M33 code.

## 2026-11-05

- [Hamed Karimi wins ECML PKDD Test-of-Time Award](https://swe.quest/articles/hamed-karimi-wins-ecml-pkdd-test-of-time-award-8bfbbc2fdc0b0a0e.md): Amazon Science · 2026-11-05 · Hard · 5 min read · Machine learning, Algorithms, Model training
  Hamed Karimi, Julie Nutini and Mark Schmidt received the 2026 ECML PKDD Test-of-Time Award for their 2016 paper showing that the 1963 Polyak–Łojasiewicz (PL) inequality guarantees linear convergence of gradient descent without strong convexity.

## 2026-10-30

- [Splatting the Gaussians into Blender](https://swe.quest/articles/splatting-the-gaussians-into-blender-0308f3f0ecb77140.md): Blender Developers Blog · 2026-10-30 · Hard · 6 min read · Computer vision, Algorithms, Open source
  Blender 5.3 adds native 3D Gaussian splat support, importing .PLY, .SPZ and USD captures as a point cloud type with per-splat scaling, quaternion rotation and spherical-harmonic radiance attributes exposed to Geometry Nodes.

## 2026-10-28

- [The new cost-based join optimizer with reordering support for non-inner joins](https://swe.quest/articles/the-new-cost-based-join-optimizer-with-reordering-support-for-non-inner-joins-60f6c88dd7c8b7a9.md): ClickHouse · 2026-10-28 · Hard · 17 min read · Query engines, Algorithms, Analytics & OLAP, Performance engineering
  ClickHouse's new cost-based join optimizer uses an exhaustive DPsub dynamic-programming enumerator over table-subset bitmasks.

## 2026-10-20

- [Cross-store product clustering across millions of stores](https://swe.quest/articles/cross-store-product-clustering-across-millions-of-stores-c9b1fdcfbed466c6.md): Shopify Engineering · 2026-10-20 · Hard · 13 min read · Machine learning, E-commerce, Vector search, Algorithms, LLMs
  Shopify groups listings of the same product across millions of stores under a global Universal Product Identifier using a three-stage pipeline: embedding-based approximate nearest-neighbor retrieval to find candidate pairs, tiered pair scorers, and graph clustering.

## 2026-10-12

- [Contact Recycling](https://swe.quest/articles/contact-recycling-cff69228db371637.md): Box2D · 2026-10-12 · Hard · 9 min read · Games, Performance engineering, Algorithms, Scientific computing
  Contact recycling reuses one-shot contact manifolds across full time steps when two bodies have barely moved relative to each other, making narrow-phase contact generation nearly free for resting stacks or objects riding together.

## 2026-10-09

- [There are many themes, but this one is yours](https://swe.quest/articles/there-are-many-themes-but-this-one-is-yours-54d3fb5afa0c1ab8.md): Earendil · 2026-10-09 · Medium · 12 min read · Accessibility, Developer tools, Algorithms
  Pi's new default system theme queries the terminal for its foreground, background and 16 ANSI colors, keeps their hue and chroma, and recomputes lightness so that around 60 UI color roles meet per-surface contrast rules.

## 2026-10-07

- [What today's software owes to Bronze Age clocks](https://swe.quest/articles/what-today-s-software-owes-to-bronze-age-clocks-f1c84fb59510a8bf.md): PlanetScale · 2026-10-07 · Medium · 8 min read · Resilience, PostgreSQL, API design, Algorithms
  Leaky buckets, descended from Bronze Age water clocks, remain a cheap admission-control mechanism: a bucket stores only its last level and timestamp, so its current level can be computed lazily as max(0, level\_then − drain\_rate × elapsed).

## 2026-10-05

- [Unsupervised Topic Discovery with Text Embeddings](https://swe.quest/articles/unsupervised-topic-discovery-with-text-embeddings-b5e7da4e259352e1.md): Wealthfront Engineering · 2026-10-05 · Medium · 14 min read · Machine learning, LLMs, Python, Algorithms
  Wealthfront derives a hierarchical taxonomy of support-call topics from free-form representative notes by embedding each note with OpenAI's text-embedding-3-small, reducing dimensions with UMAP (to 25), and clustering with HDBSCAN into 89 top-level clusters, then re-running UMAP+HDBSCAN within each cluster to get sub-topics.
- [Scaling and benchmarking a critical message bus using a new indexing strategy](https://swe.quest/articles/scaling-and-benchmarking-a-critical-message-bus-using-a-new-indexing-strategy-b90c14ae394a3109.md): Jane Street Tech Blog · 2026-10-05 · Medium · 9 min read · Queues & messaging, Performance engineering, Data structures, Algorithms, Testing
  Aria, Jane Street's internal message bus, was burning CPU by linearly filtering its in-memory ring buffer whenever lagging clients recovered a subset of topics.

## 2026-09-29

- [Inscribed Spheres](https://swe.quest/articles/inscribed-spheres-119dd641a396418e.md): Box2D · 2026-09-29 · Hard · 14 min read · Games, Algorithms, Performance engineering, C & C++
  Inscribed spheres give a cheap upper bound on the separation achievable along any axis in the separating axis test (SAT): n·d − (rA + rB), where d joins the sphere centers.

## 2026-09-21

- [Open-Sourcing Rebalancer: A Generic, High-Performance Library for Solving Assignment Problems](https://swe.quest/articles/open-sourcing-rebalancer-a-generic-high-performance-library-for-solving-d79479af3daad1e0.md): Meta Engineering · 2026-09-21 · Medium · 8 min read · Algorithms, Scheduling, Open source, Datacenters, Performance engineering
  Meta has open-sourced Rebalancer, an assignment-problem solver used for nine years to place hardware, services, tasks and traffic across its infrastructure.
- [tokenizers v1: encode, decode and scaling, measured](https://swe.quest/articles/tokenizers-v1-encode-decode-and-scaling-measured-49d0c7f94c7739e1.md): Hugging Face · 2026-09-21 · Medium · 10 min read · Performance engineering, Rust, LLMs, Algorithms
  tokenizers v1 encodes text 3 to 30 times faster than v0.23 single-threaded on an Apple M4 Max and scales at 76% of linear across eight cores, while producing identical token IDs and keeping the same API.

## 2026-09-18

- [MilleMiglia: A realistic instance generator for middle-mile logistics](https://swe.quest/articles/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics-6dcc1ed2fd92bea0.md): Google Research · 2026-09-18 · Easy · 8 min read · Algorithms, Scientific computing, C & C++, Open source
  MilleMiglia is an open-source C++ instance generator that produces realistic, privacy-preserving benchmarks for middle-mile logistics, where shipments are relayed across multiple vehicles between distribution centers over multi-day horizons.

## 2026-09-02

- [Interning at incident.io: rate limiting, resiliently](https://swe.quest/articles/interning-at-incident-io-rate-limiting-resiliently-703eb65d0ab42974.md): incident.io · 2026-09-02 · Medium · 10 min read · Resilience, Algorithms, Kubernetes, Engineering culture
  incident.io made its rate limiter keep working when its Valkey backing store (Google Cloud Memorystore) is unavailable, instead of failing open.

## 2026-08-31

- [Autoscaling Lakebase Postgres](https://swe.quest/articles/autoscaling-lakebase-postgres-63257ef0753db067.md): Neon · 2026-08-31 · Hard · 12 min read · PostgreSQL, Capacity planning, Virtualization, Algorithms, Kubernetes
  Neon's Lakebase Postgres resizes compute in place about once every 81 seconds by taking the maximum of three target sizes: CPU load (one-minute average kept under 90%), memory (polled every 100 ms by an in-VM monitor and kept under 75%), and the working set of the compute cache.

## 2026-08-25

- [Project Lighthouse — Part 3: Introducing project-lighthouse-anonymize](https://swe.quest/articles/project-lighthouse-part-3-introducing-project-lighthouse-anonymize-df592a142a535f24.md): Airbnb Engineering · 2026-08-25 · Easy · 4 min read · Privacy, Python, Open source, Algorithms
  Airbnb has open-sourced project-lighthouse-anonymize, the Python library behind Project Lighthouse's anonymization of perceived race data, alongside two new arXiv papers.

## 2026-08-17

- [Same Cluster, 33 Points More Utilization: What Changed Was the Order](https://swe.quest/articles/same-cluster-33-points-more-utilization-what-changed-was-the-order-b3fd7e12cbfd3ecc.md): Hugging Face · 2026-08-17 · Hard · 13 min read · Scheduling, ML platforms, Inference & serving, Capacity planning, Algorithms
  A constraint-aware GPU allocator beat a FIFO scheduler on identical hardware and workloads across seven scenarios, raising utilization by up to 33 percentage points and priority-weighted output by up to 105%.

## 2026-08-08

- [The mathematical beauty of hyperbezier curves](https://swe.quest/articles/the-mathematical-beauty-of-hyperbezier-curves-037511253fc852f1.md): Linebender · 2026-08-08 · Hard · 7 min read · Algorithms, Scientific computing
  The hyperbezier is a proposed curve family for 2D vector design, defined by the Cesàro equation κ(s) = (as+b)/(cs²+ds+1)^1.5, intended as a strict improvement on cubic Béziers.

## 2026-07-31

- [Don’t stop early: Case-folding source code at memory speed](https://swe.quest/articles/don-t-stop-early-case-folding-source-code-at-memory-speed-d9a0d3aa3df1f3f4.md): GitHub Engineering · 2026-07-31 · Hard · 18 min read · Performance engineering, Rust, Search, Algorithms, Data structures
  GitHub's Blackbird code search case-folds every byte of 480TB of source, and the fastest ASCII path came from removing the early exit at the first non-ASCII byte.

## 2026-07-18

- [SIMD for Collision](https://swe.quest/articles/simd-for-collision-0a426a9583188633.md): Box2D · 2026-07-18 · Hard · 5 min read · Performance engineering, Games, Algorithms, C & C++
  Box3D uses wide SIMD to speed up the edge-edge phase of the Separating Axis Test, testing one edge of hull A against four edges of hull B at once using structure-of-arrays data.

## 2026-07-07

- [The power of collaboration: How we can reduce traffic congestion](https://swe.quest/articles/the-power-of-collaboration-how-we-can-reduce-traffic-congestion-f481256bf992f05a.md): Google Research · 2026-07-07 · Easy · 5 min read · Maps & geospatial, Algorithms
  Modifying Google Maps routing to steer trips away from about 100 pre-selected recurring bottleneck segments per city, toward alternatives with similar travel times, measurably improved city-wide traffic in a six-month experiment across 10 US cities.

## 2026-06-29

- [Leveraging PyFixest for High-Cardinality Marketplace Modeling at Instacart](https://swe.quest/articles/leveraging-pyfixest-for-high-cardinality-marketplace-modeling-at-instacart-51b7ebdb06241104.md): Instacart Tech · 2026-06-29 · Hard · 13 min read · Python, Algorithms, Performance engineering, Scientific computing
  Controlling for high-cardinality fixed effects (e.g. thousands of regions, shoppers or customers) makes standard OLS intractable, because each dummy variable expands the Gram matrix and matrix inversion scales as O(k³).

## 2026-06-25

- [Optimizing cloud economics with linear elastic caching](https://swe.quest/articles/optimizing-cloud-economics-with-linear-elastic-caching-1df4c9ca9645409f.md): Google Research · 2026-06-25 · Medium · 7 min read · Caching, Algorithms, Cost optimization, Machine learning, Databases
  Linear elastic caching treats cache memory as a cost that grows linearly with data size and time held, and frames each page's retention as a ski rental problem: keep paying for RAM or evict and risk a miss penalty.

## 2026-06-17

- [Clustering billions of products for agentic commerce with Catalog API](https://swe.quest/articles/clustering-billions-of-products-for-agentic-commerce-with-catalog-api-20619778c8b2f613.md): Shopify Engineering · 2026-06-17 · Medium · 13 min read · LLMs, E-commerce, Vector search, Algorithms, Evaluation
  Shopify's Catalog groups billions of merchant product listings under Universal Product Identifiers (UPIs) using a precision-first pipeline.

## 2026-05-04

- [Interpolation search for SST index blocks](https://swe.quest/articles/interpolation-search-for-sst-index-blocks-87e39fd0767b7895.md): RocksDB Blog · 2026-05-04 · Hard · 4 min read · Storage engines, Algorithms, Performance engineering, Databases
  RocksDB adds interpolation search for SST index blocks, which estimates the probe position from key values and needs an expected O(log log n) probes on uniformly distributed keys, versus Θ(log n) for binary search.

## 2026-04-28

- [Who's on call? How we improved schedule rendering performance 2,500x](https://swe.quest/articles/who-s-on-call-how-we-improved-schedule-rendering-performance-2-500x-8f76a3cfe21d61b4.md): incident.io · 2026-04-28 · Medium · 17 min read · Performance engineering, Go, Algorithms, AI for coding, Debugging
  incident.io's on-call schedule renderer, which computes future shifts on the fly from rotation config, working hours and fair-scheduling rules, became dramatically faster through a series of fixes culminating in a ~2,500x speedup.

## 2026-04-21

- [Steganography at scale: Embedding share URLs in Datadog widget screenshots](https://swe.quest/articles/steganography-at-scale-embedding-share-urls-in-datadog-widget-screenshots-c180eafbb38c64ee.md): Datadog Engineering · 2026-04-21 · Medium · 20 min read · Frontend, Caching, Observability, Algorithms
  Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID.

## 2026-04-20

- [Gradient-based Planning for World Models at Longer Horizons](https://swe.quest/articles/gradient-based-planning-for-world-models-at-longer-horizons-5ad914a02a501cb0.md): Berkeley AI Research · 2026-04-20 · Hard · 12 min read · Machine learning, Algorithms
  GRASP is a gradient-based planner for learned world models that makes long-horizon planning tractable by lifting the trajectory into virtual states (collocation) so model evaluations run in parallel across time and avoid exploding/vanishing gradients from deep rollouts.

## 2026-04-15

- [Frontend Engineering at Palantir: Polar Scaled Tiles in Zodiac](https://swe.quest/articles/frontend-engineering-at-palantir-polar-scaled-tiles-in-zodiac-eafc54559cb5567a.md): Palantir · 2026-04-15 · Medium · 9 min read · Maps & geospatial, Frontend, Performance engineering, TypeScript, Algorithms
  Equal-angle lat/long map tiles collapse into tiny slivers near the poles on a 3D globe, so Zodiac, Palantir's Three.js globe library, was generating far too much geometry in polar regions.

## 2026-03-30

- [Predicting Rider Conversion in Sparse Data Environments with Bayesian Trees](https://swe.quest/articles/predicting-rider-conversion-in-sparse-data-environments-with-bayesian-trees-2eaad9d2e87f81af.md): Lyft Engineering · 2026-03-30 · Medium · 8 min read · Machine learning, Algorithms
  Lyft predicts whether a rider will request a ride after seeing price and ETA using "Bayesian trees": a hierarchy of contexts such as city region, time of day and supply-demand balance, where every node holds the same simple parametric model.

## 2026-03-24

- [TurboQuant: Redefining AI efficiency with extreme compression](https://swe.quest/articles/turboquant-redefining-ai-efficiency-with-extreme-compression-d5471afe1cc3ed09.md): Google Research · 2026-03-24 · Hard · 7 min read · Inference & serving, Vector search, LLMs, Algorithms
  TurboQuant is a data-oblivious vector quantization algorithm that removes the per-block quantization-constant overhead of traditional methods by combining PolarQuant (random rotation plus recursive polar-coordinate transforms with a fixed angle grid) and a 1-bit Quantized Johnson-Lindenstrauss residual stage that removes bias in inner-product estimates.

## 2026-03-23

- [Fast regex search: indexing text for agent tools · Cursor](https://swe.quest/articles/fast-regex-search-indexing-text-for-agent-tools-cursor-45908cf7bb0688f8.md): Cursor · 2026-03-23 · Medium · 20 min read · Search, Data structures, Algorithms, AI agents, Developer tools
  Agents lean heavily on regex search, and ripgrep's full scan can take over 15 seconds in large monorepos, so Cursor builds local indexes specifically to accelerate regex queries.

## 2026-03-13

- [Identifying Interactions at Scale for LLMs](https://swe.quest/articles/identifying-interactions-at-scale-for-llms-3793e2abaeb5d127.md): Berkeley AI Research · 2026-03-13 · Hard · 7 min read · AI safety, LLMs, Machine learning, Algorithms
  SPEX and ProxySPEX identify influential interactions in LLMs and other ML models by treating ablation-based attribution as a sparse recovery problem, using signal processing and coding theory to scale interaction discovery from dozens to thousands of components.

## 2026-02-24

- [Can you reverse engineer our neural network?](https://swe.quest/articles/can-you-reverse-engineer-our-neural-network-86a50d8d5fe35d5c.md): Jane Street Tech Blog · 2026-02-24 · Hard · 12 min read · Machine learning, AI safety, Cryptography, Algorithms
  A Jane Street ML puzzle shipped a fully specified, hand-built PyTorch network with integer weights that outputs 0 for almost every input, and the writeup follows one solver's path to cracking it.

## 2026-02-11

- [Scheduling in a changing world: Maximizing throughput with time-varying capacity](https://swe.quest/articles/scheduling-in-a-changing-world-maximizing-throughput-with-time-varying-capacity-d2823a7d4e628d27.md): Google Research · 2026-02-11 · Hard · 6 min read · Scheduling, Algorithms
  Non-preemptive scheduling under a time-varying capacity profile, where leftover capacity after high-priority tasks fluctuates, gets its first constant-factor approximation algorithms for throughput maximization.

## 2026-02-04

- [​Sequential Attention: Making AI models leaner and faster without sacrificing accuracy](https://swe.quest/articles/sequential-attention-making-ai-models-leaner-and-faster-without-sacrificing-65f934b916a51bd2.md): Google Research · 2026-02-04 · Hard · 7 min read · Machine learning, Algorithms, Inference & serving, Recommendations & ranking
  Sequential Attention is a greedy subset-selection algorithm that runs inside a single training run.

## 2026-01-23

- [Introducing GIST: The next stage in smart sampling](https://swe.quest/articles/introducing-gist-the-next-stage-in-smart-sampling-9551192912caeefa.md): Google Research · 2026-01-23 · Hard · 8 min read · Algorithms, Model training, Machine learning
  GIST (Greedy Independent Set Thresholding) selects training-data subsets that balance max-min diversity in embedding space against monotone submodular utility, with a provable guarantee of at least half the optimal value; reaching above 0.56 of optimal is proven NP-hard.

## 2026-01-14

- [Paper Announcement: A Practical Approach to Replenishment Optimization with Extended (R, s, Q) Policy and Probabilistic Models](https://swe.quest/articles/paper-announcement-a-practical-approach-to-replenishment-optimization-with-36b9876b4c2ccd90.md): Zalando Engineering · 2026-01-14 · Hard · 7 min read · E-commerce, Machine learning, Algorithms, Scientific computing
  Zalando's ZEOS replenishment engine combines LightGBM quantile demand forecasts, an extended (R, s, Q) policy with a kick-start quantity and lifecycle cutoff, and Monte Carlo discrete event simulation over a 12-week horizon.

## 2025-12-31

- [Solving the "Impossible" in ClickHouse: Advent of Code 2025](https://swe.quest/articles/solving-the-impossible-in-clickhouse-advent-of-code-2025-a7dba91c6e7476ad.md): ClickHouse · 2025-12-31 · Medium · 42 min read · SQL, Analytics & OLAP, Algorithms
  All 12 Advent of Code 2025 puzzles are solved in pure ClickHouse SQL, each as a single query that parses the raw input and computes both parts with no UDFs, temporary tables or preprocessing.

## 2025-11-26

- [Using Event Patterns in ClickStack to accelerate observability analysis](https://swe.quest/articles/using-event-patterns-in-clickstack-to-accelerate-observability-analysis-7a0fbc615de3ddd6.md): ClickHouse · 2025-11-26 · Medium · 9 min read · Observability, Analytics & OLAP, Algorithms
  ClickStack clusters logs and traces into event patterns at query time using the Drain3 template-mining algorithm, which runs in the browser via Pyodide (Python compiled to WebAssembly).

## 2025-11-05

- [Indexing sparse vectors with Turso](https://swe.quest/articles/indexing-sparse-vectors-with-turso-3c9fdb0f1a894948.md): Turso · 2025-11-05 · Hard · 8 min read · Vector search, SQLite, Query engines, Algorithms, Performance engineering
  Turso 0.3.0 adds a compact sparse vector representation (vector32\_sparse) that uses 5–50x less storage than dense vectors, plus an inverted index for nearest-neighbor search by weighted Jaccard distance.

## 2025-11-01

- [RL without TD learning](https://swe.quest/articles/rl-without-td-learning-c91c431c29fe374a.md): Berkeley AI Research · 2025-11-01 · Hard · 8 min read · Machine learning, Model training, Algorithms
  Transitive RL (TRL) is an off-policy, goal-conditioned RL algorithm that replaces temporal-difference bootstrapping with divide-and-conquer value learning.

## 2025-10-30

- [Improve logs compression with log clustering](https://swe.quest/articles/improve-logs-compression-with-log-clustering-6656d2f1ad6f9ec5.md): ClickHouse · 2025-10-30 · Medium · 16 min read · Observability, Analytics & OLAP, Data pipelines, Algorithms
  Drain3 log template mining, run inside ClickHouse as a Python executable UDF, can turn unstructured application logs into structured columnar data.

## 2025-10-06

- [Introducing OpenZL: An Open Source Format-Aware Compression Framework](https://swe.quest/articles/introducing-openzl-an-open-source-format-aware-compression-framework-dcfc575219bed4e0.md): Meta Engineering · 2025-10-06 · Medium · 11 min read · Algorithms, Performance engineering, Open source, Storage systems
  OpenZL is Meta's open source lossless compression framework for structured data.

## 2025-09-26

- [Implementing a Kalman Filter in Postgres to Smooth GPS Data](https://swe.quest/articles/implementing-a-kalman-filter-in-postgres-to-smooth-gps-data-fd49bdbe30ebf6c9.md): Neon · 2025-09-26 · Medium · 5 min read · PostgreSQL, Maps & geospatial, SQL, Algorithms, Performance engineering
  A Kalman Filter can run entirely inside Postgres to smooth noisy GPS tracks, with per-device state (estimate plus covariance matrix) kept in a devices table and a kalman\_step SQL function applying predict/update steps that can use HDOP or speed.

## 2025-09-24

- [Trace similarity systems on top of ClickHouse to analyze crash stack traces from our CI](https://swe.quest/articles/trace-similarity-systems-on-top-of-clickhouse-to-analyze-crash-stack-traces-c60df248c0d43431.md): ClickHouse · 2025-09-24 · Medium · 9 min read · Debugging, CI/CD, SQL, Algorithms, Testing
  ClickHouse built a crash-deduplication pipeline for its CI that groups similar stack traces from fuzzing, stress and functional tests using the TraceSim similarity method, implemented almost entirely in ClickHouse SQL.

## 2025-07-25

- [Parquet Content-Defined Chunking](https://swe.quest/articles/parquet-content-defined-chunking-87ef6600fb11e475.md): Hugging Face · 2025-07-25 · Medium · 16 min read · Storage systems, Data pipelines, Python, Algorithms
  Parquet Content-Defined Chunking, now available in PyArrow and Pandas via the use\_content\_defined\_chunking option, writes Parquet data pages so that small logical edits produce minimal byte-level differences.

## 2025-07-08

- [Efficient MultiModal Data Pipeline](https://swe.quest/articles/efficient-multimodal-data-pipeline-3f526635f068dafd.md): Hugging Face · 2025-07-08 · Medium · 9 min read · Model training, Data pipelines, Python, Algorithms, Performance engineering
  Data loading, not the model or hardware, was the bottleneck in nanoVLM training: naive pad-to-longest batching wasted roughly 60% of each batch on padding tokens.

## 2025-05-07

- [Linear programming for fun and profit](https://swe.quest/articles/linear-programming-for-fun-and-profit-77f85e06bfe14840.md): Modal · 2025-05-07 · Medium · 8 min read · Capacity planning, Cost optimization, Algorithms, Cloud platforms, Serverless
  Modal provisions GPU and CPU capacity across multiple clouds with a "resource solver" that formulates demand, prices, availability and per-instance limits as a linear program.

## 2025-03-22

- [Advent of Hardcaml](https://swe.quest/articles/advent-of-hardcaml-7a69fcd00d2b9f17.md): Jane Street Tech Blog · 2025-03-22 · Hard · 8 min read · Hardware, Functional programming, Algorithms
  Several Advent of Code 2024 puzzles were solved entirely on a small Lattice ECP5 FPGA (84K LUTs, 4 Mbits RAM) using Hardcaml, Jane Street's OCaml-embedded HDL, with the open-source Yosys + NextPNR toolchain.

## 2025-03-21

- [Dynamic Tree Improvements](https://swe.quest/articles/dynamic-tree-improvements-db8f5926a23bef4f.md): Box2D · 2025-03-21 · Hard · 3 min read · Data structures, Algorithms, Games, C & C++
  Box2D's dynamic tree inserts a new proxy using a greedy, single-descent heuristic that approximates minimizing the surface area heuristic (SAH) instead of doing an exhaustive search, since incremental insertion is inherently greedy anyway.

## 2025-02-25

- [Postgres as a Graph Database: (Ab)using pgRouting](https://swe.quest/articles/postgres-as-a-graph-database-ab-using-pgrouting-eceed2225b3c0da2.md): Supabase · 2025-02-25 · Medium · 8 min read · PostgreSQL, Algorithms, SQL, Recommendations & ranking
  The pgRouting extension, usually paired with PostGIS for geospatial shortest-path queries, can serve as a lightweight graph layer in Postgres instead of Apache AGE or Neo4j.

## 2024-12-10

- [LeMaterial: an open source initiative to accelerate materials discovery and research](https://swe.quest/articles/lematerial-an-open-source-initiative-to-accelerate-materials-discovery-and-2df2183afcbbdac0.md): Hugging Face · 2024-12-10 · Hard · 10 min read · Scientific computing, Machine learning, Data pipelines, Algorithms, Open source
  LeMat-Bulk unifies Materials Project, Alexandria and OQMD into a single Optimade-formatted dataset of 6.7M entries with 7 properties across PBE, PBESol and SCAN functionals, with subsets for calculation-compatible mixing and de-duplicated materials.

## 2024-11-20

- [From Files to Chunks: Improving HF Storage Efficiency](https://swe.quest/articles/from-files-to-chunks-improving-hf-storage-efficiency-389481ed0fa30735.md): Hugging Face · 2024-11-20 · Medium · 5 min read · Storage systems, Algorithms, Version control, Cost optimization
  Hugging Face's Xet team plans to replace file-level Git LFS storage with content-defined chunking (CDC), where a rolling hash over a sliding window sets variable-size chunk boundaries and chunks are deduplicated in a content-addressed store, so edits only upload and store changed chunks.

## 2024-11-18

- [Astra Dynamic Chunks: How We Saved by Redesigning a Key Part of Astra](https://swe.quest/articles/astra-dynamic-chunks-how-we-saved-by-redesigning-a-key-part-of-astra-2ad19dfa88650f39.md): Slack Engineering · 2024-11-18 · Medium · 6 min read · Search, Cost optimization, Storage systems, Algorithms, Deployment
  Slack's Astra log search engine replaced fixed-size chunk slots on cache nodes with dynamically sized chunks, because undersized chunks wasted allocated disk space and oversized chunks from recovery tasks could overflow their slots.
- [Rope Optimizations, Part 1](https://swe.quest/articles/rope-optimizations-part-1-32023b24da3832be.md): Zed · 2024-11-18 · Medium · 10 min read · Data structures, Performance engineering, Rust, Algorithms
  Zed's Rope, a SumTree of 128-byte chunks, sped up offset-to-point translation by storing u128 bitmasks per chunk marking newlines, char boundaries and UTF-16 widths, replacing a per-character loop.

## 2024-10-05

- [Improving Parquet Dedupe on Hugging Face Hub](https://swe.quest/articles/improving-parquet-dedupe-on-hugging-face-hub-fceac01ac834bf66.md): Hugging Face · 2024-10-05 · Medium · 5 min read · Storage systems, Analytics & OLAP, Data pipelines, Algorithms
  Byte-level content-defined chunking dedupes Parquet appends almost perfectly: 10,000 appended rows give 99.1% dedupe and need about 20MB of new storage.

## 2024-09-30

- [Converting Vertex-Colored Meshes to Textured Meshes](https://swe.quest/articles/converting-vertex-colored-meshes-to-textured-meshes-e5f0aa9b3b8941f1.md): Hugging Face · 2024-09-30 · Medium · 6 min read · Python, Computer vision, Algorithms
  Vertex-colored meshes, as produced by generative 3D models like InstantMesh, can be converted to UV-mapped textured meshes by generating a UV atlas with xatlas, rasterizing each face into an upscaled texture buffer via point-in-triangle tests and barycentric color interpolation, then cleaning holes with OpenCV inpainting, median filtering, Gaussian blur and LANCZOS downsampling.

## 2024-09-16

- [Ensuring Even Ad Spend on the Zalando Homepage: How Our New Bidding Algorithm Maximizes Value for Advertisers and Shoppers](https://swe.quest/articles/ensuring-even-ad-spend-on-the-zalando-homepage-how-our-new-bidding-algorithm-bfbd38b714353cd8.md): Zalando Engineering · 2024-09-16 · Medium · 5 min read · Ads, Algorithms, E-commerce
  Zalando Marketing Services replaced its homepage ad bidding formula with a feedback-controlled pacing strategy that scales each bid by (1 − spent)/(1 − expected even spend), splitting budget into hourly buckets based on traffic forecasts.

## 2024-09-05

- [Dynamically estimating and scaling Postgres’ working set size](https://swe.quest/articles/dynamically-estimating-and-scaling-postgres-working-set-size-9625ea29ef0bf2ef.md): Neon · 2024-09-05 · Medium · 12 min read · PostgreSQL, Algorithms, Capacity planning, Caching, Serverless
  Neon autoscales Postgres compute to keep the workload's working set in memory, using a modified HyperLogLog whose register bits are replaced with timestamps so the number of distinct pages accessed can be estimated for any lookback window.

## 2024-08-19

- [SIMD Matters](https://swe.quest/articles/simd-matters-f3febffdc470bd02.md): Box2D · 2024-08-19 · Hard · 8 min read · Performance engineering, Games, Algorithms, C & C++, Hardware
  Box2D 3.0 solves contact constraints with SIMD by using greedy graph coloring to group constraints so no body appears twice within a color.

## 2024-07-26

- [Approximate nearest neighbor search with DiskANN in libSQL](https://swe.quest/articles/approximate-nearest-neighbor-search-with-diskann-in-libsql-f704916b9c7db474.md): Turso · 2024-07-26 · Medium · 7 min read · Vector search, SQLite, Storage engines, Algorithms
  libSQL implements approximate nearest neighbor search using LM-DiskANN, a low-memory variant of DiskANN.

## 2024-03-26

- [Building a Text Editor in the Times of AI](https://swe.quest/articles/building-a-text-editor-in-the-times-of-ai-5830d5c3aedf2a31.md): Zed · 2024-03-26 · Easy · 31 min read · AI for coding, Developer tools, LLMs, Algorithms
  Zed's co-founders Nathan, Max and Antonio describe how they use AI for programming.

## 2024-02-13

- [ClickHouse Release 24.1](https://swe.quest/articles/clickhouse-release-24-1-4e8992d985c7e74d.md): ClickHouse · 2024-02-13 · Medium · 14 min read · Analytics & OLAP, SQL, Algorithms
  ClickHouse 24.1 ships 26 features, 22 performance optimisations and 47 bug fixes.

## 2023-12-05

- [ANN Vector Search with SQL-powered LSH & Random Projections](https://swe.quest/articles/ann-vector-search-with-sql-powered-lsh-random-projections-ab84d00f3cdada4d.md): ClickHouse · 2023-12-05 · Medium · 29 min read · Vector search, Analytics & OLAP, SQL, Algorithms
  Approximate nearest neighbor search can be built in pure ClickHouse SQL using locality-sensitive hashing with random projections.

## 2023-09-18

- [Introduction to 3D Gaussian Splatting](https://swe.quest/articles/introduction-to-3d-gaussian-splatting-4bae5755704fcc0e.md): Hugging Face · 2023-09-18 · Medium · 6 min read · Computer vision, Machine learning, Algorithms
  3D Gaussian Splatting renders photorealistic scenes in real time by rasterizing millions of gaussians, each with a position, covariance, color and alpha, instead of triangles.

## 2023-09-06

- [pgvector v0.5.0: Faster semantic search with HNSW indexes](https://swe.quest/articles/pgvector-v0-5-0-faster-semantic-search-with-hnsw-indexes-d1e5c38ac44f551e.md): Supabase · 2023-09-06 · Medium · 6 min read · Vector search, PostgreSQL, Performance engineering, Algorithms
  pgvector v0.5.0 adds HNSW indexes, which combine skip-list-style layering with navigable small world proximity graphs to do approximate nearest-neighbor search over embeddings.

## 2023-05-16

- [Large-scale Near-deduplication Behind BigCode](https://swe.quest/articles/large-scale-near-deduplication-behind-bigcode-db7192844c316bd2.md): Hugging Face · 2023-05-16 · Medium · 18 min read · Data pipelines, Model training, Algorithms, LLMs
  BigCode deduplicates massive code and text corpora for LLM training with MinHash plus locality-sensitive hashing: word n-gram shingles, permuted-hash fingerprints, banding into LSH buckets, then clustering candidate pairs into connected components.

## 2023-04-12

- [Speeding up LZ4 in ClickHouse](https://swe.quest/articles/speeding-up-lz4-in-clickhouse-dbbd26281ee7c0df.md): ClickHouse · 2023-04-12 · Hard · 32 min read · Performance engineering, Storage engines, C & C++, Algorithms, Analytics & OLAP
  LZ4 decompression often tops ClickHouse query profiles because highly compressible, cached columnar data shifts the cost onto CPU, yet storing data uncompressed proved impractical due to disk space.

## 2023-02-16

- [Five Methods For Database Obfuscation](https://swe.quest/articles/five-methods-for-database-obfuscation-477824be1d934bc1.md): ClickHouse · 2023-02-16 · Hard · 23 min read · Analytics & OLAP, Privacy, Performance engineering, Testing, Algorithms
  ClickHouse needed publishable benchmark data that kept the properties driving analytical query performance in its private web analytics dataset: compression ratio, per-column and cross-column cardinality, and value distributions such as power laws.

## 2023-01-31

- [Performance improvements in the Datadog Agent metrics pipeline](https://swe.quest/articles/performance-improvements-in-the-datadog-agent-metrics-pipeline-2d01cccf9e289314.md): Datadog Engineering · 2023-01-31 · Medium · 11 min read · Performance engineering, Go, Observability, Algorithms
  Profiling the Go-based Datadog Agent under heavy DogStatsD load showed that computing a unique context key per metric, especially sorting and deduplicating tags, dominated CPU.

## 2023-01-03

- [Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics](https://swe.quest/articles/monte-carlo-simulations-separating-signal-from-noise-in-sampled-success-metrics-7237ecec15008958.md): Shopify Engineering · 2023-01-03 · Medium · 11 min read · Analytics & OLAP, Python, Algorithms
  A Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example.
- [Introduction to Graph Machine Learning](https://swe.quest/articles/introduction-to-graph-machine-learning-67c6459102a9edc7.md): Hugging Face · 2023-01-03 · Easy · 13 min read · Machine learning, Algorithms
  Graphs (nodes linked by edges) underpin tasks from molecule generation to recommendation, and learning on them requires permutation-invariant/equivariant models because shuffling an adjacency matrix or edge list yields the same graph.

## 2022-12-07

- [Time Travel with Serverless Postgres](https://swe.quest/articles/time-travel-with-serverless-postgres-ce3e12c8b6286e70.md): Neon · 2022-12-07 · Medium · 9 min read · PostgreSQL, Serverless, Databases, Algorithms
  Neon's copy-on-write database branching can recover from accidental data loss by creating branches at a past point in time or at a specific Postgres WAL Log Sequence Number (LSN).
- [Accelerating zk-SNARKs - MSM and NTT algorithms on FPGAs with Hardcaml](https://swe.quest/articles/accelerating-zk-snarks-msm-and-ntt-algorithms-on-fpgas-with-hardcaml-e0e40be298934874.md): Jane Street Tech Blog · 2022-12-07 · Hard · 8 min read · Hardware, Cryptography, Algorithms, Performance engineering, Functional programming
  A Hardcaml-built FPGA implementation of Pippenger's algorithm for multi-scalar multiplication on the BLS12-377 curve won first place in the ZPrize MSM track, computing a 2^26-point MSM in about 5.08s on an AWS f1.2xlarge at 52W.

## 2022-12-01

- [How CRDTs make multiplayer text editing part of Zed's DNA](https://swe.quest/articles/how-crdts-make-multiplayer-text-editing-part-of-zed-s-dna-b0f0df37585dbddf.md): Zed · 2022-12-01 · Medium · 12 min read · Local-first & sync, Real-time systems, Consistency models, Algorithms, Rust
  Zed builds collaborative editing into its core using CRDTs rather than Operational Transformation, making concurrent edits commutative by addressing text through stable logical anchors (insertion id plus offset) instead of absolute offsets.

## 2022-11-17

- [Computations that differentiate, debug, and document themselves](https://swe.quest/articles/computations-that-differentiate-debug-and-document-themselves-027e0f3894353813.md): Jane Street Tech Blog · 2022-11-17 · Medium · 14 min read · Functional programming, Algorithms, Testing, Debugging
  Jane Street's OCaml library Gradient\_calculator represents numerical cost computations (margin, financing, capital) as expression trees, so one definition can be evaluated, automatically differentiated, debugged and documented.

## 2022-10-19

- [Finding Relationships Between Ruby’s Top 100 Packages and Their Dependencies](https://swe.quest/articles/finding-relationships-between-ruby-s-top-100-packages-and-their-dependencies-e53722c1985f09a2.md): Shopify Engineering · 2022-10-19 · Medium · 9 min read · Supply chain security, Ruby, Identity & auth, Algorithms
  RubyGems' MFA requirement for gems over 180M downloads leaves a loophole: some big gems depend on small gems below the threshold, so compromising a small gem's owner account reaches big gems' users.

## 2022-10-06

- [Behind the feature: Find and replace](https://swe.quest/articles/behind-the-feature-find-and-replace-2ebc376de57a3841.md): Figma · 2022-10-06 · Easy · 9 min read · Product engineering, Search, Algorithms
  Find and replace in Figma and FigJam turned out to be far harder than a search bar because canvas content is multi-directional, so result ordering had to be designed rather than inherited.

## 2022-08-19

- [Technology Deep Dive: Building a Faster ORAM Layer for Enclaves](https://swe.quest/articles/technology-deep-dive-building-a-faster-oram-layer-for-enclaves-6cb958aaa2507db9.md): Signal · 2022-08-19 · Medium · 16 min read · Privacy, Cryptography, Sandboxing & isolation, Algorithms, Communications
  Signal replaced linear-scan oblivious memory access in its SGX enclaves with a Path ORAM layer, so contact discovery can run efficient algorithms like binary search without leaking which phone numbers are looked up through RAM access patterns.

## 2022-08-05

- [Proximal Policy Optimization (PPO)](https://swe.quest/articles/proximal-policy-optimization-ppo-c85a21363ebb9f11.md): Hugging Face · 2022-08-05 · Hard · 10 min read · Model training, Machine learning, Algorithms
  Proximal Policy Optimization stabilizes policy-gradient training by limiting how far each update moves the policy.

## 2022-08-02

- [Nyströmformer: Approximating self-attention in linear time and memory via the Nyström method](https://swe.quest/articles/nystromformer-approximating-self-attention-in-linear-time-and-memory-via-the-fd6613fb9ac42d67.md): Hugging Face · 2022-08-02 · Hard · 6 min read · LLMs, Machine learning, Algorithms, Python
  Nyströmformer replaces quadratic softmax self-attention with an O(n) approximation built on the Nyström method, which reconstructs a matrix from a sampled subset of its rows and columns via a Moore-Penrose pseudoinverse.

## 2022-07-22

- [Advantage Actor Critic (A2C)](https://swe.quest/articles/advantage-actor-critic-a2c-5b4f17254e3ab304.md): Hugging Face · 2022-07-22 · Medium · 7 min read · Machine learning, Model training, Algorithms
  Actor-Critic methods reduce the high variance of Monte-Carlo policy-gradient estimates in Reinforce by pairing a policy network (Actor) with a value network (Critic) that scores the actions taken.

## 2022-05-20

- [An Introduction to Q-Learning Part 2/2](https://swe.quest/articles/an-introduction-to-q-learning-part-2-2-2282a7e5e80bee59.md): Hugging Face · 2022-05-20 · Medium · 9 min read · Machine learning, Model training, Algorithms
  Q-Learning is an off-policy, value-based reinforcement learning algorithm that uses temporal-difference updates to train a Q-table of state-action values, from which the optimal policy follows directly.

## 2022-05-18

- [An Introduction to Q-Learning Part 1](https://swe.quest/articles/an-introduction-to-q-learning-part-1-02c8621463858d6d.md): Hugging Face · 2022-05-18 · Medium · 13 min read · Machine learning, Model training, Algorithms
  Value-based reinforcement learning methods learn a state-value or action-value function and derive the policy from it, typically a greedy or epsilon-greedy policy, rather than training the policy directly.

## 2021-10-12

- [Tuning Image Classifiers using Human-In-The-Loop](https://swe.quest/articles/tuning-image-classifiers-using-human-in-the-loop-f1e427f4f784a749.md): Zalando Engineering · 2021-10-12 · Hard · 18 min read · Computer vision, Machine learning, Evaluation, Algorithms, E-commerce
  AutoThreshold is an Expectation-Maximization procedure that re-tunes an image classifier's class-confidence threshold when product photos drift out of distribution and no labelled validation set exists.

## 2021-09-13

- [Superpack: Pushing the limits of compression in Facebook’s mobile apps](https://swe.quest/articles/superpack-pushing-the-limits-of-compression-in-facebook-s-mobile-apps-cb66a7a2bfc6bd02.md): Meta Engineering · 2021-09-13 · Hard · 13 min read · Compilers, Algorithms, Mobile, Functional programming
  Superpack is Meta's asymmetric compressor that combines compiler analysis with data compression, cutting Android app size by over 20% on average versus default Zip compression for apps like Facebook, Instagram, WhatsApp and Messenger.

## 2021-07-29

- [A linear programming approach for optimizing features in ML models](https://swe.quest/articles/a-linear-programming-approach-for-optimizing-features-in-ml-models-4a887cc3d592174d.md): Meta Engineering · 2021-07-29 · Medium · 8 min read · Machine learning, Capacity planning, Algorithms, Python, Ads
  Choosing which ML features to admit under limited infrastructure capacity can be framed as an integer linear program that maximizes model gain subject to per-service capacity constraints.

## 2021-07-09

- [Ribbon filter: Practically smaller than Bloom and Xor](https://swe.quest/articles/ribbon-filter-practically-smaller-than-bloom-and-xor-22be170304982d25.md): Meta Engineering · 2021-07-09 · Hard · 3 min read · Data structures, Algorithms, Storage engines
  Ribbon filters are a static (immutable) alternative to Bloom filters that save roughly a third of memory, with space overhead as low as 1 percent above the information-theoretic bound versus Bloom's roughly 50 percent, while keeping O(1) queries.

## 2021-06-15

- [Network hose: Managing uncertain network demand with model simplicity](https://swe.quest/articles/network-hose-managing-uncertain-network-demand-with-model-simplicity-31704bd2f44dbf3d.md): Meta Engineering · 2021-06-15 · Hard · 7 min read · Networking, Capacity planning, Datacenters, Algorithms
  Meta plans its backbone network capacity against per-data-center aggregate ingress/egress forecasts (the "network hose") instead of a pairwise traffic matrix.

[Next page](https://swe.quest/tags/algorithms.md?per=96&page=2)

Same list as RSS: [https://swe.quest/feed.xml?tag=algorithms](https://swe.quest/feed.xml?tag=algorithms). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
