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

Assignment 1
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
please solve this problem by showing every steps. Please dont copy other chegg expert's answer..

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!