We complete the trees sections in this post adding some more questions to the already posted ones.
1)What are splay trees?How are they different from normal trees?
2)What are the key operations which characterize splay trees?
3)How are AVL rotations different from the operations performed in splay trees?
4)Show that if all the nodes in a splay tree are accessed sequentially,then the total access time is O(N),regardless of the initial tree?
5)Given 2 binary trees T1 and T2 with same set of nodes,show how you can transform one in to the other?
6)Give an algorithm to transform a binary tree T1 into another binary tree T2?
7)Give an algorithm to find all the elements between 2 keys K1 and K2 with K1<=K2
in a binary search tree T?
8)How do you convert the parent-child tree to a child-sibling tree(assume the tree is a binary tree)?
9)Two binary trees T1 and T2 are isomorphic if T1 can be transformed into T2 swapping left and right children of the nodes in T1.Give an algorithm to report whether 2 given binary trees are isomorphic.
10)Analyze the complexity of the above algorithm and report whether there exists a linear solution to it?
example po ng tree or application ng trees ng windows as an operating system
ReplyDeleteCould you elaborate on the child-sibling tree??
ReplyDeleteHere, are some sample questions based on “Data Structures”. Read it carefully as these questions will improve your basic concept on Data Structures using C programming language, and will help you in cracking any interview.
ReplyDeleteClick on any question to find out it's answers:
Question - 1) What Is Data Structure ?
Question - 2) What Is The Need For Data Structures In Programming ?
Question - 3) What Are The Different Data Types Which A Data Structure May Comprise Of ?
Question - 4) How Can Data Structures Be Classified ?
Question - 5) What Are Linear Data Structures ?
Question - 6) What Are Non Linear Data Structures ?
Question - 7) Differentiate Between Data Types & Data Structures ?
Question - 8) List Four Major Operations On Linear Data Structures ?
Question - 9) What Do You Mean By A Static Data Structure ?
Question - 10) What Is Dynamic Memory Allocation ?
Question - 11) What Is A Stack ?
Question - 12) What Is A Queue ?
Question - 13) What Are Linked Lists ?
Question - 14) What Are Trees ?
Question - 15) What Are Arrays ?
Click On any question to find out a variety of sample answers:
ReplyDeleteTips On Personality Development.
1) Sample Answers - Tell Me Something About Yourself.
2) Sample Answers - What Are Your Strengths?
3) Sample Answers - What Are Your Weaknesses?
4) Sample Answers - Can You Work Well Under Pressure Or deadlines?
5) Sample Answers - What Are Your Short Term Goals?
6) Sample Answers - What Are Your Long Term Goals?
7) Sample Answers - Where Do You See yourself After Five Years?
8)
Sample Answers - Why Should We Hire You?
9) Sample Answers - What Kind Of Salary Are You Looking For?
10) Sample Answers - Why Do You Want To Leave Your Current Job/Organization/Company?
ReplyDeleteThanks for sharing this information
Workday Online Training
Workday Training