The Q&A Community for Students

MindStudy, question and answer site designed to help students, to help each other:
To ask, to learn, to share, to grow.

Ask Questions

Get the right answers. Fast

Answer Questions

Submit answers for community.

Be Somebody's Hero

Pat yourself on the back. You deserve it.

All Questions

542 questions

1212 views

Write the string matching algorithm due to Knuth,Moris and Pratt. Analyze its time complexity. 

Knuth,Moris and Pratt algorithm scan the text array T[1……n] to find that whether a pattern array P[1………..n] appears in the text array by using the auxiliary function П which is called the prefix function.

Super Admin
added 3 years ago
1021 views

Write short notes on

  • Kruskal’s algorithm for finding MST
  • Graph coloring problem

A minimum spanning tree is a spanning tree of a connected, undirected graph. It connects all the vertices together with the minimal total weighting for its edges. A single graph can have many different spanning trees.

Super Admin
added 3 years ago
1177 views

Write a short note on Asymptotic Notations.

Asymptotic Notations are languages that allow us to analyze an algorithm's running time by identifying its behavior as the input size for the algorithm increases. It is used to describe the asymptotic behaviour of complexities of algorithms.

Super Admin
added 3 years ago
1925 views

Why Recursion tree method is best than the Substitution method for solving a recurrence relation?  Find the asymptotic upper bound of the following recurrence relation with the help of recursion tree method.

T(n)=T(n/4)+T(n/2)+Θ(n2)

Recursion tree method is best than the Substitution method for solving a recurrence relation because in recursion tree method, we draw a recurrence tree and calculate the time taken by every level of tree.

Super Admin
added 3 years ago
1114 views

What do you mean by dynamic programming? Write the algorithm of chain matrix multiplication. 

It is a problem solving technique like divide and conquer where problems are divided into subproblems. Dynamic programming is used when the subproblems are not independent.

Super Admin
added 3 years ago
1625 views

Find the recurrence relation of binary search and derive the time complexity of binary search.

Binary search is a technique to find a particular element in a sorted list of elements. Suppose L is the sorted list and d is the element to be searched, lb is the lower bound of the list and ub is the upper bound of the list.

Super Admin
added 3 years ago
1038 views

Write a C program to multiplication of two matrix.

#include<stdio.h> #include<conio.h> main() { int a[10][10],b[10][10],c[10][10],m,n,p,q,i,j,k;

Super Admin
added 3 years ago