NR

Code No: NR220104

.in

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

NR

Code No: NR220104

Aj

nt

uW

or ld

.in

?????

2 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.

24KB Sizes 3 Downloads 161 Views

Recommend Documents

NR221102 II B.Tech II Semester Supplementary Examinations, Apr ...
(a) Why FSK is not suitable for high speed modems. (b) Why are modems needed for telephone communications. (c) Explain the asymmetry of 56 k modems.

NR220401 II B.Tech II Semester Supplementary Examinations, Apr ...
Job Description · Normal · Crash Cost(Rs) · Duration Cost Duration · (Days) · (Rs) · Days · A · Lay foundations and build walls · 5 · 3000 · 4 · 4000 · B · Tile roofing.

NR220401 II B.Tech II Semester Supplementary Examinations ...
(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 ...

NR220105 II B.Tech II Semester Supplementary Examinations ...
(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 ...

NR221801 II B.Tech II Semester Supplementary Examinations ...
(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 ...

NR220403 II B.Tech II Semester Supplementary Examinations ...
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.

NR221401 II B.Tech II Semester Supplementary Examinations ...
(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].

NR221002 II B.Tech II Semester Supplementary Examinations ...
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, ...

NR221103 II B.Tech II Semester Supplementary Examinations ...
(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 ...

NR221105 II B.Tech II Semester Supplementary Examinations ...
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.

NR321401 III B.Tech II Semester Supplementary Examinations, Apr ...
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.

NR420205 IV B.Tech II Semester Supplementary Examinations, Apr ...
... 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 ...

NR422105 IV B.Tech II Semester Supplementary Examinations, Apr ...
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 α,.

NR421201 IV B.Tech II Semester Supplementary Examinations, Apr ...
(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.

NR420502 IV B.Tech II Semester Supplementary Examinations, Apr ...
(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 ...

NR420302 IV B.Tech II Semester Supplementary Examinations, Apr ...
IV B.Tech II Semester Supplementary Examinations, Apr/May 2006. ENVIRONMENT AND POLLUTION CONTROL · ( Common to Mechanical Engineering and ...

NR321804 III B.Tech II Semester Supplementary Examinations, Apr ...
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.

NR421001 IV B.Tech II Semester Supplementary Examinations, Apr ...
(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.

NR320804 III B.Tech II Semester Supplementary Examinations, Apr ...
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. ...

NR321003 III B.Tech II Semester Supplementary Examinations, Apr ...
III B.Tech II Semester Supplementary Examinations, Apr/May 2006. PRINCIPLES OF BIO-MEDICAL INSTRUMENTATION · (Electronics & Instrumentation ...

NR420806 IV B.Tech II Semester Supplementary Examinations, Apr ...
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.

NR421203 IV B.Tech II Semester Supplementary Examinations, Apr ...
(b) Differentiate lossy compression and lossless compression. Mention their appli- cations. (c) What do you mean by improved Gray Scale Quantization?

NR211002 II B.Tech I Semester Supplementary Examinations ...
(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 ...

NR222002 II B.Tech II Semester Supplimentary Examinations, Apr ...
(a) What is the difference between chipping and spalling? (b) Explain how tool life curves are established? (c) Discuss working principle of strain gauge ...