Applied Data Structures: Blockchain, Digital Currency, and Beyond

Foundations of Data Structures in Real-World Systems

Introduction

So far in COP3530 you have studied hash tables, trees, and graphs mostly as isolated topics: how each one is built, how it performs, and how to implement it. This topic shifts the perspective. Real systems rarely use a single structure in isolation — they layer and combine them. A database might use a hash index for point lookups, a B-tree for range queries, and a log-structured file for durable writes, all inside one engine. A blockchain combines a linked list, cryptographic hashing, and a Merkle tree. A social platform stores relationships as a graph while using hash tables to find a user's record in constant time.

The subtopics here build that layered view. Hash tables are the lookup foundation: constant-average-time access keyed by a value you compute rather than search for. Trees are hierarchical organizers: they keep data sorted, support ranges and prefixes, and summarize subtrees. Graphs model relationships that have no natural hierarchy — friendships, transactions, routes, dependencies. Composition is where these meet, and the conceptual framework is the habit of asking, for any system: what operations must be fast, what structure makes them fast, and what does that choice cost?

As you watch, resist the urge to just collect names of structures. For each one mentioned, ask three questions: what operation is it optimizing, what does it give up in exchange, and what would break if you swapped in a different structure? Jot down any case where two structures are used together — those composition examples are exactly what you will be asked to analyze and design later in this module.

Video 1: 10 Key Data Structures We Use Every Day

ByteByteGo · 8:43 · 451,701 views · 3y ago · captions — Watch on YouTube

About this video

A fast, animated tour of data structures that appear in systems people use daily, connecting each structure to a concrete application rather than to abstract operations. Based on its title and ByteByteGo's system-design focus, expect coverage of structures such as lists, hash tables, trees, heaps, and graphs, each paired with a real product or service where it does the work. The format is survey-style breadth rather than deep implementation detail.

Why this video

It is the natural opening piece for this topic because it establishes the core framing — these structures are infrastructure, not just coursework — and touches hash tables, trees, and graphs within a single coherent narrative. ByteByteGo is a well-regarded system-design channel whose explanations are known for accuracy and clean visuals.

Video 2: L-6.1: What is hashing with example | Hashing in data structure

Gate Smashers · 5:53 · 2,565,047 views · 5y ago · captions — Watch on YouTube

About this video

A focused lecture on what hashing actually means in a data structures context, working from a worked example rather than from formal definitions alone. Expect treatment of the hash function, mapping keys to table indices, and why this gives fast direct access compared to searching. As an introductory lecture in a numbered series, it is likely to set up collision handling as the follow-on problem.

Why this video

This is the dedicated treatment for the Hash Tables as Lookup Foundations subtopic, and the example-driven approach is useful if your mental model of hashing is still fuzzy before the module moves on to cryptographic hash functions. Gate Smashers is a widely used exam-preparation channel known for short, methodical blackboard-style explanations.

Video 3: 8 Key Data Structures That Power Modern Databases

ByteByteGo · 4:34 · 239,237 views · 3y ago · captions — Watch on YouTube

About this video

A short overview of the data structures that database engines rely on internally, likely covering structures such as B-trees, LSM trees, hash indexes, and related variants, with attention to what each is good at. Being a database-focused piece, it should connect structural choices to operational behavior — reads versus writes, point lookups versus range scans. The emphasis is on why a given engine picks one structure over another.

Why this video

This video is the clearest illustration of the Composition of Structures in Practice and Conceptual Framework subtopics: a database is a single system that deliberately combines several structures and accepts trade-offs for each. It gives you a concrete, analyzable example of the kind of structural reasoning you will later apply to a blockchain or digital currency platform.

How These Videos Support the Learning Outcomes

These three videos supply the shared vocabulary and analytical habits the rest of the module depends on. The hashing lecture grounds the hash-function concept that MO1 extends into cryptographic hashing and Merkle trees, while the ByteByteGo survey reinforces trees and graphs as everyday system components — the starting point for the graph representation and traversal work in MO2 and MO3. The database video models MO4 directly: it shows how to look at a real system, name the structures inside it, and explain the trade-offs behind each choice. Together they build the composition mindset MO5 asks you to demonstrate, where a solution is assembled from several structures and each selection is justified against stated performance requirements rather than chosen by default.

About These Videos

These videos were chosen from YouTube on October 2, 2026. Each has captions; the player turns them on. Videos on YouTube can be changed or removed — if one no longer plays, tell your instructor. If a player does not appear, use its Watch on YouTube link.

Blockchain Architecture and Data Structures

Introduction

A blockchain is, at its core, a data structures problem. Strip away the economics and the hype and what remains is a singly linked list whose "pointers" are cryptographic hash digests rather than memory addresses, with each node (a block) carrying a tree of transactions summarized by a Merkle root. The structural choices are what produce the properties people care about: because every block header contains the hash of the previous header, altering any historical transaction changes that block's hash, which invalidates every link downstream. Immutability here is not a policy or a promise — it is a consequence of how the structure is wired together.

In this course, blockchain serves as a case study in composition. You have already studied linked lists, hash functions and hash tables, and binary trees in isolation; here you see them stacked so that each one does a specific job. Hashing provides a fixed-size fingerprint and collision resistance. The Merkle tree lets a verifier confirm that a single transaction belongs to a block using only O(log n) sibling hashes instead of downloading the whole block. The block header bundles the metadata (previous hash, Merkle root, timestamp, nonce, difficulty) that makes validation cheap. Distribution and consensus then decide which chain the network accepts when two valid chains exist.

As you watch the videos below, keep a running list of questions: Which structure is being used, what operation does it make fast, and what does it cost? Where does a hash act as an identifier versus as an integrity check? How does a Merkle proof differ from re-hashing an entire block? Note that these videos come from industry and educational channels rather than an algorithms course, so you may need to translate their vocabulary back into the data structures terms we use in lecture.

Video 1: What is Blockchain Layer 0, 1, 2, 3 Explained | Layers of Blockchain Architecture

Learn with Whiteboard · 11:01 · 64,392 views · 4y ago · captions — Watch on YouTube

About this video

This video walks through the layered view of blockchain systems — Layer 0 (the underlying network and interoperability infrastructure), Layer 1 (the base chain where blocks, consensus, and the ledger live), Layer 2 (scaling solutions built on top), and Layer 3 (applications). Based on its title and description, it is a whiteboard-style conceptual overview rather than a code walkthrough, and it situates the block-and-chain data structure within the larger system that surrounds it.

Why this video

It gives you the vocabulary and system context needed before drilling into structures, and it makes clear that the distributed ledger and consensus mechanism are properties of a specific layer rather than of the chain structure itself — directly supporting the "Distributed Ledger and the Role of Consensus" subtopic.

Video 2: What Is a Blockchain Hash?

Chainlink · 4:29 · 7,621 views · 4y ago · captions — Watch on YouTube

About this video

A short, focused explanation of what a hash is in a blockchain context, aimed at people learning blockchain development and smart contracts. Expect coverage of what a hash function does, the properties that make it useful (deterministic output, fixed length, infeasibility of reversing or forging), and how hashes are applied in blockchain systems.

Why this video

Chainlink is a well-known blockchain infrastructure producer, and at under five minutes this is a tight, accurate treatment of the single mechanism that makes every other guarantee in the topic work — the integrity mechanism behind linked blocks, Merkle roots, and immutability.

Video 3: Blockchain Fundamental Concepts

Himmat Patil · 14:25 · 170 views · 4y ago · captions — Watch on YouTube

About this video

A fundamentals lecture that, per its own tags, covers Merkle trees, types of blockchains, use cases, and blockchain limitations. The longer running time allows it to connect the internal structure of a block to broader questions about where blockchain is and is not an appropriate design choice.

Why this video

It is the only one of the three to address Merkle trees explicitly, and its attention to limitations and trade-offs matches the course's emphasis on evaluating structural design decisions rather than just describing them.

How These Videos Support the Learning Outcomes

Together these videos map onto MO1 and MO4. The Chainlink video supplies the cryptographic hashing layer, the fundamentals lecture adds Merkle trees and the trade-offs and limitations of the design, and the layers video places the chain structure inside the distributed, consensus-driven system that gives it meaning — collectively letting you explain how linked structures, hashes, and trees compose into immutability and transaction verifiability (MO1). The discussion of layers, use cases, and limitations also feeds MO4 by modeling how to identify which structures a real platform uses and what those choices cost. The graph-focused outcomes (MO2, MO3) and the integrative design task (MO5) are addressed by other materials in this module; use these videos as the concrete worked example you draw on when justifying structure selection later.

About These Videos

These videos were chosen from YouTube on October 2, 2026. Each has captions; the player turns them on. Videos on YouTube can be changed or removed — if one no longer plays, tell your instructor. If a player does not appear, use its Watch on YouTube link.

Digital Currency Systems

Introduction

Digital currency systems are a useful case study for this course because almost every component of a cryptocurrency is, underneath the marketing language, a familiar data structure doing a specific job. A wallet is essentially a key-value store mapping keys and addresses to spendable funds. Pending transactions sit in a mempool, a priority-ordered holding area that nodes draw from. Confirmed transactions are summarized by a Merkle tree so that membership can be verified with a short proof instead of a full scan, and blocks are chained together much like a linked list in which each node stores a hash pointer to its predecessor.

Two accounting models dominate. In the UTXO (unspent transaction output) model used by Bitcoin, a wallet balance is not a stored number at all but the sum of a set of discrete unspent outputs, each of which must be consumed whole and replaced by new outputs. In the account model used by Ethereum, balances are stored directly in a mutable key-value map. The choice between these shapes everything downstream: storage size, lookup cost, parallelism, privacy, and how easily the system scales.

As you watch the videos below, keep translating the vocabulary back into course terms. When you hear "UTXO set," ask what structure holds it and what the cost of a lookup or update is. When you hear "hash," ask what properties make it suitable for linking blocks and for building Merkle trees. When you hear about fees and consolidation, ask what trade-off is being made between storage footprint, computation, and user privacy — that habit of naming the trade-off is exactly what the module assessments will ask for.

Video 1: UTXO (Bitcoin) vs Account-Based (Ethereum) Blockchains Explained: What's The DIFFERENCE??

CoinGecko · 4:01 · 16,500 views · 2y ago · captions — Watch on YouTube

About this video

A short, comparative explainer contrasting the two dominant bookkeeping models in blockchains: UTXO-based systems such as Bitcoin and account-based systems such as Ethereum. Based on its title and description, it should walk through how each model represents a balance, how a transaction changes state under each, and where the practical differences show up.

Why this video

It directly supports the Transaction Data and the UTXO Model subtopic and gives you the side-by-side framing you need to discuss storage and lookup trade-offs rather than treating UTXO as the only option.

Video 2: Bitcoin UTXOs Explained: Save on Fees & Boost Privacy

Trezor · 8:12 · 24,851 views · 1y ago · captions — Watch on YouTube

About this video

A longer, practice-oriented walkthrough of Bitcoin UTXOs from a hardware wallet maker, focused on what a UTXO actually is and how the set of UTXOs a wallet controls affects transaction fees and privacy. The description points toward UTXO consolidation — combining many small outputs into fewer larger ones — as a concrete management technique.

Why this video

Coming from Trezor, a wallet producer, it grounds the abstract UTXO model in real wallet behavior and makes the data-structure trade-off tangible: more entries in the set means larger transactions, higher fees, and different privacy properties.

Video 3: Ep 06: Hashing Algorithm [Bitcoin Tech Tales]

bubbleya · 3:30 · 30 views · 2y ago · captions — Watch on YouTube

About this video

An episode from a short serialized explainer series that steps aside from the ongoing payment story to look at the hashing algorithm itself. Expect coverage of what a cryptographic hash function does to an input and why its output behaves the way it does in a Bitcoin context.

Why this video

Hashing is the primitive that makes hash pointers, block chaining, and Merkle trees work, so this brief piece fills in the foundation that the Merkle tree and linked-list-of-blocks subtopics build on.

How These Videos Support the Learning Outcomes

Together these videos feed primarily into MO1 and MO4. The hashing episode supplies the cryptographic primitive that underlies hash-linked blocks and Merkle proofs, which is the foundation MO1 asks you to explain. The two UTXO videos give you both the conceptual model and its real-world consequences, so that when MO4 asks you to evaluate the structural design decisions of a digital currency platform you can name the actual structures in play — key-value stores for wallets and account balances, a UTXO set, a mempool — and articulate concrete trade-offs in storage, fees, and privacy. They also build the comparative vocabulary you will reuse in MO5 when justifying your own multi-structure design against stated requirements.

About These Videos

These videos were chosen from YouTube on October 2, 2026. Each has captions; the player turns them on. Videos on YouTube can be changed or removed — if one no longer plays, tell your instructor. If a player does not appear, use its Watch on YouTube link.

Graphs and Social Network Applications

Introduction

Social networks are, at their core, graphs: people (or accounts, pages, wallets) are vertices, and relationships (friendship, following, messaging, transactions) are edges. Once you model a platform this way, questions that sound social become questions about graph structure — How many hops separate two users? Which accounts sit at the center of a cluster? Which groups of users are densely connected to each other but sparsely connected to everyone else? How fast would a post spread if it started here?

In this module you have been looking at how real systems compose data structures to meet concrete requirements, and graphs are the structure that carries relationship and influence. Two representation choices dominate practice: the adjacency matrix, which gives constant-time edge lookup at the cost of space proportional to the square of the vertex count, and the adjacency list, which is far more compact for the sparse graphs that real social networks actually are. On top of whichever representation you choose, the two workhorse traversals — breadth-first search and depth-first search — power features such as degrees-of-separation and "people you may know" (BFS, which explores level by level) and connected-component or community discovery (DFS, which dives deep along a path before backtracking).

The videos below focus on those traversals, since mastering BFS and DFS mechanics is what makes the application-level topics (centrality, information flow, platform design) tractable. While you watch, pay attention to three things: the auxiliary structure each algorithm uses (queue for BFS, stack or recursion for DFS), how the visited set prevents infinite looping in cyclic graphs, and the order in which vertices are discovered. Then mentally re-map each example graph onto a friend network and ask what the traversal output would mean in that setting.

Video 1: L-4.15: BFS & DFS | Breadth First Search | Depth First Search | Graph Traversing | DAA

Gate Smashers · 11:16 · 2,509,205 views · 4y ago · captions — Watch on YouTube

About this video

A side-by-side introduction to breadth-first search and depth-first search as graph traversal strategies, covering how each algorithm visits vertices and the supporting structures (queue for BFS, stack/recursion for DFS) that produce those orders. Based on its title and course framing (DAA), it is likely to work through traversal examples on sample graphs and discuss the algorithms' behavior and complexity.

Why this video

Because it presents both traversals in one lecture, it is the best starting point for seeing how BFS and DFS differ in exploration order — the distinction that explains why one suits connection discovery and the other suits component and community exploration. Gate Smashers is a widely used exam-prep channel with a step-by-step lecture style, and the view count reflects its popularity with CS students.

Video 2: Breadth-first search in 4 minutes

Michael Sambol · 3:59 · 603,429 views · 4y ago · captions — Watch on YouTube

About this video

A compact four-minute treatment of breadth-first search: the level-by-level exploration pattern, the queue that drives it, and the visited marking that keeps traversal finite. The description links to a Python implementation, so you can read the code alongside the explanation.

Why this video

Short, precise videos like this are ideal for review before tracing BFS by hand on a social graph, which is exactly what connection discovery and shortest-hop (degrees-of-separation) features require. Michael Sambol's algorithm series is well known for accurate, no-filler visual walkthroughs paired with published code.

Video 3: Depth-first search in 4 minutes

Michael Sambol · 4:01 · 550,064 views · 4y ago · captions — Watch on YouTube

About this video

The companion video on depth-first search, explaining how the algorithm follows one path as far as possible before backtracking, and how recursion or an explicit stack implements that behavior. A linked Python implementation is provided for readers who want to connect the trace to working code.

Why this video

DFS is the traversal behind connected-component identification and the clustering intuitions underlying community detection, so a clean, correct explanation of its backtracking behavior directly supports that subtopic. Watching it immediately after the BFS video makes the structural contrast between the two algorithms easy to internalize.

How These Videos Support the Learning Outcomes

These three videos concentrate on MO3: by the end of them you should be able to trace BFS and DFS step by step on a graph, name the auxiliary structure each uses, and explain why BFS produces shortest-hop distances while DFS reaches entire connected regions — the mechanics behind connection discovery and community detection features. They also provide the operational grounding for MO2, since the per-vertex neighbor iteration shown in every traversal trace is precisely the operation that adjacency lists make cheap and adjacency matrices make expensive on sparse social graphs; keep that cost comparison in mind as you watch. Finally, because MO4 and MO5 ask you to evaluate and design multi-structure systems, treat these traversals as components you can now justify choosing: the videos supply the algorithmic behavior, and your course readings on representations, centrality, and platform case studies supply the design context in which that behavior pays off.

About These Videos

These videos were chosen from YouTube on October 2, 2026. Each has captions; the player turns them on. Videos on YouTube can be changed or removed — if one no longer plays, tell your instructor. If a player does not appear, use its Watch on YouTube link.

Combining Data Structures in Complex Systems

Introduction

Up to this point in the course you have studied data structures largely one at a time: a linked list here, a hash table there, a tree or graph in isolation. Real systems almost never work that way. A blockchain node, a payment network, or a social platform stitches several structures together — hash tables for fast lookup, linked structures for ordering and history, trees for verification, graphs for relationships — and layers them so that each structure handles the operation it is best suited for.

This topic asks you to think like a system designer rather than a single-structure implementer. Blockchain is our primary case study: hash-linked blocks, cryptographic digests, and Merkle trees combine to give immutability and efficient transaction verification, while hash tables and indexes make wallet balances and transaction lookups practical. Social and transactional networks give us a second case study, where the choice between adjacency lists and adjacency matrices, and between BFS and DFS traversal, directly changes storage cost and feature performance.

The three videos below come from ByteByteGo, a system design channel, and they frame the same question from an industry perspective: which structures, algorithms, and storage engines do large systems actually combine, and why. As you watch, keep a running list of the data structures mentioned, note the trade-off that justifies each one (time versus space, read speed versus write cost, simplicity versus scalability), and ask how you would describe that same decision using the formal cost analysis you have learned in this course.

Video 1: 8 Most Important System Design Concepts You Should Know

ByteByteGo · 6:05 · 565,363 views · 1y ago · captions — Watch on YouTube

About this video

A fast tour of core system design concepts that recur across large-scale applications — the kinds of building blocks (caching, indexing, replication, partitioning, and similar ideas) that engineers assemble when designing a service. The emphasis is on how these pieces fit together rather than on implementing any one of them in code.

Why this video

It establishes the central premise of this topic — that complex systems are built by integrating multiple components and structures — and gives you industry vocabulary for discussing layered architecture and structural design decisions.

Video 2: Algorithms You Should Know Before System Design Interviews

ByteByteGo · 6:55 · 266,982 views · 3y ago · captions — Watch on YouTube

About this video

A survey of the algorithms and underlying data structures that commonly appear in system design discussions, presented in the context of real system components rather than textbook exercises. Expect coverage of techniques such as hashing and consistent hashing, tree- and trie-based indexing, and probabilistic or graph-related structures used at scale.

Why this video

This is the closest fit to the topic's core question: it shows named data structures being selected for specific system roles, which supports the hash table, tree, and graph integration you are asked to reason about.

Video 3: How To Choose The Right Database?

ByteByteGo · 6:58 · 445,561 views · 4y ago · captions — Watch on YouTube

About this video

A walkthrough of how to choose among database types — relational, key-value, document, graph, and others — based on the shape of the data and the access patterns the application needs. The video frames the decision as a set of trade-offs rather than a single correct answer.

Why this video

Database engines are data structures in production, so this video makes the trade-off reasoning concrete, including the case for graph stores when relationships dominate, as in social and transactional networks.

How These Videos Support the Learning Outcomes

Together these videos supply the design-thinking frame that the module's case studies fill in with specifics. The algorithms video reinforces how hashing, trees, and graph-oriented structures are selected for particular roles, supporting your analysis of blockchain's hash-linked blocks and Merkle trees (MO1) and of digital currency platforms as integrated multi-structure systems (MO4). The database selection video models the explicit storage-versus-operation trade-off reasoning you will apply when justifying adjacency lists against adjacency matrices (MO2) and when choosing graph representations that make traversal-based features practical (MO3). The system design concepts video ties it all to layered architecture, preparing you to propose and defend your own multi-structure solution against stated performance and functional requirements (MO5). Note that none of the videos covers blockchain internals or BFS and DFS traversal directly — those come from the module readings and lectures; use the videos for the integration mindset and trade-off vocabulary.

About These Videos

These videos were chosen from YouTube on October 2, 2026. Each has captions; the player turns them on. Videos on YouTube can be changed or removed — if one no longer plays, tell your instructor. If a player does not appear, use its Watch on YouTube link.