Skip to content

Bindusrinaik04/Algorithms_code

Repository files navigation

Algorithms Code Repository

Welcome to the Algorithms Code repository! This collection includes implementations of various standard algorithms in the C programming language. Feel free to explore the provided code for the following algorithms:

Sorting Algorithms

  1. Quicksort: Efficient sorting algorithm based on the divide-and-conquer approach.
  2. Heapsort: Sorting algorithm that uses a binary heap data structure.

Greedy Algorithms

  1. Activity Selection: Problem where the goal is to maximize the number of non-overlapping activities.
  2. Job Scheduling: Algorithm for scheduling jobs to maximize total profit.
  3. 0/1 Knapsack: Dynamic programming and greedy approaches to solve the knapsack problem.

Dynamic Programming

  1. Rod Cutting: Finding the optimal way to cut a rod into pieces to maximize the total value.
  2. Optimal Binary Search Tree (OBST): Constructing a binary search tree with minimal expected search cost.
  3. Dijkstra's Algorithm: Finding the shortest path in a weighted graph.
  4. Fibonacci Series: Efficient computation of Fibonacci numbers.
  5. Coin Change Problem: Finding the minimum number of coins to make change for a given amount.

Graph Algorithms

  1. Prim's Algorithm: Constructing a minimum spanning tree.
  2. Closest Pair of Points: Finding the pair of points with the smallest distance.

Feel free to explore the code, understand the algorithms, and use them as a reference for your projects. Happy coding!

About

different algorithms programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages