DSA (Data Structures & Algorithms) - Quick Note
What is DSA?
DSA stands for Data Structures and Algorithms. It helps organize data
efficiently and solve problems faster.
Common Data Structures
1. Array – stores elements in order.
2. Linked List – connected nodes.
3. Stack – Last In First Out (LIFO).
4. Queue – First In First Out (FIFO).
5. Tree – hierarchical structure.
6. Graph – nodes connected by edges.
7. Hash Table – key-value storage.
Important Algorithms
• Searching: Linear Search, Binary Search
• Sorting: Bubble, Selection, Insertion, Merge, Quick Sort
• Graph Algorithms: BFS, DFS
• Recursion and Dynamic Programming
Time Complexity
Big-O notation measures efficiency.
Examples:
O(1) – Constant
O(log n) – Logarithmic
O(n) – Linear
O(n²) – Quadratic
Why Learn DSA?
• Improves problem-solving skills
• Important for coding interviews
• Helps write optimized programs
• Useful in competitive programming
Prepared for quick revision.