arthrop0d

Brief articles on varied topics.

algorithms

30 articles tagged algorithms.

  1. Go Map Buckets, Tophash, and Incremental Growth

    How Go maps use bucket arrays, one-byte tophash metadata, overflow buckets, and incremental evacuation to grow without stopping lookups.

    golangalgorithmsperformance

  2. Merkle Proofs and Root Hash Verification

    Learn how sibling hashes let a verifier prove one item belongs to a committed dataset without receiving every other item.

    cryptocurrencyalgorithmscryptography

  3. Consistent Hashing Rings and Virtual Nodes

    How a hash ring and virtual nodes assign keys to servers while limiting the data remapped when the server set changes.

    algorithmsdistributed systems

  4. Bloom Filters in Database Read Paths

    Bloom filters use hashed bits to reject impossible database lookups cheaply, accepting occasional extra reads when the answer is uncertain.

    databasesalgorithms

  5. Prometheus Histograms and Quantile Estimation

    Learn how Prometheus histogram buckets encode latency, how quantiles are estimated, and why bucket boundaries can change the result.

    observabilityalgorithms

  6. Git Packfiles, Delta Chains, and Repacks

    How Git packs loose objects, reconstructs deltified versions, and repacks them to reduce storage and improve repository performance.

    gitalgorithms

  7. Consistent Hashing, Hash Rings, and Virtual Nodes

    Consistent hashing assigns keys around a ring so adding or removing servers remaps only a small portion of the keyspace.

    algorithmsdistributed systems

  8. How HyperLogLog Estimates Distinct Values

    HyperLogLog estimates cardinality with compact hash-derived registers, using statistical averaging and bias corrections to stay accurate at scale.

    algorithmsmathematicsperformance

  9. LSM-Trees, Memtables, SSTables, and Compaction

    Understand how LSM-trees turn writes into sorted files, serve reads across them, and use compaction to control file count and storage growth.

    databasesalgorithms

  10. Property-Based Testing and Shrinking

    Learn how property-based testing generates structured inputs and shrinks failures into small, reproducible counterexamples.

    testingalgorithms

  11. Git Packfiles and Delta Compression

    How Git packs objects, resolves delta chains, and uses garbage collection and repacking to balance repository size against read and write speed.

    gitalgorithms

  12. How Compiler Register Allocation Uses Interference and Spilling

    Register allocation assigns live intermediate values to CPU registers, building interference constraints and spilling selected values to memory when registers run out.

    compilersalgorithmsperformance

  13. TCP Slow Start and Congestion Avoidance

    How TCP grows its sending rate, reacts to acknowledgements and loss, and discovers how much capacity a network path can support.

    networkingalgorithms

  14. Consistent Hashing and Virtual Nodes

    See how a hash ring assigns keys to members, and why membership changes remap only a small, predictable portion of the data.

    algorithmsdistributed systems

  15. Bloom Filters: Bit Arrays, Hash Probes, and False Positives

    Learn how Bloom filters use hashed bit positions for cheap membership checks, and why sizing and probe count control false positives.

    algorithms

  16. How Work-Stealing Deques Reduce Scheduler Contention

    A work-stealing deque gives each worker fast local task operations while letting idle workers take tasks from the opposite end.

    concurrencyalgorithms

  17. Raft Leader Election and Majority Voting

    How Raft uses terms, randomized timeouts, and majority votes to elect one leader and keep conflicting log entries from being committed.

    distributed systemsalgorithms

  18. TCP Retransmission Timeout Estimation

    How TCP combines measured round-trip time and its variability to choose a timeout that avoids duplicate retransmissions and slow loss recovery.

    networkingalgorithms

  19. Hybrid Logical Clocks

    How hybrid logical clocks combine wall-clock readings and counters to preserve causality across distributed systems despite clock skew.

    distributed systemsalgorithms

  20. Skip Lists and Expected Logarithmic Index Operations

    Layered linked lists let skip lists search, insert, and delete ordered data in expected logarithmic time through randomized node heights.

    algorithmsdatabases

  21. Git Packfiles and Delta Compression

    How Git packfiles combine objects, store deltas and chains, and change repository size and lookup behavior during repacking.

    gitalgorithms

  22. Consistent Hashing Rings and Virtual Nodes

    Learn how hash rings and virtual nodes assign cache keys so adding or removing a host remaps only a fraction of the keyspace.

    distributed systemsalgorithms

  23. Property-Based Testing Shrinkers

    How a property-based test turns a complex generated failure into a smaller counterexample while checking that each reduction still fails.

    testingalgorithms

  24. Static Single-Assignment Form and Phi Nodes

    SSA gives each intermediate value one definition, while φ-nodes merge values from different control-flow paths for simpler data-flow optimization.

    compilersalgorithms

  25. How Raft Leader Elections Work

    Raft uses numbered terms, randomized timeouts, majority votes, and log checks to elect one safe leader and recover from split votes.

    distributed systemsalgorithms

  26. Bloom Filters and Probabilistic Set Membership

    Learn how Bloom filters use a bit array and multiple hashes to save memory while allowing false positives but not false negatives.

    mathematicsalgorithmscomputer science

  27. Consistent Hashing on a Ring

    How consistent hashing assigns keys around a ring, uses virtual nodes to balance load, and limits key movement during membership changes.

    distributed systemsalgorithms

  28. Speculative Decoding with Draft and Target Models

    How a small model proposes token sequences for a large model to verify, reducing generation latency while preserving the large model’s distribution.

    artificial intelligencealgorithms

  29. Database B-Tree Page Splits and Separator Keys

    How B-tree pages split at capacity, propagate separator keys, and preserve fast, logarithmic index lookups.

    databasesalgorithms

  30. Property-Based Testing and Shrinking Counterexamples

    Learn how property-based testing generates varied inputs, detects invariant violations, and shrinks failures into small reproducible counterexamples.

    testingalgorithms

← All tags