---
title: "#datastructures articles | Hashnode"
description: "Explore 51 articles tagged #datastructures on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/datastructures"
---

Tag

# #datastructures

51 posts · 8 followers

[ZyVOP](https://hashnode.com/@zyvop) · [Oct 31](https://hashnode.com/posts/data-structures-for-ai-engineers-arrays-hash-maps-trees-graphs-and-heaps-6kpk6/6ae5c7eb72eaef40c91ac127)

### [Data Structures for AI Engineers: Arrays, Hash Maps, Trees, Graphs, and Heaps](https://blog.zyvop.com/data-structures-for-ai-engineers-arrays-hash-maps-trees-graphs-and-heaps-6kpk6?utm_source=hashnode&utm_medium=feed)

A practical tour of arrays, hash maps, stacks, queues, trees, heaps, and graphs in Python, and where each one quietly shows up in AI tools, from top-k search to agent workflows.

21 min read · [blog.zyvop.com](https://blog.zyvop.com/data-structures-for-ai-engineers-arrays-hash-maps-trees-graphs-and-heaps-6kpk6?utm_source=hashnode&utm_medium=feed)

[ZyVOP](https://hashnode.com/@zyvop) · [Oct 21](https://hashnode.com/posts/built-in-data-structures-lists-dicts-sets-and-tuples-t1yim/6ad8594019ac89ec36c1b1f6)

### [Built-in Data Structures: Lists, Dicts, Sets, and Tuples](https://blog.zyvop.com/built-in-data-structures-lists-dicts-sets-and-tuples-t1yim?utm_source=hashnode&utm_medium=feed)

Learn when to use lists, dictionaries, tuples, and sets in Python, why some are thousands of times faster than others, and how to avoid a classic copying bug.

10 min read · [blog.zyvop.com](https://blog.zyvop.com/built-in-data-structures-lists-dicts-sets-and-tuples-t1yim?utm_source=hashnode&utm_medium=feed)

[Doogal Simpson](https://hashnode.com/@doogal) · [Oct 8](https://hashnode.com/posts/java-lru-cache-linkedhashmap/6ac7807e57676462df96b4b7)

### [How to Build a Java LRU Cache in 5 Lines](https://doogal.dev/java-lru-cache-linkedhashmap?utm_source=hashnode&utm_medium=feed)

Build an O(1) LRU cache in Java using LinkedHashMap in just 5 lines of code. Learn how it works, its complexity, and how to handle thread safety.

5 min read · [doogal.dev](https://doogal.dev/java-lru-cache-linkedhashmap?utm_source=hashnode&utm_medium=feed)

[Doogal Simpson](https://hashnode.com/@doogal) · [Oct 5](https://hashnode.com/posts/how-java-hashmap-prevents-hash-collision-dos/6ac3c87b4bf2dc0b3ea2ba1a)

### [How Java HashMap Prevents Hash Collision DoS Attacks](https://doogal.dev/how-java-hashmap-prevents-hash-collision-dos?utm_source=hashnode&utm_medium=feed)

Learn how Java's HashMap mitigates Hash Collision DoS attacks using treeification to reduce lookup complexity from O(N) to O(log N).

5 min read · [doogal.dev](https://doogal.dev/how-java-hashmap-prevents-hash-collision-dos?utm_source=hashnode&utm_medium=feed)

[Doogal Simpson](https://hashnode.com/@doogal) · [Oct 3](https://hashnode.com/posts/how-structural-sharing-makes-immutability-fast/6ac0c659694de8e645b1714e)

### [How Structural Sharing Makes Immutability Fast](https://doogal.dev/how-structural-sharing-makes-immutability-fast?utm_source=hashnode&utm_medium=feed)

Discover how 32-way bitmapped vector tries and structural sharing allow fast, memory-efficient updates to immutable lists without copying entire arrays.

5 min read · [doogal.dev](https://doogal.dev/how-structural-sharing-makes-immutability-fast?utm_source=hashnode&utm_medium=feed)

[ZyVOP](https://hashnode.com/@zyvop) · [Sep 27](https://hashnode.com/posts/big-o-notation-explained-the-regex-that-took-down-cloudflare-for-27-minutes/6ab8e5f127e2fea745c72b0c)

### [Big-O Notation Explained: The Regex That Took Down Cloudflare for 27 Minutes](https://blog.zyvop.com/big-o-notation-explained-the-regex-that-took-down-cloudflare-for-27-minutes?utm_source=hashnode&utm_medium=feed)

Day 1 of the DSA Mastery Series — the concept every post after this one leans on

11 min read · [blog.zyvop.com](https://blog.zyvop.com/big-o-notation-explained-the-regex-that-took-down-cloudflare-for-27-minutes?utm_source=hashnode&utm_medium=feed)

[ZyVOP](https://hashnode.com/@zyvop) · [Sep 27](https://hashnode.com/posts/arrays-explained-from-memory-to-big-o-with-real-benchmarks/6ab8e50cba6c1865ecc49b75)

### [Arrays Explained from Memory to Big O (With Real Benchmarks)](https://blog.zyvop.com/arrays-explained-from-memory-to-big-o-with-real-benchmarks?utm_source=hashnode&utm_medium=feed)

Arrays, memory, and the real cost of insert and delete — the loop that quietly keeps what it was told to remove

10 min read · [blog.zyvop.com](https://blog.zyvop.com/arrays-explained-from-memory-to-big-o-with-real-benchmarks?utm_source=hashnode&utm_medium=feed)

[ZyVOP](https://hashnode.com/@zyvop) · [Sep 23](https://hashnode.com/posts/bloom-filters-the-data-structure-thats-allowed-to-lie-a-little/6ab3608146e34958c56cca8b)

### [Bloom Filters: The Data Structure That's Allowed to Lie (A Little)](https://blog.zyvop.com/bloom-filters-the-data-structure-thats-allowed-to-lie-a-little?utm_source=hashnode&utm_medium=feed)

A data structure that says 'definitely not' with total certainty, and 'probably yes' with a small, precisely measurable error rate.

6 min read · [blog.zyvop.com](https://blog.zyvop.com/bloom-filters-the-data-structure-thats-allowed-to-lie-a-little?utm_source=hashnode&utm_medium=feed)

[Doogal Simpson](https://hashnode.com/@doogal) · [Sep 20](https://hashnode.com/posts/how-gap-buffers-optimize-text-editors/6ab05214c9fd02e785d1447c)

### [How Gap Buffers Optimize Text Editor Performance](https://doogal.dev/how-gap-buffers-optimize-text-editors?utm_source=hashnode&utm_medium=feed)

Discover how gap buffers optimize text editors by turning expensive O(N) array shifts into fast O(1) memory writes exactly where the user types.

5 min read · [doogal.dev](https://doogal.dev/how-gap-buffers-optimize-text-editors?utm_source=hashnode&utm_medium=feed)

[Doogal Simpson](https://hashnode.com/@doogal) · [Sep 19](https://hashnode.com/posts/how-ring-buffers-work-circular-queues/6aae7b1a8847b0aacb8f9907)

### [How Ring Buffers Work: Low-Latency Circular Queues](https://doogal.dev/how-ring-buffers-work-circular-queues?utm_source=hashnode&utm_medium=feed)

Learn how ring buffers enable low-latency media streaming. Explore O(1) operations, modulo pointer wrapping, memory efficiency, and lock-free concurrency.

5 min read · [doogal.dev](https://doogal.dev/how-ring-buffers-work-circular-queues?utm_source=hashnode&utm_medium=feed)
