Data Structures and Algorithms (DSA) - Basic
Notes
1. Introduction to DSA
• Data Structures organize and store data efficiently.
• Algorithms are step-by-step procedures used to solve problems.
• DSA helps write efficient and optimized programs.
2. Types of Data Structures
• Linear Data Structures: Array, Linked List, Stack, Queue.
• Non-Linear Data Structures: Tree and Graph.
3. Common Data Structures
• Array – Collection of elements stored in contiguous memory.
• Linked List – Collection of nodes connected with pointers.
• Stack – Follows LIFO (Last In First Out).
• Queue – Follows FIFO (First In First Out).
• Tree – Hierarchical data structure.
• Graph – Represents networks and relationships.
4. Searching Algorithms
• Linear Search – Checks each element sequentially.
• Binary Search – Efficient search on sorted data.
5. Sorting Algorithms
• Bubble Sort
• Selection Sort
• Insertion Sort
• Merge Sort
• Quick Sort
6. Time Complexity
• O(1) – Constant Time
• O(n) – Linear Time
• O(log n) – Logarithmic Time
• O(n²) – Quadratic Time
7. Applications of DSA
• Software Development
• Database Systems
• Operating Systems
• Artificial Intelligence
• Web Development