Question: 1 . Implement the master method theorem Sample Input: T ( n ) = 3 T ( n / 2 ) + n 2 Sample

1. Implement the master method theorem Sample Input: T(n)=3T(n/2)+ n2 Sample Output = O(n2)2. Implement the BFS algorithm Input: You have to provide a graph either using adjacency matrix or adjacency list Output: You have to show distance and previous node of each vertex from a specific source node 3. Implement the DFS algorithm Input: You have to provide a graph either using adjacency matrix or adjacency list Output: You have to show discovery and finishing time of each vertex from a specific source node 4. Implement the Topological sort algorithm Input: You have to provide a graph either using adjacency matrix or adjacency list Output: You have to show the sorted order of each event

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!