MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

List of Algorithms and Data Structures

Here’s a comprehensive list of Algorithms and Data Structures categorized for easy understanding:

Mind map summarizing data structures, time complexity, search, sorting, graph and tree traversal algorithms

๐Ÿ”น Data Structures

Data structures help in organizing and storing data efficiently.

1. Linear Data Structures

  • Array โ€“ Fixed-size collection of elements.
  • Linked List โ€“ Dynamically allocated list (Singly, Doubly, Circular).
  • Stack โ€“ LIFO (Last In, First Out).
  • Queue โ€“ FIFO (First In, First Out).
    • Deque (Double-ended Queue) โ€“ Insertion/removal from both ends.
    • Priority Queue โ€“ Elements prioritized based on key.

2. Non-Linear Data Structures

  • Trees
    • Binary Tree
    • Binary Search Tree (BST)
    • AVL Tree (Self-balancing BST)
    • B-Trees & B+ Trees (Used in databases)
    • Heap (Max-Heap, Min-Heap)
    • Trie (Prefix Tree)
    • Red-Black Tree
    • Splay Tree
  • Graphs
    • Directed and Undirected Graphs
    • Weighted and Unweighted Graphs
    • Adjacency Matrix & Adjacency List
    • DAG (Directed Acyclic Graph)
  • Hashing
    • Hash Table (Used in dictionaries, caching)
    • Hash Map (Key-Value Pair Storage)

๐Ÿ”น Algorithms

Algorithms are step-by-step computational procedures for solving problems.

1. Searching Algorithms

  • Linear Search (O(n))
  • Binary Search (O(log n))
  • Jump Search (O(โˆšn))
  • Exponential Search (O(log n))
  • Ternary Search (Divides search range into three parts)

2. Sorting Algorithms

  • Comparison-Based Sorting
    • Bubble Sort (O(nยฒ))
    • Selection Sort (O(nยฒ))
    • Insertion Sort (O(nยฒ))
    • Merge Sort (O(n log n))
    • Quick Sort (O(n log n))
    • Heap Sort (O(n log n)
    • Shell Sort (Improvement over insertion sort)
    • Tim Sort (Hybrid of Merge & Insertion Sort)
  • Non-Comparison-Based Sorting
    • Counting Sort (O(n + k))
    • Radix Sort (O(nk))
    • Bucket Sort (O(n))

3. Graph Algorithms

  • Breadth-First Search (BFS) โ€“ Level-order traversal.
  • Depth-First Search (DFS) โ€“ Recursive or stack-based traversal.
  • Dijkstraโ€™s Algorithm โ€“ Shortest path (Single source).
  • Bellman-Ford Algorithm โ€“ Handles negative weights.
  • Floyd-Warshall Algorithm โ€“ All-pairs shortest paths.
  • Kruskalโ€™s Algorithm โ€“ Minimum Spanning Tree (MST).
  • Primโ€™s Algorithm โ€“ MST using priority queue.
  • A Algorithm* โ€“ Heuristic search for shortest path.

4. Dynamic Programming (DP) Algorithms

  • Fibonacci Series (Memoization & Tabulation)
  • Knapsack Problem (0/1 Knapsack, Fractional Knapsack)
  • Longest Common Subsequence (LCS)
  • Longest Increasing Subsequence (LIS)
  • Matrix Chain Multiplication
  • Coin Change Problem
  • Edit Distance (Levenshtein Distance)

5. Greedy Algorithms

  • Huffman Coding (Data compression)
  • Activity Selection Problem
  • Job Sequencing Problem
  • Kruskalโ€™s Algorithm (for MST)
  • Primโ€™s Algorithm (for MST)
  • Dijkstraโ€™s Algorithm (for shortest path)

6. String Algorithms

  • Naรฏve Pattern Matching
  • Knuth-Morris-Pratt (KMP) Algorithm
  • Rabin-Karp Algorithm
  • Z-Algorithm
  • Suffix Array and Suffix Tree
  • Aho-Corasick Algorithm

7. Bit Manipulation Algorithms

  • Bitwise AND, OR, XOR operations
  • Counting set bits (Brian Kernighan’s Algorithm)
  • Checking if a number is a power of two
  • Swapping two numbers without extra space

8. Divide and Conquer Algorithms

  • Merge Sort
  • Quick Sort
  • Binary Search
  • Strassenโ€™s Matrix Multiplication
  • Closest Pair of Points Problem

9. Backtracking Algorithms

  • N-Queens Problem
  • Sudoku Solver
  • Maze Solving (Rat in a Maze)
  • Subset Sum Problem
  • Hamiltonian Cycle

10. Computational Geometry Algorithms

  • Convex Hull (Grahamโ€™s Scan, Jarvis March)
  • Line Intersection
  • Point in Polygon Test
  • Closest Pair of Points Algorithm

11. Number Theory Algorithms

  • Greatest Common Divisor (GCD) โ€“ Euclidean Algorithm
  • Sieve of Eratosthenes (Prime numbers)
  • Modular Exponentiation
  • Fermatโ€™s Little Theorem
  • Chinese Remainder Theorem
  • Miller-Rabin Primality Test

12. Game Theory Algorithms

  • Minimax Algorithm
  • Alpha-Beta Pruning
  • Nim Game Strategy
  • Sprague-Grundy Theorem

This is a high-level overview of the most common data structures and algorithms used in computer science and competitive programming.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

How to Optimize Code Performance for High-Load Applications?

If you have ever encountered a certain application within a company, you would understand the frustration in terms of latency spikes, database bottlenecks, unpredictable slowdowns. These factors…

Read More

Why math is important if you want to become a programmer

In the realm of programming, mathematics serves as both a cornerstone and a catalyst for innovation. At its core, programming is a discipline rooted in logical problem-solving,…

Read More

Algorithms and Data Structures

Algorithms and data structures are two of the most important concepts in computer science. Algorithms are step-by-step procedures for solving problems, while data structures are ways of…

Read More

Complete Tutorial on big O (big oh) notation

In this Tutorial I am going to cover Complete Tutorial on big O (big oh) notation. If you know something about Asymptotic Notations The big-O Notation is…

Read More

Complete Tutorials of Introduction to Data Structures

We are living in a world where development is most important thing. Everyone want to develop their skills and improve their knowledge. In IT sectors we have…

Read More

DevOps Interview Questions and Answer โ€“ Part 5

DevOps Interview Questions: Programming What is your favorite scripting/programming language(s)? Why ? General CS, algorithms Q&A: 5 minutes Data structures – discuss possible implementations and applications: Binary…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x