Beruflich Dokumente
Kultur Dokumente
4.a) State and explain the maketree and setleft functions for dynamic mode
representation of binary trees.
b) What is threaded binary tree. Give an example.
c) Explain the representation of balanced trees in C.
d) Explain any one of the tree traversal methods.
May/June 2010
3 .a) Define stack. State and explain the code for checking empty or overflow
conditions of stack.
b) Write short notes on :
i) queues
ii)circular queues
iii)priority queues.
c) Write a C program to perform push and pop operations on a stack.
d) Define binary trees, strictly binary trees and complete binary tree.
d) Explain with an example and diagrams the structure for tree node using array
implementation and
where all sons of a node or linked together in a linear list.
November 2009
b) Discuss advantages of linked list over arrays for implementation of stack data
structures.
c) What is a priority queues? What are the different types of priority queues? What
are its
applications?
May/June 2009
Infix expression
Polish notations
Reverse polish notation.
b)What do you mean by queue ? define insert and delete operations performed by
queue.
c) Write the function in C to implement the following operations on a Binary Tree:
i) Inorder Traversal
ii) Pre-order Traversal
iii)Post order Traversal.
d) Explain Threaded Binary Tree with example.
4. a) A binary Tree T has 9 nodes , The inorder and pre-order traversals are given as
follows:
Inorder :
Pre Order :
EACKFHDBG
FAEKCDHGB
May/June 2013
Nov/Dec 2012
May/June 2012
4.a) Perform the tree traversal methods for the following binary tree.Give C routine
for any one method.
November 2011
May/June 2011
4. a) Perform the tree traversal methods for the following binary tree.
b) Write C routines for any two traversal methods for the binary tree.
c) Define strictly binary trees and complete binary tree.
d) Provide C implementations of the binary tree operations under the dynamic
node representation
for maketree(x) function and setleft(p,x) function.