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

# Algorithms (medium)

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–24 of 49, page 1 of 3, newest first.

## 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-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-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-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-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-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-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.

## 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-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-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.

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

Same list as RSS: [https://swe.quest/feed.xml?difficulty=medium&tag=algorithms](https://swe.quest/feed.xml?difficulty=medium&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)
