Are Deviations Ofx's and 'S From Their Respective Means, Then The Data May Be
Are Deviations Ofx's and 'S From Their Respective Means, Then The Data May Be
Let the marks of two subjects be denoted by and respectively.Then the mean
for marks and the mean ofy marks
and are deviations ofx’s and ’s from their respective means, then the data may be
arranged in the following form:
x y X=x-65 Y=y-66 X2 Y2 XY
75 68 10 2 100 4 20
82 62 17 -4 289 16 -68
62 58 -3 -8 9 64 24
65 53 0 -13 0 169 0
A2)
Let the A.M.s and be 2200 and 6 for X and Y series respectively.
X Y dx (i=100) dy d d dxdy
dx
1800 5 -400 -4 -1 16 1 4
1900 5 -300 -3 -1 9 1 3
2000 6 -200 -2 0 4 0 0
2100 9 -100 -1 3 1 9 -3
2200 7 0 0 1 0 1 0
2300 8 100 1 2 1 4 2
2400 6 200 2 0 4 0 0
2500 8 300 3 2 9 4 6
2600 9 400 4 3 16 9 12
N=9
(X, Y).
first, note that since are normal and independent, they are jointly normal, with
the joint PDF.
aX + bY =
(b). we can use the method of transformations to find the joint PDF of X and Y.
=
=
Var(X) = Var(Z1) = 1,
Var(Y) =
= Cov(
= Cov( .
= .1 + .0
= .
A4) one way to solve this problem is by using PDF formula. In particular, since X N ( x,
), we can use
and . .+ .
E[Y|X =x ]= + E
= ,
Var (Y|X = x) =
= (1 -
)
• Find Cov(X+Y,2X-Y)
• Find P(Y>1
A5) a. Since X and Y are jointly normal, the random variable V=2X+Y is normal. We have
Thus, V Therefore,
Cov (X+Y, 2X-Y) = 2Cov (X, X)-Cov (X, Y) +2Cov (Y, X)-Cov (Y, Y)
= 2-1+2-4 = -1.
Male Female
A 9 12
B 18 14
C 8 11
D 2 3
F 1 2
A6)
Ans: 21 Students
Ans: 51 Students
Q 7:
x 1 2 3 4 5 6 7
y 0.5 2.5 2.0 4.0 3.5 6.0 5.5
A7)
: y = 0.07143+0.8393x.
Q 8: Fit a least square line for the following data. Also find the trend values and show
that ∑(Y– )=0 ∑(Y– )=0.
X 1 2 3 4 5
Y 2 5 3 8 7
A8)
X Y XY X2 Y–
=1.1+1.3X
1 2 2 1 2.4 -0.4
2 5 10 4 3.7 +1.3
3 3 9 9 5.0 -2
4 8 32 16 6.3 1.7
5 7 35 25 7.6 -0.6
∑(Y- )=0
Trend
∑X=15 ∑Y=25 ∑XY=88 ∑X 2=55
Values
Eliminate a a from equation (1) and (2), multiply equation (2) by 3 and subtract from
equation (2).
Eliminate a from equation (1) and (2), multiply equation (2) by (3) and subtract from
equation (2). Thus, we get the values of a and b
Here a=1.1 and b=1.3, the equation of least square line becomes
Y=1.1+1.3X
Q 9: Using least square method to fit a straight line of the following data
X 8 2 11 6 5 4 12 9 6 1
Y 3 10 3 6 8 12 1 4 9 14
A9)
Now we calculate
I
1 8 3 1.6 -4 -6.4 2.56
2 2 10 -4.4 3 -13.2 19.36
3 11 3 4.6 -4 -18.4 21.16
4 6 6 -0.4 -1 0.4 0.16
5 5 8 -1.4 1 -1.4 1.96
6 4 12 -2.4 5 -12 5.76
7 12 1 5.6 -6 -33.6 31.36
8 9 4 2.6 -3 -7.8 6.76
9 6 9 -0.4 2 -0.8 0.16
10 1 14 -5.4 7 -37.8 29.16
m= = -131/118.4
b=
= 7-(-1.1*6.4)
Y= -1.1x+14.0
Q 10: Determine the constants a and b by the method of least square such that
X 2 4 6 8 10
Y 4.077 11.084 30.128 81.897 222.62
A10)
let,
log y = Y
x=X
log a = A
b=B
now we have,
…. (2)
…. (3)
X=x Y =ln(y) xy
2 1.405 4 2.810
4 2.405 16 9.620
6 3.405 36 20.430
8 4.405 44 35.240
10 5.405 100 54.050
Y = logey
Y= ln(y)
A =log a
a = 1.499
log y=Y,
X 0 2 4
Y 8.12 10 31.82
A11)
…. (2)
X y Y= logey xy X2
0 8.12 2.0943 0 0
2 10 2.3026 4.6052 4
4 31.82 3.4601 13.8404 16
3A +6b = 7.8750
6A + 20 b = 18.4456
∑Y i =Na + b ∑X i +c∑
∑X i Y i =a ∑X i +b∑ +c∑
y=10.004+0.85X−0.267X 2
=10.004+0.85(x−5) −0.267(x−5) 2
=10.004+0.85x−4.25−0.267(x 2 −10x+25)
A13)
X y xy
0 -4 0 0 0 0 0
1 -1 -1 1 -1 1 1
2 4 8 4 16 8 16
3 11 33 9 99 27 81
4 20 80 16 320 64 256
Here,
n = 5,
30 = 5a+10b+30c
120=10a+30b+100c
434=30a+100b+354c
By solving the above equations, we get
c. Find P(X )
A1)
In fact, we could have guessed Ex=0 because the PDF is symmetric around x=0. To find
Var(X), We have
c. To find P(X ), we can write
If Y =
A2)
Thus,
Q3) Let X be a continuous random variable with PDF
Find P(X ).
A3)
We have
P(X )=
Value 0 1 2 3
Probability 1/8 3/8 3/8 1/8
A4)
X = 0, TTT
X = 3, HHH
A: Ans:
B: Ans:
(Or)
A5)
Q 6) There are very few continuous distributions that we can do much with without a
lot of math, but the simple uniform distribution is one of them. A uniform distribution
is one that is just that-uniform. If we image any possible number between o and 2 as
equally likely, we have an infinite possible number of numbers, so the probability of
any particular number is close to zero. Instead of focusing on particular numbers,
we have to focus on intervals.
The probability that some number between zero and two will come up will be one. To
find the probability of any interval, we find the length of the interval and multiply by
5. Hence, the probability of getting a number between zero and one is 5.
For the following, draw the picture and compute the probabilities. What is:
a): P(0<x<.8)
b): P(x>.8)
c): P(.5<x<1.5)
e): compute the probability that we will not be in the interval of .4 to 1.5
f): compute the middle interval in which we will be 90% of the time.
g): compute the tails (outside intervals) that we will be in 5% of the time
A6)
b): 1-.4 = .6
c): 1*.5 = .5
g): 95% of the time we will be in the interval .05 to 1.95. 5% of the time we will
Find:(i) k (ii)
(v) Find
If P(x) is p.m.f –
X 0 1 2 3 4 5 6 7
P(x) 0
(v)
Q 8: The picture below shows a continuous probability distribution with the formula,
y = .5x for the range, x =0 to x = 2. In this case, area is probability.
To compute the probability of being between 0 and 1, for example, you need to know
y when x equals 1. The formula says it is .5. Hence, to find the probability that x is
between 0 and 1 Prob(0<x<1), we compute the area of the triangle with a length of 1
and a height of .5. The answer is 2.5 because .5HW = .5*.5*1.
Prob(0<x<.5)
Prob(0<x<1.5)
Prob(1.5<x<2)
Prob(.5<x<1.5)
A8)
a): Length *height*.5 is the area of a triangle. This triangle has length of 2 and height of 1,
so 2*1*.5= 1. The area is one, and for a continuous distribution, area is probability.
b): Prob(0<x<.5)
c): Both less than 1.5: .5625*.5625 = .3164: both greater than 1.5: .4375*.4375 = .1914; one
greater and one less: 1 - .3164 - .1914 = .4922.
X 1 2 3 4 5 6
Pr(X=x) 0.02 0.13 0.38 0.17 0.05 0.25
e) Pr(X )
A9)
= 0.02+0.13+0.38+0.17
X 0 1 2 3 4 or
more
P(X) 0.1 0.4 0.35 0.1 0.05
b): What is the probability that a customer does not rent any videos?
A10)
0.1+0.4+0.35+0.1+0.05 = 1
Q11) Jean usually makes half of her free throws in basketball practice. Today, she
tries 3 free throws. What is the probability that Jean will make exactly 1 of her free
throws?
A11)
The Probability that Jean will make each free throw is or 0.5.
P (1) =
= 3(0.5)(0.25) = 0.375
The probability that Jean will make exactly one free throw is 37.5%.
Q12) Suppose the probability of purchasing a defective computer is 0.02. What is the
probability of purchasing 2 defective computers in a group of 10?
A12)
X = 2, n = 10, and
P(X=2) =
= (45)(0.0004)(0.8508)
= 0.01531
A13) If n = 5, P = ¼
“Success = Defective”
x = 0,1,2,3,4,5
f(x) =
P(X=2) = f (2) =
P (X
Q14) Suppose that a rare disease has an incidence of 1 in 1000 person-years.
Assuming that members of the population are affected independently, find the
probability of k cases in a population of 10,000(followed over 1 year) for k=0,1,2.
Q 15: Suppose that the probability of a defect in a foot of magnetic tape is 0.002. Use
the Poisson distribution to compute the probability that 1500 feet roll will have no
defects.
A15)
Q16) The weekly incomes of shit foremen in the glass industry follow the normal
probability distribution with a mean of $1,000 and a standard deviation of $ 100. What
is the z value for the income, let’s call it X, of a foreman who earns $1,100 per week?
For a foreman who earns $900 per week?
A16)
For X = $ 1,100:
Q17) From the Below Diagram find the area of the both sides of the distribution.
A17)
The actual value of the integral is 3.75. This is exact because the error for Simson’s rule
is O( ) and we are integrating a cubic function.
Q3) Suppose we can only evaluate a function at the integers (for example, when we
are periodically sampling a signal). Use three applications of Simpson’s rule and two
applications of Simpson’s 3/8 Rule to approximate the integral of response with a
decaying transient f(x) = cos(x)+x on the interval [0,6].
A3)
Thus, we calculate:
and,
The actual integral is -7exp (-6) + sin (6) +1 = 0.7032332366, and therefore, three
applications of Simpson’s rule with intervals of width 2 appears to be more accurate than
two applications of Simpson’s 3/8th rule with intervals of width 3.
Q 4: Estimation error of Newton Cotes formula of degree 4.
A4)
Again, that doesn’t mean that the error is zero. The error term can be obtained from the
next term in the Newton Polynomial. i.e.
Q 5: State the trapezoidal rule for finding an approximate area under the given curve.
A curve is given by the points (x, y) given below:
Estimate the area bounded by the curve, the x axis and the extreme ordinates.
A5)
By Trapezoidal method
Area of curve bounded on x axis =
A6)
Here
X 0 0.5 1
Y 1 0.8 0.5
By Trapezoidal rule
By Trapezoidal rule
For h = 0.125, we construct the data table:
By Trapezoidal rule
[(1+0.5)+2(0.98461+0.94117+0.87671+0.8+0.71910+0.64+0.56637)]
A7)
Here
X 0
By Simpson’s Rule
For n = 8, we have
By Simpson’s Rule
Q 9: Evaluate
X 0
By Simpson’s Rule
A10)
X 3 4 5 6 7
9.88751 22.108709 40.23594 64.503340 95.34959
By Simpson’s Rule
= 177.3853
Q11) Evaluate
A11)
Let us divide the range of the interval [4, 5.2] into six equal parts.
= 1.8278475
Q 12: Evaluate
A12)
Let us divide the range of the interval [0,6] into six equal parts.
+3(0.0385)+0.027]
=1.3571
Q13) Evaluate:
A13)
A14)
Unit – 4
Q1) Crisp logic (crisp) is the same as Boolean logic (either 0 or 1). Either a
statement is true (1) or it is not (0), meanwhile fuzzy logic captures the degree to
which something is true.
A1)
Consider the statement: “The agreed to met at 12’o clock but ben was not punctual.”
• Crisp logic: If Ben showed up precisely at 12, he is punctual, otherwise he is too early
or too late.
• Fuzzy logic: The degree, to which Ben was punctual, can be identified by on how much
earlier or later he showed up (e.g. 0, if he showed up 11:45 or 12:15, 1 at 12:00 and a
linear increase / decrease in between).
Crisp set
Short
average under
170cm
tall 170 to
180cm
over
180cm
Characteristic Function
B A C
B 1 0 0
C 0 0 1
Q3)
A3)
For all and all where min denotes the minimum operator.
A4)
A( )
(ii) Assume that a satisfies. We need to prove that for any is convex. Now for
any (i.e., A ( ) and for any
A( )
A5)
Q6)
t 20 30 40
0.1 0.5 0.9
h 20 50 70 90
0.2 0.6 0.7 1
20 50 70 90
20 0.1 0.1 0.1 0.1
30 0.2 0.5 0.5 0.5
40 0.2 0.6 0.7 0.9
A6)
Now suppose, we want to get information about the humidity when there is the following
premise about the temperature:
Temperature is fairly high.
t 20 30 40
0.01 0.25 0.81
20 50 70 90
20 0.1 0.1 0.1 0.1
30 0.2 0.5 0.5 0.5
40 0.2 0.6 0.7 0.9
h 20 50 70 90
0.2 0.6 0.7 0.81
t 20 30 40
0.01 0.25 0.81
Q 7: Let P = {paris, berlin, Amsterdam} and Q = {Rome, Madrid, Lisbon} be two set
of cities, and E = {far, very far, near, very near}. Let R be the fuzzy soft relation over
the sets P and Q given by (R,E) = {R(for) = {(paris, Rome)/0.60, (paris, madrid/ 0.45,
(Paris, Lisbon)/0.40, (Berlin, Rome)/ 0.50, (Berlin, Madrid)/0.65), (Berlin,
Lisbon)/0.70,(Amsterdam, Rome)/0.75, (Amsterdam, Madrid)/0.50,(Amsterdam,
Lisbon)/0.80}}.This information can be represented in the form of two-dimensional
array(matrix) as shown in the Table 4. It is obvious from the matrix given in table 4
that a fuzzy soft relation may be considered as a parameterized fuzzy relation.
A7)
(1) Union:
(2) Intersection:
(3) Containment:
R(far) Rome Madrid Lisbon
Paris 0.60 0.45 0.40
Berlin 0.55 0.65 0.70
Amsterdam 0.75 0.50 0.80
= { .The
relation is given by the following membership matrices in table 5 and
6. The membership function of R can also be defined using other appropriate
techniques.
A8)
R(Costly
beautiful)
0.65 1 0.80 0.70 0.80 0.75
0.49 0.75 0.60 0.53 0.60 0.56
0.52 0.80 0.64 0.56 0.64 0.60
0.35 0.55 0.44 0.39 0.55 0.42
0.59 0.90 0.72 0.63 0.72 0.68
0.53 0.85 0.68 0.60 0.68 0.64
Unit – 5
Q1) It is necessary to compare 2 sensors based upon their detection levels & gain
settings the tails of gain settings & sensor detection level with a obtained item
being monitored providing typical membership values to reprocess the detection
levels for each sensor is given in tales.
a) b) c)
A1)
= max { }
b) = min { }
c) = 1-
A2)
{0,1,2,3,4,5}
{2,5}
{0,2,3,4,5}
{2,4,5}
{5}
Thus,
Q3) Find fuzzy cardinality of fuzzy set A and B whose membership function are
A3)
X 0 1 2 3 4
{1,2,3,4}
{2,3,4}
{3,4}
{4}
{0}
{0,1}
{0,1,2}
{0,1,2,3}
{0,1,2,3,4}
Thus,
Thus,
Q4)
Their
Q5) The membership function of two fuzzy numbers A and B are given as follows
-1 < x
= =
= =
A(x) B(x)
=0 =0 otherwise
A5)
For -1 < x
By def. of ,
A(x)
For
For
By def. of cut,
B(x)
For 3 < x
B(x)
= 4
= 0; Otherwise
To find A-B
Step 4: By decomposition theorem and arithmetic operation on closed interval we
find follows
=[
= [4 for all
Thus,
=
=
A(x) B(x)
=0 =0 otherwise
Solve A+X =B
A6)
Let
A+X = B
Check
Let Let
= x-3 3<x
=
=
=
A(x) B(x)
=0 =0 otherwise
Solve A.X =B
A7)
Let
A.X = B
Check
Q1) It is necessary to compare 2 sensors based upon their detection levels & gain
settings the tails of gain settings & sensor detection level with a obtained item
being monitored providing typical membership values to reprocess the detection
levels for each sensor is given in tales.
a) b) c)
A1)
= max { }
b) = min { }
c) = 1-
Q2) Find the fuzzy cardinality of A defined as follows:
A2)
{0,2,4,5}
{0,1,2,3,4,5}
{2,5}
{0,2,3,4,5}
{2,4,5}
{5}
Thus,
Q3) Find fuzzy cardinality of fuzzy set A and B whose membership function are
A3)
X 0 1 2 3 4
{0,1,2,3,4}
{1,2,3,4}
{2,3,4}
{3,4}
{4}
{0}
{0,1}
{0,1,2}
{0,1,2,3}
{0,1,2,3,4}
Thus,
Thus,
Q4)
Their
Q5) The membership function of two fuzzy numbers A and B are given as follows
-1 < x
= =
= =
A(x) B(x)
=0 =0 otherwise
A5)
For -1 < x
By def. of ,
A(x)
For
For
By def. of cut,
B(x)
For 3 < x
B(x)
= [2 +1, 5-2 for all
= 0; Otherwise
To find A-B
=[
= [4 for all
Thus,
Q6) The membership function of two fuzzy numbers A and B are
= x-1 1<x
=
=
=
A(x) B(x)
=0 =0 otherwise
Solve A+X =B
A6)
Let
A+X = B
Check
0.1 12.8 56.9
Let Let
= x-3 3<x
=
=
=
A(x) B(x)
=0 =0 otherwise
Solve A.X =B
A7)
Let
A.X = B
Check
Q1) 1 2 3 4 (Tasks)
Column Reduction
A 19 27 18 12
B 14 29 30 27
C 39 20 19 16
D 20 27 25 11
Workers
A1)
Row reduction:
column reduction:
7 15 6 0
0 15 16 13
23 4 3 0
9 16 14 0
7 11-3 3-3 0
0 11-3 13-3 13
23+3 0 0 0+3
9 12-3 11-3 0
7-0 15-4 6-3 0-0
0-0 15-4 16- 13-
3 0
23- 4-4 3-3 0-0
0
9-0 16-4 14- 0-0
3
7 11 3 0
0 11 13 13
23 0 0 0
9 12 11 0
7 8 0 0
0 8 10 13
0 0 3
26
9 9 8 0
20 28 21 1
15 35 17 1
8 32 20 1
Demand 1 1 1
A2)
+ + =1
+ + =1 , where i =1, 2, 3, ……
+ + =1
Since each job can be assigned to only one person, therefore three equations for three
different persons three different jobs.
Q 3: you work as a sales manager for a toy manufacturer, and you currently have
three salespeople on the road meeting buyers. Your salespeople are in Austin, TX
Boston, MA; and Chicago, IL. You want them to fly to three other cities: Denver,
CO; Edmonton, Alberta; and Fargo, ND. The table below shows the cost of airplane
tickets in dollars between these cities.
Where should you send each of your salespeople in order to minimize airfare?
A3)
Step 1: Subtract 250 from row 1, 350 from row2, and 200 from row 3.
Step 2: Subtract 0 from column 1, 150 from column 2, and 0 from column 3.
Step 3: Cover all the zeros of the matrix with the minimum
number of horizontal or vertical lines.
Step 4: Since the minimal number of lines is 3, an optimal assignment of zeros is possible
and we are finished. Since the total cost for this assignment is 0, it must be an optimal
assignment.
Here is the same assignment made to the original cost matrix.
Q4) A construction company has four large bulldozers located at four different
garages. The bulldozers are to be moved to four different construction sites are
given below.
Bulldozer A B C D
site
1 90 75 75 80
2 35 85 55 65
3 125 95 90 105
4 45 110 95 115
How should bulldozers be moved to the construction sites in order to minimize the
total distance travelled?
A4)
Step 1: Subtract 75 from row 1, 35 from row 2, 90 from row 3, and 45 from row 4.
Step 2: Subtract 0 from colum 1, 0 from column 2, 0 from column 3, and 5 from column 4.
Step 3: Cover all the zeros of the matrix with the minimum number of
horizontal or vertical lines.
Step 4: Since the minimal number of lines is less than 4, we have to proceed to step 5.
Step 5: Note that 5 is the smallest entry not covered by any line. Subtract from each
uncovered row.
Step 3: Cover all the zeros of the matrix with the minimum number of horizontal or
vertical lines.
Step 5: Note that 20 is the smallest entry not covered by a line. Subtract 20 from each
uncovered row.
Step 4: Since the minimal number of lines is 4, an optimal assignment of zeros is possible
and we are finished.
So, we should send Bulldozer 1 to site D, Bulldozer 2 to site C, Bulldozer 3 to site B, and
Bulldozer 4 to site A.
A B C D
1 2 10 9 7
2 15 4 14 8
3 13 14 16 11
4 4 15 13 9
A5)
Here, no.of rows = no.of columns, In other words, no.of workers = no.of jobs. So, it is a
balanced assignment problem.
Step 1: Subtract the smallest element of each row from all the elements of that row.
2 10 9 7
15 4 14 8
13 14 16 11
4 15 13 9
0 8 7 5
11 0 10 4
2 3 5 0
0 11 9 5
step 2: Subtract the smallest element of each column from all the elements of that column.
0 8 7 5
11 0 10 4
2 3 5 0
0 11 9 5
0 8 2 5
11 0 5 4
2 3 0 0
0 11 4 5
Step 3: cover all zeros
(a) Cover all zeros of the matrix with the minimum number of horizontal or vertical lines.
If the number of lines drawn is equal to the order of the matrix then the solution is
optimal.
8 2 5
0
11 0 5 4
2 3 0 0
11 4 5
0
The minimum number of lines that cover all the zeros = 3. And is not equal to the number
of rows/columns. Proceed to next step.
(b) Select all smallest elements from the matrix which is not covered by lines (here 2 is
the smallest and uncovered elements
Subtract the elements from all the uncovered elements and add this smallest element
to the element lying at the intersection of lines repeat step 3(a) and 3(b)
2 5
0 8
11 0 5 4
2 3 0 0
0 11 4 5
As the minimum number of lines that cover all zeros =4. And equal to the number of
rows/columns.
0 8 0
11 0 3 2
4 5 0 0
0 11 2 3
(a) Examine the rows which contain only one ‘zero ‘element. Make an assignment to this
single zero by encircling it. Cross all other zeros, as these will not be considered for
any future assignment. Continue till all the rows have been examined.
(b) Now, examine the columns containing only one ‘zero’. Encircle this zero and make an
assignment there. Then cross any other zero and continue till all the columns are
eliminated
(c) Repeat the step 4(A) and 4(b) until all the assignments have been made.
(d) While assigning, if there is no single zero exists in the row or column, then select any
zero arbitrary and encircle it and cross all other zeros in the column and row in
respect of which the assignment is made.
jobs 1 2 3 4
persons
A 10 12 19 11
B 5 10 7 8
C 12 14 13 11
D 8 12 11 9
A6)
0 2 9 1
0 5 2 3
1 3 2 0
0 4 3 1
0 0 7 1
0 3 0 3
1 1 0 0
0 2 1 1
jobs
machines
A7)
first sub-problem:
jobs
machines
870 + 680 = 1550. It can easily be checked using the Hungarian method, that these sub-
problems were solved optimally. In their paper,
We will now solve the original problem of assigning these eight jobs to five machines
such that machine is used at least once, but not more than twice.
Second sub-problem
jobs
40 30 20 30 0 40 30 20 30 0
0 60 40 50 0 0 60 40 50 0
0 10 120 10 50 0 10 120 10 50
140 0 10 60 40 140 0 10 60 40
80 20 0 60 20 80 20 0 60 20
0 10 30 0 0 0 10 30 0 0
40 120 50 0 30 40 120 50 0 30
70 0 70 20 40 70 0 70 20 40
DUM 1 0 0 0 0 50 0 0 0 0 50
DUM 2 0 0 0 0 50 0 0 0 0 50
For a total minimum cost of 1520 (not 1550).
Q8) Let us consider a problem with 8worker and 4 tasks. Its worker-task
assignment cost matrix is shown in table
i/j 1 2 3 4
A 53 62 42 89
B 18 35 9 55
C 93 80 91 83
D 79 23 96 56
E 43 16 12 23
F 43 16 12 20
G 35 79 25 59
H 27 16 12 20
A8)
Step 1: Create an unbalanced matrix problem for worker task assignment cost matrix.
Step 2: Obtain table 2 by adding duplicate or one dummy task with all 1 assignment cost
to given table
i/j 1 2 3 4 5
A 53 62 42 89 1
B 18 35 9 55 1
C 93 80 91 83 1
D 79 23 96 56 1
E 43 16 12 23 1
F 43 16 12 20 1
G 35 79 25 59 1
H 27 16 12 20 1
Step 3: Calculate a reduced cost matrix by dividing each row by minimum cost of its
column. Reduced cost matrix obtained from table 2.
i/j 1 2 3 4 5
A 2.94 3.87 3.5 4.45 1
B 1 2.18 3.25 2.75 1
C 5.16 5 7.58 4.15 1
D 4.38 1.43 8 2.8 1
E 2.38 1 1 1 1
F 4.83 4037 7.25 1.55 1
G 1.94 4.93 2.083 2.95 1
H 1.5 1 1 1 1
Step 4: Look for the row with one reduced cost excluding 1 from dummy column. Assign
worker to task according to position of the choosen 1 and mark entire row to avoid later
redundant assignment as shown in above table.
i/j 1 2 3 4 5
A 2.94 3.87 3.5 4.45 1
B 2.18 3.25 2.75 1
1
C 5.16 5 7.58 4.15 1
D 4.38 1.43 8 2.8 1
E 2.38 1 1 1 1
F 4.83 4037 7.25 1.55 1
G 1.94 4.93 2.083 2.95 1
H 1.5 1 1 1 1
Step 5: Look for the column with one reduced cost excluding 1 from dummy row. Assign
worker to task according to position of the chosen 1 and mark entire column to avoid
later redundant assignment as shown in above table.
Step 6: Choose one of remaining 1 in the reduced cost matrix as a position to assign
worker to task. Mark row and colum of chosen 1 to avoid later redundant assignment.
After applying step 6 to the matrix in table 4, we get the new matrix as shown in table 5.
i/j 1 2 3 4 5
A 2.94 3.5 4.45 1
3.87
B 2.18 3.25 2.75 1
1
C 5.16 5 7.58 4.15 1
D 4.38 1.43 8 2.8 1
E 1 1 1 1
2.38
F 4.83 4037 7.25 1.55 1
G 1.94 4.93 2.083 2.95 1
H 1 1 1 1
1.5
Step 7: Assign dummy task to the first n-m agent from table 5, we assign dummy task to 8-
4 workers as shown in table 6
i/j 1 2 3 4 5
A 2.94 3.5 4.45 1
3.87
B 2.18 3.25 2.75 1
1
C 5.16 5 7.58 4.15 1
D 4.38 1.43 8 2.8 1
E 1 1 1 1
2.38
F 4.83 4037 7.25 1.55 1
G 1.94 4.93 2.083 2.95 1
H 1 1 1 1
1.5
Step 8: Count the number of assigned text excluding dummy task. If it is equal to the
number of tasks then go to step 11(5)
Step 9: Mark row assignment excluding dummy task assignment and mark dummy
column. The marked rows/column from our examples are shown in table 7.
i/j 1 2 3 4 5
A 2.94 3.5 4.45
3.87 1
B 2.18 3.25 2.75 1
1
C 5.16 5 7.58 4.15 1
D 4.38 1.43 8 2.8 1
E 1 1 1 1
2.38
F 4.83 4037 7.25 1.55 1
G 1.94 4.93 2.083 2.95 1
H 1 1 1 1
1.5
Step 10: Look for the minimum cost among remaining (unmarked) costs. Recalculate the
reduced cost table by dividing each remaining cost by the minimum cost and replace 0 at
intersection with the minimum cost. And go to step 4. Table 8 shows the modified
reduced matrix.
i/j 1 2 3 4 5
A 1.51 2.44 2.07 3.02 1
B 1 2.18 3.25 2.75 1.43
C 3.73 3.57 6.15 2.72 1
D 2.95 0 6.57 1.37 1
E 2.38 1 1 1 1.43
F 3.4 2.94 5.82 0.12 1
G 0.51 3.5 0.65 1.52 1
H 1.5 1 1 1 1.43
Step 11: Calculate total assignment cost.
Suppose B - >1, D - >2, E – >3 and H - >4. The total cost for this assignment is calculated
as follows.
Min(T) =
Q9) A travelling salesman has to visit five cities. He wishes to start from a particular
city, visit each city and then return to his starting point. The travelling cost (in Rs.)
of each city from a particular city is given below.
From city A B C D E
To city
A a 2 5 7 1
B 6 a 3 8 2
C 8 7 a 4 7
D 12 4 6 a 5
E 1 3 2 8 a
What should be the sequence of the salesman’s visit, so that the cost is minimum?
A9)
From city A B C D E
To city
A a 1 3 6 0
B 4 a 0 6 0
C 4 3 a 0 3
D 8 0 1 a 1
E 0 2 0 7 a
The assignment shown in the above table gives the route sequence
A B, B C, C D, D E, E A
The travelling cost to this solution is 2000 + 3000 + 4000 + 5000 + 1000 = 15,000.
Q10) A sales man has to visit five cities A, B, C, D AND E.the intercity distances are
tabulated below
To/from A B C D E
A - 12 25 26 16
B 7 - 17 19 8
C 10 11 - 19 12
D 15 18 23 - 17
E 12 14 24 26 -
The above distances in km between two cities need not be same both ways. Which
route would you advise the salesman to take so that the total distance travelled by
him is minimum, if the salesman starts from city A and has to come back to city ‘A’.
A10)
step 1: Select smallest element in each row and subtract it from every element of that
row. Row reduction results in the following table.
To/from A B C D E
A - 0 13 14 4
B 0 - 10 12 1
C 0 1 - 9 2
D 0 3 8 - 2
E 0 2 12 14 -
Step 2: Select the minimum element in each column and subtract this element from every
element in that column, we get
To/from A B C D E
A - 0 5 5 3
B 0 - 2 3 0
C 0 1 - 0 1
D 0 3 0 - 1
E 0 2 4 5 -
Step 3: Cover all zeros and get the final minimum solution
To/from A B C D E
A - 0 5 5 3
B 0 - 2 3 0
C 0 1 - 0 1
D 0 3 0 - 1
E 0 2 4 5 -
Optimal schedule is B C, C D, D E, E A