Code No: 15071

NR

Set No - 1

in

III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009 DESIGN AND ANALYSIS OF ALGORITHMS Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

ld .

1. Formulate an algorithm for a spanning tree problem in terms of a sequence of set operations in which take G as an undirected graph; S as an undirected tree; V as the number of vertices; E as the number of edges; T as a set used to collect the edges of the final cost function for the graph P minimum spanning tree; C as the 1 G given by { eεE 1 C (e)} for the sub graph G = (V 1 , E 1 )of G. Use set VS for the vertex set of the trees in the spanning forest to write the minimum cost spanning tree algorithm. [16]

or

2. What is interpolation? Explain Lagrange interpolation algorithm & Newtonian Interpolation algorithm. [16]

uW

3. Write an algorithm to search a binary search tree T for an identifier X. Assume that each node in T has three fields: LCHILD, DATA and RCHILD. What is the computing time of your algorithm? [16] 4. For the followin sequence of instructions UNION (1,2,2) UNION(2,3,3) . .

nt

UNION(n-1,n,n) FIND(1) FIND(2) .

Aj

.

FIND(n)

(a) Write the tree after (n-1)UNION operations.

[8]

(b) Compute the cost of n FIND instructions.

[8]

5. Define multistage graphs problem. Name the algorithms, which solve the problem. Write one of the algorithms and explain its working with the help of an example. [16]

1

Code No: 15071

NR

Set No - 1

6. Present a program schema for a FIFO branch and bound search for a Least - Cost answer node. [16] 7. (a) Write an algorithm of Quick sort and explain in detail. (b) Suggest refinements to Merge sort to make it in-place.

[8+8]

in

8. Write a procedure for postorder evaluation of a game tree using alpha beta pruning [16]. and deep alpha beta pruning and analyse for its time complexity.

Aj

nt

uW

or

ld .

?????

2

Code No: 15071

NR

Set No - 2

in

III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009 DESIGN AND ANALYSIS OF ALGORITHMS Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

2. For the followin sequence of instructions UNION (1,2,2) . . UNION(n-1,n,n) FIND(2) . . FIND(n)

uW

FIND(1)

or

UNION(2,3,3)

ld .

1. Write an algorithm to search a binary search tree T for an identifier X. Assume that each node in T has three fields: LCHILD, DATA and RCHILD. What is the computing time of your algorithm? [16]

[8]

(b) Compute the cost of n FIND instructions.

[8]

nt

(a) Write the tree after (n-1)UNION operations.

3. Write a procedure for postorder evaluation of a game tree using alpha beta pruning and deep alpha beta pruning and analyse for its time complexity. [16].

Aj

4. Define multistage graphs problem. Name the algorithms, which solve the problem. Write one of the algorithms and explain its working with the help of an example. [16]

5. What is interpolation? Explain Lagrange interpolation algorithm & Newtonian Interpolation algorithm. [16] 6. Present a program schema for a FIFO branch and bound search for a Least - Cost answer node. [16] 7. (a) Write an algorithm of Quick sort and explain in detail. (b) Suggest refinements to Merge sort to make it in-place. 3

[8+8]

Code No: 15071

NR

Set No - 2

in

8. Formulate an algorithm for a spanning tree problem in terms of a sequence of set operations in which take G as an undirected graph; S as an undirected tree; V as the number of vertices; E as the number of edges; T as a set used to collect the edges of the final cost function for the graph P minimum spanning tree; C as the G given by { eεE 1 C (e)} for the sub graph G1 = (V 1 , E 1 )of G. Use set VS for the vertex set of the trees in the spanning forest to write the minimum cost spanning tree algorithm. [16]

Aj

nt

uW

or

ld .

?????

4

Code No: 15071

NR

Set No - 3

in

III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009 DESIGN AND ANALYSIS OF ALGORITHMS Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

ld .

1. What is interpolation? Explain Lagrange interpolation algorithm & Newtonian Interpolation algorithm. [16]

2. Write an algorithm to search a binary search tree T for an identifier X. Assume that each node in T has three fields: LCHILD, DATA and RCHILD. What is the computing time of your algorithm? [16]

uW

or

3. Formulate an algorithm for a spanning tree problem in terms of a sequence of set operations in which take G as an undirected graph; S as an undirected tree; V as the number of vertices; E as the number of edges; T as a set used to collect the edges of the final cost function for the graph P minimum spanning tree; C as the 1 G given by { eεE 1 C (e)} for the sub graph G = (V 1 , E 1 )of G. Use set VS for the vertex set of the trees in the spanning forest to write the minimum cost spanning tree algorithm. [16] 4. Present a program schema for a FIFO branch and bound search for a Least - Cost answer node. [16] 5. For the followin sequence of instructions UNION (1,2,2) UNION(2,3,3) .

nt

.

UNION(n-1,n,n) FIND(1)

Aj

FIND(2) . .

FIND(n)

(a) Write the tree after (n-1)UNION operations.

[8]

(b) Compute the cost of n FIND instructions.

[8]

6. Write a procedure for postorder evaluation of a game tree using alpha beta pruning and deep alpha beta pruning and analyse for its time complexity. [16]. 5

Code No: 15071

NR

Set No - 3

7. (a) Write an algorithm of Quick sort and explain in detail. (b) Suggest refinements to Merge sort to make it in-place.

[8+8]

in

8. Define multistage graphs problem. Name the algorithms, which solve the problem. Write one of the algorithms and explain its working with the help of an example. [16]

Aj

nt

uW

or

ld .

?????

6

Code No: 15071

NR

Set No - 4

in

III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009 DESIGN AND ANALYSIS OF ALGORITHMS Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

ld .

1. Write a procedure for postorder evaluation of a game tree using alpha beta pruning [16]. and deep alpha beta pruning and analyse for its time complexity.

2. Present a program schema for a FIFO branch and bound search for a Least - Cost answer node. [16] 3. (a) Write an algorithm of Quick sort and explain in detail.

[8+8]

or

(b) Suggest refinements to Merge sort to make it in-place.

4. Define multistage graphs problem. Name the algorithms, which solve the problem. Write one of the algorithms and explain its working with the help of an example. [16]

uW

5. What is interpolation? Explain Lagrange interpolation algorithm & Newtonian Interpolation algorithm. [16] 6. For the followin sequence of instructions UNION (1,2,2) UNION(2,3,3) . .

nt

UNION(n-1,n,n) FIND(1) FIND(2)

Aj

. .

FIND(n)

(a) Write the tree after (n-1)UNION operations.

[8]

(b) Compute the cost of n FIND instructions.

[8]

7. Formulate an algorithm for a spanning tree problem in terms of a sequence of set operations in which take G as an undirected graph; S as an undirected tree; V as the number of vertices; E as the number of edges; T as a set used to collect the 7

Code No: 15071

NR

Set No - 4

edges of the final cost function for the graph P minimum spanning tree; C as the 1 1 G given by { eεE C (e)} for the sub graph G = (V 1 , E 1 )of G. Use set VS for the vertex set of the trees in the spanning forest to write the minimum cost spanning tree algorithm. [16]

in

8. Write an algorithm to search a binary search tree T for an identifier X. Assume that each node in T has three fields: LCHILD, DATA and RCHILD. What is the computing time of your algorithm? [16]

Aj

nt

uW

or

ld .

?????

8

NR Set No - 1

Present a program schema for a FIFO branch and bound search for a Least - Cost answer node. [16]. 7. (a) Write an algorithm of Quick sort and explain in detail.

62KB Sizes 0 Downloads 179 Views

Recommend Documents

NR Set No - 1
III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009 · MANAGERIAL ECON. ... What are the merits and limitations of Pay Back period? How does ...

NR Set No - 1
[8+4+4] · 8. (a) Write a short note on the factors influencing the performance of turbines? (b) Obtain an expression for the specific speed of a turbine? [8+8]. *****.

NR Set No - 1
Code No: 14001. NR. Set No - 2. II B.Tech II Semester Semester Supplimentary Examinations,February 2010 · APPLIED ELECTRONICS · Civil Engineering.

NR Set No - 1
Consider a brick wall (0.7 W/m K) of thickness 30 cm. The inner surface is at · 280C and the outer surface is exposed to cold air with heat transfer coefficient of 36.

NR Set No - 1
8. (a) Why trap circuits are added in video amplifier to attenuate frequency Spec- · trum occupied by FM sound signal? What is the undesired effect of sound · signal in reproduced picture? (b) Discuss relative merits of cathode and grid modulation of

NR Set No - 1
Discuss the following methods of anodizing treatments. (a) BENGOUGH [Chromic acid process] · (b) ALUMILITE [Sulphuric acid process] · [8+8] · *****. 2.

NR Set No - 1
A steel rod 28 mm diameter is fixed concentrically in a brass tube of 42 mm outer ... Circular · ii. Square · iii. Hollow circular with inner radius half the outer radius.

NR Set No. 2
iii. Domain. [2+2+3] · 4. (a) Develop an example showing how a single locking protocol could lead to a ... (b) What is the oldest log record that we need to retain?

NR Set No. 2
is assumed as an ideal gas, prepare a P-x-y diagram for this system at 50 oC. ... lnp2 sat / Kpa = 16.059381 - 3644.297/(t oC +239.765). [16]. 3. AjntuWorld.in ...

NR Set No. 2
Code No: NR220104. NR. Set No. 2. II B.Tech II Semester Supplementary Examinations,May 2010 · DATA STRUCTURES THROUGH C · Civil Engineering.

NR Set No. 2
(a) Give the classification of solid state Microwave devices along with examples? (b) Why conventional tubes and solid state devices can not be used at ...

NR Set No. 2
2. 5. Derive equations to describe the displacement diagram of a cam which rises with ... cam rotation angle is ß Plot the displacement diagram and its first three ...

NR Set No. 2
5. (a) What is meant by ignition delay? Name and describe the two components of · ignition delay period. What is the importance of delay period? Should the.

NR Set No. 2
Normal Cost · Crash Cost · Days Cost(Rs.) Days Cost(Rs.) Disassemble motor · - · 8 · 160 · 6 · 200 · Clean and paint frame · A · 7 · 80 · 4 · 190 · Rewind armature.

NR Set No. 2
PRODUCTION PLANNING AND CONTROL · Mechanical Engineering ... the symbols used in drawing Gantt chart. [6+10] · 6. (a) Explain how a computer can be ...

NR Set No. 2
(b) What is Narrow Band FM ? Draw the block diagram of Armstrong FM gen- · erator. Bring out the role of frequency multiplier and down converters. [8+8].

NR Set No. 2
(b) Draw the internal circuit diagram and pin diagram (DIP) of 566 VCO. Explain its operation and derive expression for output frequency fo. [8]. 1. AjntuWorld.in ...

NR Set No. 2
(b) Write the code for printing the message 'IBM PC ASSEBLY LANGUAGE · PROGRAMMING' ... 3. (a) What is the BIOS memory location of the keyboard buffer?

NR Set No - 1
t, and VSWR. [8M] · 4. (a) Write Maxwell's equations in point form as well as in integral form. Then give · the word statements of the these field equations. [8M] · (b) A copper wire carries conduction current of 1 amp at 60 Hz. What is the · displac

NR Set No - 1
loop antenna treated as a dual of short electric dipole? [8+8]. 7. (a) Explain the difference between driven and parasitic elements in an array. (b) “Most of the long ...

NR Set No. 2
Determine the heat transferred during the process and the final pressure. [16] · 8. (a) A gas mixture consisting of 20% ethane and 80% oxygen at 298K is burned.

NR Set No. 2
(b) Explain how number of page faults can be calculated for the given page trace · using FIFO page replacement strategy. (Assume 3 frames are available in the.

NR Set No. 2
(a) Differentiate between transmission path, virtual path and virtual circuit. [6] · (b) Explain link state routing with an example. [10] · 2. (a) Does the TC sublayer ...

NR Set No. 2
Figure 5. 7. (a) Derive the expression for potential at any point due to a point charge Q and also write electric field in rectangular co ordinate system. [8]. 3.