Professional Documents
Culture Documents
Mathematical Model
F1
O1
I F2
O2
F3
Assignment-2 Quick Sort
Mathematical Model
Quick Sort is basically used to perform sorting on given data. The data is nothing but the
number are taken here as input which are in unsorted order. the number are stored in XML
File
Input:
Function:
Output:
F O
I
Assignment-3 Booth Multiplication
Mathematical Model
Booth Multiplication is basically used for multiplication of two binary numbers. Following
parameters are used for Booth Multiplication:
F1
I O
F2
F3
Assignment-4 Dining Philosophers Problem
Mathematical Model
Where,
Input:
I1 = Initialization of database/server.
I3= Programme.
Functions:
F1 = main() : Here we create the threads and assign them to each philosopher and start
their execution.
F2 = run() : This is a function to be written when we use runnable interface for parallel
processing of threads.
F3= eat() : In this function, we lock the neighboring philosopher and the calling
thread(philosopher) stars eating operation.
Output:
Success Case: It is the case the connection is Successful with the MongoDB server and
threads start running parallel and gives output.
O2=Failure Case: It is the case when the connection is failed or there is an exception in
threads.
F1
I1 O1
F2
I2
F3
O2
I3
F4
Assignment-5 Scientific Calculator
Mathematical Model
F1
I O
F2
F3
Assignment-6 Password Data Encryption
Mathematical Model
F O
I
Group B Mathematical Model: - 8 Queen Matrix
F1 O1
F2
I
F3 O2
F4
Assignment-2 Odd-Even Sort
Mathematical Model
Odd Even Sort is basically used for sorting of given data. The data is nothing but here the
number are taken as input in unsorted order.
F1
I O
F2
F3
Assignment-3 Scientific Calculator
Mathematical Model
F1
I O
F2
F3
Assignment-4 Plagiarism Checker
Mathematical Model
Let S be the solution perspective of the class Weather Report such that
S={s, e, i, o, f, success, failure}
s=Start of program
e = the end of program
i= Text Message
o= Plagiarism output
Success- Plagiarism is generated
Failure- Plagiarism is not generated
Computational Model
Elective-III
Assignment-D1 SHA-1
Mathematical Model
Let S be the solution perspective of the class Weather Report such that
S={s, e, i, o, f, success, failure}
s=Start of program
e = the end of program
i=160 bit message.
o=hash value
Success-Hash value is generated.
Failure- Hash value is not generated
Computational Model
Assignment-D3 DSA Signature
MATHEMATICAL MODEL:
Let S be the solution perspective of the class Weather Report such that
S={s, e, i, o, f, success, failure}
s=Start of program
e = the end of program
i=Message
o= Message Digest
Success- Data receive with digital signature
Failure-Not done Message Digest (Data modified)
Computational Model
Assignment-D5
MATHEMATICAL MODEL:
Let S be the solution perspective of the class Weather Report such that
S= {s, e, i, o, f, success, failure}
s=Start of program
e = the end of program
i=Message
o= Message True or false after Verifying digital signature.
Success- Data receive with digital signature
Failure- Signature not Verified.