Set No:

1

.in

Code No: NR-311201 III-B.Tech I-Semester Supplementary Examinations May/June, 2004 DESIGN AND ANALYSIS OF ALGORITHMS (Common to Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --What is meant by time complexity? Give and explain different notations used with examples.

2.

Write an algorithm which multiples two n X n matrices. Compute its time complexity? Determine the precise number of multiplications, additions, and array element accesses.

3. a)

Write Prim's algorithm under the assumption that the graphs are represented by adjacency lists. Analyze precisely the computing time and space requirements of your new version of Prim's algorithm using adjacency lists.

b)

or ld

1.

Write algorithm to split the AVL tree and to concatenate two AVL trees. The algorithm should work in time proportional to the height of the tree.

5. a)

What do you mean by forward and backward approach of problem solving in Dynamic Programming? What are the differences between Greedy and dynamic programming method of problem solving techniques?

b)

6. a) b)

uW

4.

Write a detailed note on graph coloring. Present and algorithm which finds all m-colorings of a graph. Draw the state space for m-closing graph using an suable graph. Present a program schema for a FIFO branch and bound search for a Least – Cost answer node.

8.

Explain in detail how the technique of backtracking can be applied to solve the 8-queens problem. Present an algorithm for this and explain.

Aj

nt

7.

###

Set No:

2

.in

Code No: NR-311201 III-B.Tech I-Semester Supplementary Examinations May/June, 2004 DESIGN AND ANALYSIS OF ALGORITHMS (Common to Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --Define space complexity. Explain the same with an example.

2.

Explain the divide and conquer method with an example.

3.

Explain the Kruskal’s algorithm with an example and analyze its time complexity.

4.

Use an AVL tree as the basis of an algorithm to execute MIN, #UNION, and DELETE on sets consisting of integers 1 through n, using O(log n) steps per operation.

5.

Discus the dynamic programming solutions for the problems reliability design and traveling sales person.

6. a) b)

Present an algorithm for depth first search and explain with an example. Write a detailed note on breadth first graph traversal.

7.

Write a program schema for a LIFO branch & bound search for a Least – cost answer node.

8. a)

Derive an algorithm, which accepts a number in decimal and produces the equivalent number in binary. What is its time complexity? Derive an algorithm, which performs the inverse transformation of the above problem.

uW

Aj

nt

b)

or ld

1.

###

Set No:

3

.in

Code No: NR-311201 III-B.Tech I-Semester Supplementary Examinations May/June, 2004 DESIGN AND ANALYSIS OF ALGORITHMS (Common to Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --Define algorithm. Explain the characteristics of the algorithm. Write an algorithm to find the largest of N numbers.

2. a) b)

Write an algorithm sort N numbers in ascending order using Merge sort . Calculate the time complexity of Merge sort.

3.

Formulate an algorithm for a spanning tree problem in terms of a sequence of set operations in which take G as the undirected graph; S as the undirected tree; V as the number of vortices; E as the number of edges; T as a set used to collect the edges of the final minimum spanning tree; C as the cost function for the graph G given by {e  C (e)} for the sub graph G1=(V1,E1) of G. Use set VS for the vertex set of the trees in the spanning forest to write the minimum cost spanning tree algorithm.

4.

Write algorithms to split an AVL tree and to concatenate two AVL trees. The algorithms should work in time proportional to the heights of the trees.

5. a)

Design a three stage system with device types D1, #D2 and D3. The costs are Rs.30, Rs.15 and Rs.20 respectively. The cost of the system is to be not more than Rs.105. The reliability of each device type is 0.9, 0.8 and 0.5 respectively. Explain in detail the reliability design problem.

b)

Show that a) The inorder and postorder sequences of a binary tree uniquely define the binary tree. b) Write a detail note a depth first traversal

nt

6.

uW

or ld

1. a) b)

Explain the principles of a) Control Abstractions for LC – search c) FIFO branch & Bound

Aj

7.

8.

b) d)

Bounding LC Branch & Bound

Show the tuples which would result by representing the polynomials 5x2 + 3x + 10 and 7x + 4 at the values x = 0, 1, 2, 3, 4, 5, 6. What set of tuples are sufficient to represent the product of these two polynomials. ###

Set No:

4

.in

Code No: NR-311201 III-B.Tech I-Semester Supplementary Examinations May/June, 2004 DESIGN AND ANALYSIS OF ALGORITHMS (Common to Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks ---

Explain set representation using trees and develop algorithms for UNION and FIND using weighing and collapsing rules.

2.

Show how quick sort sorts the following sequences of keys in ascending order. 22,55,33,11,99,77,55,66,54,21,32

3. a)

Explain the control at straction of Greedy method compare this with Dynamic programming. Applying the Greedy stentegy find the solution for optimal storage on tapes problem instance n = 3, (l1, l2, l3) = (5, 10, 3). Explain the 0/1 knap sack problem algorithm with Greedy concept.

b) c)

or ld

1.

Let T be a binary search tree with n vertices that is an AVL tree. Write O(log n) algorithms for the instructions INSERT and DELETE that keep the tree an AVL tree. You may assume the height of each vertex can be found at that vertex and that height information is automatically updated.

5.

Using a dynamic approach coupled with the set generation approach, show how to obtain an 0 (2n/2) algorithm for the 0/1 knapsack problem.

6. a)

Write a non recursive algorithm for inorder traversal of a binary tree T. Each node has four fields: LCHILD, DATA, PARENT, RCHILD. The preorder and postorder sequences of a binary tree do not uniquely define the binary tree.

nt

b)

uW

4.

Write LC branch & bound to find minimum cost answer node algorithm. Write a program schema DFBB for a LIFO branch and bound search for a least cost answer node.

8.

If A (x) = anxn +…+ a1x + ao then the derivative of A (x), A '(x) = nanxn-1 +…+ a1 Derive an algorithm which produces the value of a polynomial and its derivative at a point x = v. Determine the number of required arithmetic operations.

Aj

7. a) b)

###

Set No:

(Common to Computer Science and Information Technology and Computer · Science and Systems Engineering) · Time: 3 hours ... 1 · ) of G. Use set VS for the.

105KB Sizes 1 Downloads 88 Views

Recommend Documents

Set No:
List out the practical considerations to be checked for continuous gas ... Explain how silica analysis is done in boiler water of power plant. 3. a) What is meant by ...

Set No.
What do you understand by principles of planning a building? Prepare a typical · aspect diagram for the area where direction of prevailing breeze is from North-.

Set No.
b) Draw the circuit diagram of 4-bit Johnson counter using D-flip flop and explain .... 6. a) Compare merits and demerits of ripple and synchronous counters.

Set No.
Given: turbine diameter = 120m and turbine operating speed = 40 rpm at · maximum efficiency. Propeller type wind turbine is considered. 4. a) What is the basic ...

Set No.
Obtain an expression for unit speed, unit discharge and unit power for a turbine. 2. a) What do you understand by air vessels? Explain with a neat sketch.

Set No
+ 2x1x2 – 4x2x3 – 2x3x1. b) · Define the following terms: (i) objective function surfaces (ii) constraint surface · (iii) bound points. 3.a) Maximize f= 8x1 + 4x2 + ...

Set No.
1.a) Obtain the expression for the resistance and capacitance for gas system. ... List various variables to be measured and controlled in nuclear power plant.

Set No.
instructions at the beginning and end of this set of code in order to switch .... 5.a) Write an assembly language program that will examine an ASCII string of 100.

Set No.
If the analog i/p voltage is +6.85 v, what will be the R-2R ladder · o/p voltage when ... b) Design a ramp generator using 555 timer having an output frequency of.

Set No.
efficiency of the cycle and mean effective pressure for the cycle. ... b) Calculate the heat flux emitted due to thermal radiation from a black surface at · 6000.

Set No.
8.a) Write a note on creep resistant materials. b) Explain all the ... b) Sketch the creep diagram, and explain the various stages of creep. @@@@@. Set No. 2.

Set No:
What is the difference between radio compass and ADF? Explain the principle · and operation of Automatic direction finder. 6. Define analog and digital ...

Set No.
endurance limit of a metal. b) What are the factors which affect the fatigue strength of materials? 7. a) What is creep? Draw an ideal creep curve and explain the ...

Set No.
(i) Band Rate · (ii) Request Filter ... 3. a) Write the comparison between teleprinters and CRT terminals. b) What are the ... What savings does it offer? b) What is a ...

Set No.
Code No.: 220107 · II B.Tech. Regular Semester Examinations April, 2003 · BUILDING PLANNING (DESIGN & DRAWING) · (Civil Engineering) · Time: 3 hours.

Set No:
b) How does butadiene differ from isoprene? 4.a) Describe about the synthetic fiber industry in India. b) Write, with an example on each of the following.

Set No:
graph. b) Draw the state space tree for m-closing graph using a suitable graph. 8. Present a program schema for a FIFO Branch & Bound search for a Least-Cost.

Set No:
Code No: 410105. IV B. Tech I-Semester Regular Examinations, November-2004. ADVANCED STRUCTURAL ANALYSIS · (Civil Engineering) · Time: 3 hours.

Set No
b) Explain the effect of Metallurgical variables on fatigue properties · 7.a) Explain Ductile to Brittle transition phenomenon. b) Compare charpy with Izod impact testing. 8.a) What is stress relaxation. Draw stress-strain curves for ductile and brit

Set. No.
Information Technology, Electronics and Control Engineering, Electronics and ... Computer Engineering, Computer Science and System Engineering) ..... Draw and explain the logic diagram of a master slave D flip-flop using Nand gates. ###.

Set No.
Chemical Engineering, Mechatronics, Metallurgy & Material Technology, · Aeronautical ... b) What is cache memory? Where is it placed? What is its .... 7.a) Explain the steps involved in computing the coefficients of the regression · polynomial.

Set No.
b) Classify the blast furnace stoves. What are the different values in the stove and · their functions? 3.a) What factors affect reducibility of iron ores? Discuss them.

Set No.
1.a) Write the name of places for occurance of iron ores in India. b) Explain the process of either Sintering or Pelletizing. 2.a) Explain hearth, tuyeres, stack with ...

Set No
Code No.: 320101. III-B.Tech. II-Semester Examinations April 2003 · STRUCTURAL ANALYSIS –II · (Civil Engineering) · Time: 3 Hours · Max. Marks: 80.