• Tidak ada hasil yang ditemukan

INSTITUTE OF AERONAUTICAL ENGINEERING - IARE

N/A
N/A
Protected

Academic year: 2025

Membagikan "INSTITUTE OF AERONAUTICAL ENGINEERING - IARE"

Copied!
2
0
0

Teks penuh

(1)

Hall Ticket No Question Paper Code: ACS002

INSTITUTE OF AERONAUTICAL ENGINEERING

(Autonomous)

B.Tech II Semester End Examinations (Supplementary) - May, 2019 Regulation: IARE – R16

DATA STRUCTURES

Time: 3 Hours (Common to CSE | IT | ECE | EEE) Max Marks: 70 Answer ONE Question from each Unit

All Questions Carry Equal Marks

All parts of the question must be answered in one place only

UNIT – I

1. (a) What is selection sort? State the process and sort the following set of elements using this technique:

20,35,40,100,3,10,15. [7M]

(b) Write an algorithm to Sort an array of shown in Figure 2 and 2’s.You are given an array of 0s 1s and 2s in random order. Sort the array so the 0’s,1’s and 2’s are segregated. [7M]

2. (a) Write a binary search algorithm that finds an item in a sorted array. Explain with an example.

[7M]

(b) Write an algorithm to find sum of natural numbers using recursion. (This program will read an integer number and print sum using recursion, for example: input value is 3, and then sum is:

6(1+2+3).) [7M]

UNIT – II

3. (a) What is difference between circular queue and linear queue. Write a function to insert an element

into a circular queue. [7M]

(b) Evaluate the following postfix notation of expression (Show status of stack after execution of each

operation ): 5 6 2 + * 12 4 / - [7M]

4. (a) Write a function to pop an element and push an element into a stack using array. [7M]

(b) Translate infix expression into its equivalent postfix expression: [7M]

A∗(B+D) /E−F ∗(G+H/K)

UNIT – III

5. (a) What is sparse matrix? Represent a sparse matrix using single linked list. [7M]

(b) Write an algorithm to sort and print out the elements in a singly linked list? [7M]

Page 1 of 2

(2)

6. (a) Explain double linked list with an application. [7M]

(b) Write a function to pop an element and push an element into a stack using single linked list.

[7M]

UNIT – IV

7. (a) Explain with an example how queue is useful to traverse a graph using BFS. [7M]

(b) Write the preorder, post order and inorder traversal for the tree shown in Figure 1. [7M]

Figure 1

8. (a) Write an algorithm to delete a node from a binary search tree. [7M]

(b) List out different types of graph representations. Convert the given adjacency list representation

of a graph shown in Figure 2 into linked representation. [7M]

Figure 2

UNIT – V

9. (a) Explain the RL and LR rotations in an AVL tree with an example [7M]

(b) Show the result of inserting these keys into an initially empty AVL tree: 42, 20, 44, 57, 97, 78,

83, 62, 37, 14. [7M]

10. (a) Explain different types of collision resolving techniques. [7M]

(b) The keys 15,17,8,35,25,75,and are inserted into an initially empty hash table of length 10 using open addressing with hash function h(k) = k mod 10 and linear probing. Develop and explain resultant hash table.

[7M]

− ◦ ◦ ◦ ◦ −

Page 2 of 2

Referensi

Dokumen terkait

[7M] b Determine purpose of distributed database access primitives in distributed databases and show how integrity constraints are used in distributed databases [7M] UNIT-IV 7.. a

Understand CO 3 ACSB03.09 9 Describe how a polynomial is represented using singly linked lists 10 List various operations of linked list and explain how to insert a node anywhere in

[7M] b Prepare a purchases return journal book from the following transactions for January 2014:[7M] Table 3 Date Details Amount Rs.. a Bike Ltd purchased 10 bikes during January and

[7M] b A random process is defined as Xt=A coswct+ θ where θ is a uniform random variable over0,2π .Verify the process is ergodic in the mean sense and auto correlation sense [7M] 8..

a Explain the architecture of 8051 with a neat sketch and with help of an example discuss about physical address generation in 8051.. [7M] b How many counters and timers are used in

a Explain the seven types of crystal system with neat diagrams [7M] b Derive an expression for the interplanar spacing of a crystal in terms of Miller indices.. a Show that diamond

Write the HTML code for fallowing image: [7M] UNIT - II 3 a Using servlet make a “registration” form that collects a first name, last name, and email address.. Send the data to a

a Explain the generation of Frequency Modulation FM waves using indirect method Armstrong method [7M] b A carrier wave of frequency 100MHz and amplitude of 5V is frequency modulated