#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Programming · DSA Glossary

Data Structures Glossary: Key Terms Explained Simply

DSA has its own vocabulary, and unfamiliar words make simple ideas feel hard. This glossary explains the terms you will meet most, in plain language with tiny examples.

Tracks
Glossary Explorer · Live Interactive
Group
—
Type of term
Examples
—
Terms in the group
Remember
—
Simple way to recall
Term → Meaning → Example → Use
Click a group to see the key terms, examples and an easy way to remember them.

Home / Tutorials / Career Guides / Data Structures Glossary: Key Terms Explained

Programming · DSA Glossary

Data Structures Glossary: Key Terms Explained

GROUP 1 GROUP 2 GROUP 3 GROUP 4 Linear Array, list Stack, queue Line Hashing Hash function Collisions Lookup Trees, graphs Nodes, edges Traversal Network Complexity Big-O Time, space Cost
Most DSA vocabulary falls into four groups: linear structures, hashing, trees and graphs, and complexity.

Quick summary — data structures glossary

This data structures glossary explains the core terms in four groups: linear structures (array, linked list, stack, queue), hashing (hash function, hash table, collision), non-linear structures (tree, binary search tree, heap, graph, traversal) and complexity (Big-O, time and space complexity). Knowing these terms makes DSA lessons and interview questions much easier to follow.

In this guide you will learn:

  1. Linear structure terms — arrays, lists, stacks and queues.
  2. Hashing terms — how fast lookup works.
  3. Trees and graphs — nodes, edges and traversal.
  4. Complexity terms — Big-O explained simply.
  5. Revision templates — flashcards and a practice list.

SECTION 01Linear data structure terms

Linear structures store items one after another. They are the first structures every beginner learns, and they appear in almost every program. They also appear constantly in interview questions, usually as the first step of a bigger problem.

TermSimple meaningPython exampleRemember it as
Array / listItems stored in order, accessed by indexmarks = [72, 85, 90]; marks[1]Numbered lockers
Linked listNodes where each points to the nextnode.next = other_nodeA treasure hunt of clues
StackLast in, first out (LIFO)stack.append(x); stack.pop()A pile of plates
QueueFirst in, first out (FIFO)deque.append(x); deque.popleft()A ticket counter line
marks = [72, 85, 90, 64]
print(marks[0])      # 72  (index starts at 0)
print(marks[-1])     # 64  (last item)
print(marks[1:3])    # [85, 90] (slice)

stack = []
stack.append("page1"); stack.append("page2")
print(stack.pop())   # page2 — last in, first out
linear_terms.py
Key insight: Index means position, and in Python it starts at 0. Many beginner bugs are simply 'off by one' index mistakes.

SECTION 02Hashing terms

Hashing is the idea behind Python dictionaries and sets. It explains why looking up a key is usually fast, even in very large collections.

TermSimple meaningExampleWhy it matters
Hash functionTurns a key into a number used to find a slothash("apple")Decides where data is stored
Hash tableStorage that uses hashes to place and find itemsPython dict and setFast average lookup
CollisionTwo keys map to the same slotHandled internally by the tableExplains worst-case slowdowns
Key and valueThe label and the data stored under it{"roll_42": "Asha"}Basis of dictionaries
students = {"roll_42": "Asha", "roll_17": "Ravi"}
print(students["roll_42"])           # Asha
print("roll_99" in students)         # False — fast membership check
students["roll_99"] = "Meera"         # insert
print(len(students))                 # 3

# Sets also use hashing
seen = {"apple", "banana"}
print("apple" in seen)               # True
hashing_terms.py
Key insight: If you remember one fact about hashing, remember this: dict and set lookups are usually fast because the key's hash points almost straight to its slot.

SECTION 03Trees, graphs and complexity terms

Non-linear structures connect items in branches or networks. Complexity terms describe how the cost of operations grows as data grows — the language interviewers use to compare solutions.

TermSimple meaningExampleRemember it as
Node, edgeAn item and a connection between itemsCities and roadsDots and lines
Binary search tree (BST)Each node: smaller values left, larger rightFast sorted lookups if balancedA sorted family tree
HeapTree where the parent is always smaller (min-heap) or largerPriority queuesThe boss always on top
Big-O notationHow time or memory grows with input size nO(1), O(log n), O(n), O(n²)Growth speed, not exact time
tree = {"A": ["B", "C"], "B": ["D", "E"], "C": [], "D": [], "E": []}

def dfs(node):                 # depth-first: go deep first
    print(node, end=" ")
    for child in tree[node]:
        dfs(child)

from collections import deque
def bfs(start):                # breadth-first: level by level
    q = deque([start])
    while q:
        n = q.popleft()
        print(n, end=" ")
        q.extend(tree[n])

dfs("A"); print()   # A B D E C
bfs("A"); print()   # A B C D E
traversal_terms.py
Key insight: Big-O ignores constant factors and focuses on growth. An O(n) solution may be slower for tiny inputs but wins as data grows.

SECTION 04Glossary revision templates

Use these templates to revise the vocabulary quickly before exams or interviews.

Front                         | Back
Stack                         | LIFO — last in, first out
Queue                         | FIFO — first in, first out
Hash collision                | two keys map to the same slot
BST property                  | left < node < right
Min-heap                      | parent ≤ children; smallest on top
BFS                           | visit level by level (uses a queue)
DFS                           | go deep first (uses recursion/stack)
O(log n)                      | halves the problem each step
dsa-flashcards.md

SECTION 05Tips for learning DSA vocabulary

These habits make the terms stick:

  • Pair every term with an image — plates for stacks, a queue line for queues.
  • Code a tiny example — five lines of Python fix a term in memory.
  • Say the complexity aloud — practise stating Big-O after each solution.
  • Group related terms — linear, hashing, trees and graphs, complexity.
  • Revise with flashcards — short daily reviews beat long cramming.
Pro tip: In interviews, using the right term precisely — 'this is a BFS on an unweighted graph, so it finds the shortest path' — signals understanding immediately.

SECTION 06Interview Q&A — data structures terms

Q1What is the difference between a stack and a queue?

A stack removes the most recently added item first (LIFO); a queue removes the oldest item first (FIFO).

Q2What is a hash collision?

When two different keys produce the same slot in a hash table. Tables handle it with techniques like chaining or probing.

Q3What is a binary search tree?

A binary tree where each node's left subtree has smaller values and the right subtree has larger values, enabling fast search when balanced.

Q4What does O(log n) mean?

The work grows very slowly as input grows, typically because each step halves the remaining problem, as in binary search.

Q5What is the difference between BFS and DFS traversal?

BFS visits nodes level by level using a queue; DFS goes as deep as possible along a branch before backtracking, using recursion or a stack.

SECTION 07Test yourself — data structures terms quiz

Five questions. No sign-up.

0 / 5

Pick an answer to see why it is right or wrong.

SECTION 08Frequently asked questions

What are the basic data structures every beginner should know?

Arrays or lists, linked lists, stacks, queues, hash tables, trees, heaps and graphs.

What is Big-O notation in simple words?

A way to describe how the time or memory an algorithm needs grows as the input size grows.

What is the difference between linear and non-linear data structures?

Linear structures store items in a sequence, like arrays and queues; non-linear ones branch or connect, like trees and graphs.

Is a Python list an array?

A Python list is a dynamic array of references, so it behaves like an array with fast index access and resizing.

How can I remember DSA terms easily?

Link each term to a real-world picture, code a tiny example and revise with flashcards regularly.

Classroom & online · Noida

Master DSA with Python

Our Python Training Course covers core Python, data structures and problem-solving practice to prepare you for coding interviews.

Talk to a counsellor for current fees
  • Python and data structures
  • Problem-solving practice
  • Mock interviews
  • Weekday & weekend batches