7. A salesman based in Seattle needs to visit Salt Lake City, Houston, Dallas, and Memphis.
What sequence of trips would consist of the least total distance traveled? In other words, nd
the optimal solution to the Traveling Salesman Problem for these ve cities.
From
To
Distance (miles)
Seattle
700
Seattle
Houston
1891
Seattle
Dallas
1683
Seattle
Memphis
1872
Houston
1201
Dallas
1003
Memphis
1256
Houston
Dallas
224
Houston
Memphis
484
Dallas
Memphis
419
Explain chromatic number with respect to vertex, edge and region in the above graph.
1. If from a lottery of 30 tickets, marked, 1, 2, 3, . . . , 30, four tickets are drawn, what is
What is the chance that the latter then contains 2 red and 6 black balls?
3. Three newspapers A, B, C are published in a city and a survey of readers indicates
the following: 20% read A, 16% read B, 14% read C, 8% read both A and B, 5% read
both A and C, 4% read both B and C,and 2% read all three.For a person chosen at
random, find the probability that he reads none of the papers.
4. A committee consists of 9 students, two of which are in their 1st year, three are in
their 2nd year, and four are in their 3rd year. Three students are to be removed at
random. What is the chance that
(i) the three students belong to different classes,
(ii) two belong to the same class and the third to the different class, and
(iii) the three belong to the same class?
5. The probabilities of A, B, C solving a problem are 1/3 ,2/ 7 , and 3/8 , respectively. If
all three try to solve the problem simultaneously, find the probability that exactly one
of them will solve it.
6. A company has two plants to manufacture scooters. Plant I manufactures 70% of
scooters and plant II manufactures 30%. At plant I, 80% of the scooters are rated
standard quality and at plant II, 90% of the scooters are rated standard quality. A
scooter is chosen at random and is found to be of standard quality. What is the
chance that it has come from plant II?
7. Two bad eggs are mixed accidently with 10 good ones. Find the probability
from this bag. Find , 2 , and for the number of red balls drawn.
9. A random variable X has the following probability distribution:
Values of X,
x:
p(x) : a
3a
5a
7a
9a
11a
13a
15a
17a
(i)
and their
sons (Y ) .
X:
65
66
67
67
68
69
70
72
Y:
67
68
65
68
72
72
69
71
given by :
(a) f ( x, y )
(b)
(c )
f x, y
9(1 x y )
,0 x ,0 y
2(1 x)4 (1 y )4
2,0 x 1,0 y x
0, elsewhere
8 xy ,0 x y 1
f ( x, y )
0, elsewhere
Complexity of Algorithm:
1. Explain relative theta, big oh and little oh notations with relevant examples.
2. Show that theta is an equivalence relation.
3. Write an algorithm for the following and describe the time complexity.
(i)
(ii)
linear search
(iii)
binary search
(ii)
Factorial function
(iii)
n log(n 2 1) n 2 log n