Download Model question papers & previous years question papers

Posted Date: 09 May 2012      Posted By:: suman    Member Level: Silver  Points: 5 (Rs. 1)

2012 University of Delhi B.Sc Computer Science (Honours) B.Sc Comp Sci(hon) 1st year data structure delhi university University Question paper

Course: B.Sc Computer Science (Honours)   University/board: University of Delhi

Paper CSHT 203 : Data Structures
Time: 3 Hours Maximum Marks :75

Question 1 is compulsory.
Attempt any four questions out of the remaining Q2-Q7. Parts of a question must be anwered together.
1. (a)
Write an algorith that examines whether each occurence of delimiter is matched with a corresponding delimiter in a string,say,s.The algorithm should return true if all delimiters are Matched and false otherwise.
The delimiter to be matvhed may be {, [, ( against }, ], ) respectively. (5)
Define a class for implementing Queue of data type X(using arrays) and size s. Write a statement to create a queue of integers of size 10. Details of the methods are not required. X is a generic data type. (5)
Consider a list of unsorted elements. An application requires frequent insertions and deletions. Which of the two data structures array and linked list should be used and why?
Consider the following triangular matrix:
6 0 0 0
2 -5 0 0
9 0 1 0
-7 3 8 0
Show how the elements will be stored in one dimensional array in row major order and coulmn major order?

Deine a class to represent a node of Binary Tree. Traverse the following tree rooted at A, in preorder, inorder,postorder.(5)
A function h(n) is defined recursilvely as
h(n)=0, if n=0
h(n)=n, ifn>4
h(n)=h(n +h(2*n)) if n<=4
find the value of h(1) and h(5). (5)
Consider the following array with exactly 15 elements:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Suppose binary search is applied or searching an elements. Find the elements, that can be found in binary search by examining one or two elements from the array. How many comparisions will be done for searching 16 in the above array.(5)

2. (a)
Write a function merge that merges two sorted linked lists arranged in ascending order.
(b) What is an activation record? What all information is stored in activation record ? When are they allocated memory and where?(5)
Show the contents of stack after each operation when the following postfix expression is evaluated :
where A=5,B=6 and C=4 (5)
A linked list is represented using head and tail pointers. The following operations are applied on an empty linked list L
Show the stayus of linked list after each opearation. (5)
4. (a) Suppose a skip list has 18 nodes. How many nodes will be there having one pointer, two pointers, three pointers,four pointers? What is the maximum level of node in this skip list?

Draw a hash table with open addressing and a size of 11. Use of hash function "k%9" and linear probing for collision. Insert the keys:
5, 29, 20, 0, 27 and 18 into your table(in that order).(5)
Write an algorithm that seaches for a number X in a binary seach Tree. It should throw an exception if element is not found.(5)
Create a right-in-threaded binary search tree using the following data: 25, 10, 11, 65, 12, 15, 70, 80
Show the tree after each insertion (show all the threads and child).(5)
6.(a)Define a class to store 2-Dmatrix using 1-D array.Define constructor and overload operator) to store and retreive the i,jth element.(6)
Write an algorith to insert a node at the end of a doubly linked list.(4)
Write a function to count the number of leaf nodes in Binary Tree.(5)
Consider the following B-tree with order 5.Delete H,T and R from the following tree. Show the status of B-tree after each deletion.


Return to question paper search

Next Question Paper: Writing for Technical Purposes

Previous Question Paper: MSBTE Sample Question Paper for Diploma in Electrical Power System Fifth Semester Subject Electrical Power System Analysis(12153)

Related Question Papers:

  • Statistical physics

  • B.Sc(h) Geology 3rd year,annual exam

  • Hindi B paper-I, set-III, B. A. (Prog), SOL, University of Delhi

  • Hindi A paper-I, set-II, B. A. (Prog), SOL, University of Delhi

  • Political science (Theory and thought), set-III, B.A.(Prog.), SOL, University of Delhi

  • Categories

    Submit Previous Years University Question Papers and make money from adsense revenue sharing program

    Are you preparing for a university examination? Download model question papers and practise before you write the exam.

    Ask Tony John
    Facebook Group · 5 members
    Join Group
    Ask Your Questions regarding Blogging, AdSense, Digital Marketing, Social Media ...
    Top Contributors
    TodayLast 7 Daysmore...

    Awards & Gifts
    ISC Technologies, Kochi - India. © All Rights Reserved.