Some Algorithm Using C/C++
Finding Maximun and Minimum element in an array.(Sorted or Unsorted)
Selection Sort Algorithm in an array.
This code solves 0/1 knapsack problem using dynamic programming.
This code solves above algorithm using greedy approach.
Simple Binary Search in an array.
Kruskal Algorithm to find a minimum spanning tree for a weighted undirected graph using greedy approach.
Prim's Algorithm to find a minimum spanning tree for a weighted undirected graph using greedy approach.
Quick Sort Algorithm in an array.
Selection Sort Algorithm in an array.
This code shows use of file handling in C++. In this program user can create, modify, delete student record. User interface is modified using interactive functions such as delay() and color(). It can be run using Turbo C++ Compiler.
This code shows use of file handling in C++. In this program user can create, modify, delete employee record. It can be run using Turbo C++ Compiler.
You may face problem while running these program. Some programs are run using visual studio code which uses Gcc compiler where as some run in Turbo c++. First see the codes of the program if header file is #include<iostream.h> then run it in Turbo C++ else run it using Gcc compiler.