-
- Write a program to sort a given elements using Merge sort method and find the time required to sort the elements.
-
- Write a program to sort a given elements using Quick sort method and find the time required to sort the elements.
-
- Write a program to print all the nodes reachable from a given starting node in a graph using Depth First Search method and Breadth First method. Also check connectivity of the graph. If the graph is not connected, display the number of components in the graph.
-
- Write a program to obtain the Topological ordering of vertices in a given digraph using a)Vertices deletion method b)DFS method
-
- Write a program to sort a given set of elements using Heap sort method. Find the time complexity
-
- Write a program to implement Horspool’s algorithm for String Matching.
-
- Write a program to implement 0/1 Knapsack problem using dynamic programming
-
- Write a program to find Minimum cost spanning tree of a given undirected graph using Prim’s
algorithm
-
- Write a program to find the shortest path using Dijkstra’s algorithm for a weighted connected graph.
-
- Write a program to find a subset of a given set S = {S1, S2,. ... ,Sn} of n positive integers whose sum is equal to a given positive integer d. For example, if S ={1, 2,5, 6, 8} and d= 9, there are two solutions {1,2,6}and {1,8}. Display a suitable message, if the given problem instance doesn't have a solution.
-
- Write a program to implement N -queens problem using backtracking
-
- Write a program to solve TSP problem using branch and bound.