(Recognised Under Section 2 (F) and 12B of UGC)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

University Institute of Engineering & Technology

(Recognised Under Section 2(f) and 12B of UGC)


Kurukshetra University, Kurukshetra

THEORY EXAMINATION – JULY 2021 TIME – 4 Hrs.


B.TECH - ECE SEMESTER - VI
M.M. - 75

PAPER - ECO-5 SUBJECT- Data Structures

INSTRUCTIONS TO BE FOLLOWED

 The candidates will be required to attempt All questions in Part-A and Part-B
(Compulsory Sections). Attempt any four questions from Part-C selecting at least one
from each unit.
 Allotted time for examination is 4 hours that includes time for downloading the
question paper, writing answers, scanning of answer sheets and uploading the sheets
on the Attendance Sheet Cum Answer Sheet Uploading google form. The link will be
closed after the stipulated time.
 The PDF files should be saved as Roll No. and Subject Code.
 Maximum Page Limit should be 36 (Thirty Six) for attempting the question paper on
A4 sheets which could be downloaded and printed from the sample sheets given in
the UIET Website.
 Over-attemptation should be avoided.
 Handwriting should be neat and clean and diagrams should be clear and contrasted.
 The candidate should not write their Mobile No. otherwise Unfair Means Case will
be made.
 While attempting the paper, the candidate will use blue/black pen only.
 Before attempting the paper, the candidate will ensure that he/she has downloaded
the correct question paper. No complaint for attempting wrong question paper by the
candidate will be entertained.
 Candidate must ensure that he/she has put his/her signature on each page of the
answer sheet used by him/her. Answer sheet without the signature of the candidate
will not be evaluated.
 Attempt parts A, B & C separately. Do not inter-mix them. Write neatly & mention the
question number clearly.
PART - A (15 Marks)

Q. No. – 1 Answer the following questions. 15x1=15

(i) List the steps to design an algorithm.

(ii) List three basic concept of data structures.

(iii) Give 3 examples eaxh of linear and non-linear data structures.

(iv) Wrie an algorithm to traverse an array.

(v) How many stpes are required(worst case) to serach an element in an sorted array of 1000
numbers using binary search.
(vi) What is Big-O Notation.

(vii) What will be output after 3rd iteration of bubble sort in ascending order of {
12,11,3,5,1,0,6,7,9}
(viii) Convert to post fix notation ((A+B)*C)-D)

(ix) Declare Node for linked list.

(x) Define complete tree.

(xi) Define full tree.

(xii) Define directed graph.

(xiii) Define weighted graph.

(xiv) List five applications of graph.

(xv) List 3 applications of stack and queue each.

PART - B (20 Marks)

UNIT - I
2 Write an algorithm to find two same numbers out of three numbers without using array. 5
For example 2,3 and 2 answer should be 2 and from 1,2 and 3 answer should be no
two same numbers.
UNIT - II
3 Disucss & and * operator in C in terms of pointers. 5
UNIT - III
4 Explain Linked Stack. 5
UNIT - IV
5 Disucuss linked representation of graphs. 5

PART- C (40 Marks)

UNIT - I
6 Write an algorithm to compute number of even and odd numbers from an array of 10 10
number. Also demonstrate the algorithm using random list of 10 numbers.
7 Write an algorithm to sort integers using Selection Sort in an array of length N. 10
Also, demonstrate the working of algorithm iteration wise on a random array of
10 integers.
UNIT - II
8 Discuss in detail concept of queue alongwith its operations. Also discuss 10
circular queue.
9 Translate the expression to postfix notation (((A-B)+C)/((D^E)*F)) using stack 10
and also evaluate the postfix expression using stack. The values are A = 10,
B = 2 , C = 8, D = 2, E = 2 and F = 2.

UNIT - III
10 Consider a Linked List having five elements L = {6,5,3,1,1}. Write an algorithm to 10
insert the new element 4 before 3. Explain your algorithm with appropriate diagrams.

11 Consider a Linked List having five elements L = {1,2,3,4,5}. Write an algorithm to 10


delete the element 3 and then 5 fromm the list. Explain your algorithm with appropriate
diagrams.
UNIT - IV
12 Consider a Binary Tree T = A(B(D(X,Y),E($,Z)),C(F(I, J($,K)),L(M,N))). 10
For the given tree first draw the trre and do InOrder, PreOrder and PostOrderTraversal.

13 Draw Adjacency Matrix and Set representation for the given graph 10

You might also like