II B.Tech II Semester Supplementary Examinations, Apr/May 2006 DATA STRUCTURES THROUGH C (Civil Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Write a program to print the sum of rows and sum of columns of a given matrix. [16] 2. (a) Formulate an algorithm that will change the INFO field of the K th node of a linked list value given by Y.
or ld
(b) Formulate an algorithm which will perform a deletion operation in a single linked list. [8+8] 3. (a) Write a recursive program in C for the following Ackermans function a(m,n) = n+1 if m==0 a(m,n) = a(m-1,1) if m!=0,n==0 a(m,n) = a(m-1,a(m,n-1)) if m!=0,n!=0
uW
(b) Determine what does the following recursive C function computes. Write an iterative function to accomplish the same purpose func() int n ; { if (n==0) return (0) return (n+func(n-1)); } /* end func */ [8+8]
nt
4. If an array holding a queue is not considered circular, the general method suggests that each remove operation must shift down every remaining element of a queue. An alternative method is to postpone shifting until rear equals the last index of the array. When that situation occurs and an attempt is made to insert an element into the queue, the entire queue is shifted down, so that the first element of the queue is in position O of the array. What are the advantages of this method over performing a shift at each remove operation? What are the disadvantages? Rewrite the routines remove, insert, and empty using this method. [16]
Aj
5. Write a C program to show basic operations on a tree.
[16]
6. What are different graph traversal methods. Explain them with neat sketches.[16] 7. Write an algorithm for binary search and explain with a suitable example
[16]
8. Trace the action of heap sort in the following list. Draw the initial tree to which the list corresponds. Show how is it converted into a heap. 26,33,35,29,19,12,22. [16] 1 of 2
NR220104 II B.Tech II Semester Supplementary Examinations, Apr ...
a(m,n) = a(m-1,a(m,n-1)) if m!=0,n!=0 · (b) Determine what does ... [8+8] · 4. If an array holding a queue is not considered circular, the general method suggests.
(a) Job order production and batch production system. (b) Mass production and flow production. [4+4+4+4] · 7. DefineâCritical pathâ, âslack timeâand âDummy ...
(b) One bag contains 4 White balls and 3 black balls and a second bag contains 3 ... [8+8] · 3. (a) The amount of bread ( in hundreds of pounds) X that a certain ...
(c) Explain sign conventions of heat and work in thermodynamics. [5+5+6] · 3. (a) State and explain second law of thermodynamics. (b) Define and explain ...
b=4.318 cm is fed by a 4 GHz carrier from a coaxial cable. Determine if a · TE10 mode will be propagated. If so calculate the phase velocity and group · velocity.
(c) An amplifier with voltage gain of 60 decibels uses 0.05 of its output voltage in · negative feedback. Calculate the gain of the feedback amplifier. [6+6+4].
Determine the length of the wire needed if the diameter · of the wire is 0.25 mm. Assuming that the temperature coefficient of resis- · tance of the wire is constant, ...
(b) Draw the block schematic of 4x1 MUX and give its truth table. [6] · 6. (a) Design a full adder with minimum number of NAND gates. [8] · (b) Draw the logic ...
8. (a) Enumerate various mechanical and diffusion properties of cartilage with ex- · amples? [8] · (b) Write briefly about âlubricationâ of joints? [8] · *****. 1 of 1.
250 kN and a minimum value of 100 kN. The properties of the plate material are as follows: · Endurance limit stress = 225 MPa, and yield point stress = 300 MPa.
... Apr/May 2006. UNIX AND WINDOWS NT ... (b) Write about shell variables · [8+8] ... How the Windows NT operating system can partition the disk? How it can ...
A constant strain triangle in a state of plane stress is subjected to a uniform tem- · perature change of âT. Assuming that the coefficient of thermal expansion is α,.
(b) With the help of diagram, explain the (input/output sub system)IOSS oper- · ations for ... a. A police database the provides information on stolen automobiles.
(a) Explain the various capabilities and limitations of the robot languages. [7] · (b) Describe the following search techniques: · i. Depth-first search · ii. Breadth-first ...
8. (a) Describe the HyL process of sponge Iron production. [6] · (b) Explain the advantages and disadvantages of HyL process of sponge Iron pro- · duction.
(a) Explain the various capabilities and limitations of the robot languages. ... 3. What are the different tupes of electric drives used in the robots? Describe them.
distribution within the cylinder. θ denotes a coordinate in a cylindrical coordinate · system. [16] · 8. (a) Two concentric cylindrical metallic shells of radii a & b (i.e. ...
All Questions carry equal marks · ***** · 1. Explain the ultimate analysis of coal and its importance. [16] · 2. Discuss the importance of catalyst in shift conversion.
(b) Explain the basic principle of the instrument used for Condition monitoring · of any process. [8+8] · 2. (a) Compare and construct the functioning of rupture ...
(a) What is the difference between chipping and spalling? (b) Explain how tool life curves are established? (c) Discuss working principle of strain gauge ...