Wednesday, 7 December 2016

Parallelism in BST algorithm



Experiment No. 2
Aim : To execute Binary Search Tree algorithm on computer cluster using MPI

Theory:
Write about parallelism in BST algorithm

Procedure:
1.      1.Scatter the list of input numbers (to create BST) among the processors
2.      2. Create BSTs at all nodes
3.      3. Send the key to be searched to all processors.
4.       4. Execute binary search algorithm at all the nodes parallel
5.      5. The node which finds the key in its tree will send found signal to the master node

Give mathematical model for parallel algorithm

Input : A file containing 100 numbers to be searched

Output: Result of searching from each processor

No comments:

Post a Comment