Skip to content

This repository contains fundamental and advanced data structures and algorithms implemented in C++. It includes various sorting algorithms, searching techniques, linked lists, trees, graphs, dynamic programming problems, and other essential DSA concepts. The goal is to build a strong foundation in problem-solving and efficient algorithm design

Notifications You must be signed in to change notification settings

AbdulRehmanBaig384/Data-Algorithms-Structure

Repository files navigation

📌 Data Structures and Algorithms in C++

🚀 Introduction

Welcome to the Data Structures and Algorithms in C++ repository! This project is designed to help programmers and students understand the implementation of various data structures and algorithms in C++ with optimized solutions and explanations.

📖 Table of Contents

🏁 Getting Started

Clone this repository using the following command:

  git clone https://github.com/your-username/dsa-cpp.git
  cd dsa-cpp

🔧 Prerequisites

Make sure you have a C++ compiler installed:

  • GCC (MinGW for Windows)
  • Clang
  • Visual Studio (Windows)

To compile and run a program:

g++ filename.cpp -o output
./output

📂 Data Structures

📌 Linear Data Structures

  • Arrays
  • Linked Lists (Singly, Doubly, Circular)
  • Stacks (Array & Linked List implementation)
  • Queues (Simple, Circular, Priority Queue)

🌳 Non-Linear Data Structures

  • Trees (Binary Tree, BST, AVL, Heap)
  • Graphs (Adjacency Matrix/List, BFS, DFS, Dijkstra's Algorithm)
  • Hash Tables (Chaining & Open Addressing)

⚡ Algorithms

🔍 Searching Algorithms

  • Linear Search
  • Binary Search

🔄 Sorting Algorithms

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort

📌 Other Algorithms

  • Recursion (Factorial, Fibonacci, Tower of Hanoi)
  • Dynamic Programming (Knapsack, LCS, Fibonacci Memoization)
  • Graph Algorithms (Dijkstra, Kruskal, Prim)

🤝 How to Contribute

We welcome contributions! Follow these steps:

  1. Fork this repository.
  2. Create a new branch (feature-branch).
  3. Commit your changes.
  4. Push to your fork and submit a Pull Request.

🌟 Show your support by starring ⭐ the repository!

Happy Coding! 🚀

About

This repository contains fundamental and advanced data structures and algorithms implemented in C++. It includes various sorting algorithms, searching techniques, linked lists, trees, graphs, dynamic programming problems, and other essential DSA concepts. The goal is to build a strong foundation in problem-solving and efficient algorithm design

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages