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

COLLEGE OF ENGINEERING ROORKEE

(COER), Uttarakhand
Tutorial Sheet- 2

SUBJECT: Data Structures Using C++ (TCS-607) Issue Date: - Friday, February 22, 2013

FACULTY: Sachin Kumar Saxena Last Submission Date: - Monday, March 04, 2013

Q.1. CONVERT THE FOLLOWING EXPRESSION IN REVERSE POLISH NOTATION:-

∗[ ∗( )]
a). X= b). X = [(A*B) + (C-D)]
∗( )
Q.2.Show the each step of Tower of Hanoi Problem for n=5 completely.

Q.3. Explain Abstract Data Type in terms of Object Oriented Program in detail.

Q.4. in recursive problem if

L(n) = 0 if n=1

L( L n/2 ˩ )+1 if n>1

a). Find L(25).

Q.5. Calculate S(2,7), S(5,3) and S(15,2) for

S(R,P) = 5 if R<P

S(R-P, P+2) +R if R>=P

Q.6. For the following array find out the location (value of LOC) for 14 using Binary Search:

2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28

Show each “Iteration” for the same.

----------------- Best of Luck ----------------

You might also like