Sem7 First Sessional
Sem7 First Sessional
Sem7 First Sessional
FACULTY OF TECHNOLOGY
FIRST SESSIONAL
SUBJECT: (CE-701)Artificial Intelligence
:CE o23
Examination :B.Tech Semester VII Seat No.
Date :31/07/2023 Day Monday
Time :2:30 to 3:45 PM Max. Marks :36
INSTRUÇTIONS:
1. Figures to the right indicate maximum marks for that question.
2. The symbols used carry their usual meanings.
3 Assume suitable data, if required & mention them clearly.
4 Draw neat sketches wherever nccessary.
Page 1 of 2
Q.3 Attempt the following questions. To calculate [6]
C02 A (a) Solve 8-puzzle problem using steepest ascent hill climbing algorithm.
desirability of amove use following heuristic function.
positions.
H(X): Sum of Manhattan distance of the tiles from their goal
+0+1+1+0+1=5
H(Start) - h(1)+h(2)+h(3)+h(4)+h(5)+h(6)-+h(7) +h(8)-0+1+1
H(Goal)= 0
Start State Goal State
2 1
1
4 5 6
4
7 8
Page 2 of 2
DHARMSINH DESAI UNIVERSITY, NADIAD
DExamination
Date
:B.Tech Semester VI
:01-08-2023
FACULTY OF TECHNOLOGY
FIRST SESSIONAL
SUBJECT: (CE -714) Image Processing
Seat No.
Day :Tuesday
io 3374
[12]
Q.1 Doas directed. [2
CO2 A (a) Validate that convolution in spatial domain is analogous to multiplication in
frequency domain.
COI N (b) When you enter a dark theater on a bright day, it takes an appreciable interval of 12]
time before you can see well enough to find an empty seat. Which of the visual
process is at play in this situation? [2]
CO1 R (C) Consider an impulse function S (t, z) of two continuous variables, tand z. Write the
general form (equation) of8 (t, z) and sifting property of ô(t, z) at (t, z) =0 and (t,
z) =(to, Z).
U(d) Give the general form (equations) of Log and Power-Law intensity transformation (2]
CO1
functions and draw the graph representing these within the range (0 to L-l), where L
is maximum intensity. (2]
CO1 E (e) Consider the following 3 bit image of size 3 x 3:
2
3
4
Find the average value of intensities in the image using the probability information about
the number of pixels being at a particular intensity level (p(r).
CO2 A () i Is the filter shown below a smoothing filter or sharpening filter? Give brief [2]
reason.
1|2 1
2| I|2
12 1
ii. In a given application an averaging mask is applied to input images to reduce
noise, and then a Laplacian mask is applied to enhance small details. Would
the result be same if the order is reversed?
-W/2 0 W/2
Q.3 Attempt the following. (12]
CO2 E (a) The following figures show {06|
fig 1: a 3-bit image of size 5 x5
fig 2: a laplacian filter
1 2 3 4
Laplacian
13 7620
filter
-| - 2 - |
2 214 |6 1 1
3 4 7 (2)5 |4 1 (74+
22g
tea)
1
43 0 6 21
0
S|7|5I20
fig 1 IC24s fig2
1
-(2,+
No. of Pixels 11 10 15 3
OR
Gray Level 2 4 6 7
No. of Pixels 6 4 8 10 12 12
b) For Histogram Equalization Transformation function T¢) give reasons for {02]
the following conditions to be true.
i. T(r) is monotonically increasing inthe interval 0 <rsL-l.
i. 0<T(r) sL-1 for 0<r<L-1.
Page 2 of 2
D DHARMSINH DESAI UNIVERSITY, NADIAD
FACULTY OF TECHNOLOGY
FIRST SESSIONAL
SUBJECT: (CE725) BIG DATA ANALYTICS
bI5 30
2G
d 10
t 3.5
Page 1 of 2
MaraliOt A’B ’ t
TI (Bread, Milk}
T2 {Bread, Donut, Book, Eggs)
T3 {Milk, Donut, Book, Cola}
T4
{Bread, Milk, Donut, Book}
TS
{Bread, Milk, Donut, Cola)
OR
Q.3 Attempt the following: |12]
C02 A (a) Apply the statistics of Five Number Summary ( Upper
Extreme, Lower Extreme, l°}
Median, Upper & Lower Quartile) for Interquartile range on the dataset (3, 7. 3, J.
12, 14, 21, 13, 18}, and Visualize it using the
CO3 E Whisker/Box plot.
(b) Support Data Characterization using Attribute oriented Induction (AO) with [6]
example.
ID FACULTY OFTECHNOLOGY
B.TECH. SEMESTER VII [CE]
SUBJECT: (CE-718)COMPILER
Seat No
CONSTRUCTION
Examination : First Sessional :Thursday
:03/08/2023 Day
Date Max. Marks :36
Time :02:30 PM to 03:45 PM
INSTRUCTIONS:
that question.
1. Figures to the right indicate maximum marks for
2 The symbols used carry their usual meanings.
clearly.
3. Assume suitable data, if required & mention themn
4. Draw neat sketches wherever necessary.
(12]
Q.1 Do as directed. 2
example: Token, Lexeme and Pattern
CO1-R a) Explain the following Terms with suitable 2
CO1-A b) Identify the lexemes that make up the tokens from the
given C code
int max (i,j)
return i >j?i:j;
} 2
CO1-U c) Compare: Compiler and Interpreter.
2
CO4-E d) State the number of nodes and edges in the DAG for the expression
x+x+ (x+x +x+ (xtx+xt x)
CO4-U e) Define strength reduction and frequency reduction with an example. 2
instructions,
CO4-À f) Perform local copy propagation on the given code block with 4
p=r=ptq; S=p;p=r* s;
OR
[12]
Q.3 Answer the following 6
CO4-A a) Compute EVALi) and KIlLL() for the graph in Fig, A. 6
product of two vectors a and b of length 20.
CO4-E D) Consider the source code in Fig. B. for dot
Dothe following:
Write the cquivalent three address code
Identify leader(s) and construct basic block(s)
Draw the control flow graph
ENTRY
begin
prod:= 0;
i:=1;
B
(1) a = 1 do begin
(2) b = 2
prod := prod + a<i] * b[iJ:
i:=i+ 1;
(3) c = a+b
end
(4) = C-a
B
while i <=20
end
(5) d = b+d
B
(8} b atb
B(6) d = a+b (9) e = C-&
e = e+1
(10) a = b*d
(11) b = a-d
EXIT
Fig, A. Fig. B.