## Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

1.Write down the definition of data structures? A data structure is a mathematical or logical way of organizing data in the memory that consider not only the items stored but also the relationship to each other and also it is characterized by accessing functions. 2.What is meant by problem solving? Problem solving is a creative process, which needs systemization and mechanization. 3. Give few examples for data structures? Stacks, Queue, Linked list, Trees, graphs 4. What is problem definition phase? The first step in solving a problem is to understand problem clearly. Hence, the first phase is the problem definition phase. That is, to extract the task from the problem statement. If the problem is not understood, then the solution will not be correct and it may result in wastage of time and effort. 5. Define Algorithm? Algorithm is a solution to a problem independent of programming language. It consist of set of finite steps which, when carried out for a given set of inputs, produce the corresponding output and terminate in a finite time. 6. Define Program? Set of instructions to find the solution to a problem. It is expressed in a programming language in an explicit and unambiguous manner. 7. Mention how similarities among the problems are used in problem solving? This method is used to find out if a problem of this sort has been already solved and to adopt a similar method in solving the problem. The contribution of experience in the previous problem with help and enhance the method of problem for the current problem.

It is particularly relevant for many optimization problems.8. This is very important to sytematize the investigation to avoid duplication of our effort. What is divide and conquer method? The basic idea is to divide the problem into several sub problems beyond which cannot be further subdivided. What is working backward from the solution? When we have a solution to the problem then we have to work backward to find the starting condition.e. 11. Then solve the sub problems efficiently and join then together to get the solution for the main problem. Where is dynamic programming used? Dynamic programming is used when the problem is to be solved in a sequence of intermediate steps. frequently encountered in Operations research. Even a guess can take us to the starting of the problem. What is binary doubling strategy? The reverse of binary doubling strategy. 9.e. 14. combining small problems in to one is known as binary doubling strategy. i. Mention some of the problem solving strategies? The most widely strategies are listed below Divide and conquer Binary doubling strategy Dynamic programming 10. List down any four applications of data structures? Compiler design Operating System Database Management system Network analysis 13. . This strategy is used to avoid the generation of intermediate results. What are the features of an efficient algorithm? Free of ambiguity Efficient in execution time Concise and compact Completeness Definiteness Finiteness 12. i.

20. The prooft of termination is obtained directly from the properties of the interactive constructs. unusual cases etc. it is necessary to set-up and proves verification conditions individually. 19.15. What is program testing? Program testing is process to ensure that a program solves the smallest possible problem. to verify that the results obtained by the execution of the program with arbitrary inputs are in accord with formally defined output Specifications. Define top-down design? Top-down design is a strategy that can be applied to find a solution to a problem from a vague outline to precisely define the algorithm and program implementation by stepwise refinement. 18. What is program verification? Program verification refers to the application of mathematical proof techniques.What is proof of termination? To prove that a program accomplishes its stated objective in a finite number of steps is called program termini nation. How will you verify branches with segments? To handle the branches that appear in the program segments. when all the variables have the same value. the biggest possible problem. PART-B 1. Mention the types of bugs that may arise in a program? The different types of bugs that can arise in a program are Syntactic error Semantic error Logical error 17. 16.Explain top-down design in detail? • Definition • Breaking a problem in to subproblems • Choice of a suitable data structure • Constructions of loops • Establishing initial conditions for loops • Finding the iterative construct • Terminations of loops .

Design an algorithm for base conversion. What are the steps taken to improve the efficiency of an algorithm? • Definition • Redundant computations • Referencing array elements • Inefficiency due to late termination • Early detection of desired output conditions • Trading storage for efficiency gains 3. Explain it with an example? • Algorithm development • Algorithm description • Pascal implementation • Application 4. Explain it with an example? • Algorithm development • Algorithm description • Pascal implementation • Application . Explain it with an example? • Algorithm development • Algorithm description • Pascal implementation • Application 5. Design an algorithm fro sine function computation.2. Design an algorithm for reversing the digit of an integer.

General list of the form a1. What are the different ways to implement list? • Simple array implementation of list • Linked list implementation of list 6.. complement and find are the various operations of ADT. .UNIT –II PART-A 1. What is a linked list? Linked list is a kind of series of data structures.Eg. size. set and graph along their operations can be viewed as ADT's.Objects such as list. 3. an and the size of the list is 'n'. Any element in the list at the position I is defined to be ai. What are the advantages in the array implementation of list? a) Print list operation can be carried out at the linear time b) Fint Kth operation takes a constant time 7. What are the various operations done under list ADT? • Print list • Insert • Make empty • Remove • Next • Previous • Find kth 5. What is meant by list ADT? List ADT is a sequential storage structure. 4. Intersection. a3. What are the operations of ADT? Union.…. ai+1 the successor of ai and ai-1 is the predecessor of ai. 2. a2. which are not necessarily adjacent in memory. Each structure contain the element and a pointer to a record containing its successor.What is meant by an abstract data type? An ADT is a set of operation. Abstract data types are mathematical abstractions.

there will be one pointer named as 'NEXT POINTER' to point the next element. the condition to be checked for an empty queue is READ<FRONT. How do you test for an empty queue? To test for an empty queue. Pointer is basically a number. if the last node or pointer of the list. there will be two pointers one to point the next element and the other to point the previous element location. then it is a circularly linked list. The other name of stack is Last-in -First-out list. where as in a doubly linked list.8. What is a pointer? Pointer is a variable. It points to the first data element of the list. . Stack is maintained with a single pointer to the top of the list of elements. What is the need for the header? Header of the linked list is the first element in the list and it stores the number of elements in the list. 11. Write postfix from of the expression –A+B-C+D? A-B+C-D+ 16. List three examples that uses linked list? • Polynomial ADT • Radix sort • Multi lists 13. 10. 9. In the case of array implementation of queue. which stores the address of the next element in the list. we have to check whether READ=HEAD where REAR is a pointer pointing to the last node in a queue and HEAD is a pointer that pointer to the dummy header. Define double circularly linked list? In a doubly linked list. What is a stack? Stack is a data structure in which both insertion and deletion occur at one end only. 15. What is a doubly linked list? In a simple linked list. point to the first element of the list. Give some examples for linear data structures? • Stack • Queue 14. 12.

which wraps around upon reaching the end of the array is called as circular queue.in -first out list. Write down the operations that can be done with queue data structure? Queue is a first .Explain the linked list implementation of list ADT in Detail? Definition for linked list Figure for linked list Next pointer Header or dummy node Various operations • Explanation • Example figure • Coding 2. Explain the usage of stack in recursive algorithm implementation? In recursive algorithms. 19. PART-B 1.What are the postfix and prefix forms of the expression? A+B*(C-D)/(P-R) Postfix form: ABCD-*PR-/+ Prefix form: +A/*B-CD-PR 18. What is a circular queue? The queue. 20. Explain the cursor implementation of linked list? Definition for linked list Figure for linked list Next pointer Header or dummy node Various operations • Explanation • Example figure • Coding . The operations that can be done with queue are addition and deletion.17. stack data structures is used to store the return address when a recursive call is Encountered and also to store the values of all the parameters essential to the current state of the procedure.

REAR Operations • Coding • Example figure .3. Explain the linked list implementation of stack ADT in detail? Definition for stack Stack model Figure Pointer-Top Operations • Coding • Example figure 5. Explain the array implementation of queue ADT in detail? Definition for stack Stack model Figure Pointer-FRONT. Explain the various applications of linked list? Polynomical ADT • Operations • Coding • Figure Radix Sort • Explanation • Example Multilist • Explanation • Example figure 4.

What is meant by directed tree? Directed tree is an acyclic diagraph which has one node called its root with indegree o whille all other nodes have indegree I. b. Linked representation . 4. 2. File index schemes b. Define leaf? In a directed tree any node which has out degree o is called a terminal node or a leaf. that each node is visited only once. Post-order traversal-yields postfix from of expression. 8. What are the applications of binary tree? Binary tree is used in data processing. c. 5. a. a. In-order traversal-yields infix form of expression. 6. Define tree? A tree is a data structure. which represents hierarchical relationship between individual data items. b. Pre-order traversal-yields prefix from of expression. What are the two methods of binary tree implementation? Two methods to implement a binary tree are. Linear representation. What is meant by traversing? Traversing a tree means processing it in such a way. Define non-linear data structure Data structure which is capable of expressing more complex relationship than that of physical adjacency is called non-linear data structure.UNIT-III PART-A 1. What are the different types of traversing? The different types of traversing are a. Hierarchical database management system 7. 3. 9. What is a ordered tree? In a directed tree if the ordering of the nodes at each level is prescribed then such a tree is called ordered tree.

a. a. Process the root node b. Define expression trees? The leaves of an expression tree are operands such as constants or variable names and the other nodes contain operators. 17. Process the left subtree b. a.Define post-order traversal? Post order traversal entails the following steps. 16. Process the left subtree c.10. Define in -order traversal? In-order traversal entails the following steps. Process the left subtree b. What is a balance factor in AVL trees? Balance factor of a node is defined to be the difference between the height of the node's left subtree and the height of the node's right subtree. . What is the need for hashing? Hashing is used to perform insertions. Process the root node c. What is the length of the path in a tree? The length of the path is the number of edges on the path. 14. deletions and find in constant average time. What is meant by pivot node? The node to be inserted travel down the appropriate branch track along the way of the deepest level node on the branch that has a balance factor of +1 or -1 is called pivot node. Define pre-order traversal? Pre-order traversal entails the following steps. In a tree there is exactly one path form the root to each node. 15. Process the root node 12. Process the right subtree c. Process the right subtree 11. Process the right subtree 13.

19. What are the problems in hashing? When two keys compute in to the same location or address in the hash table through any of the hashing function then it is termed collision. a. Overflow 21. The division method b.18. Explain the different tree traversals with an application? In order • Explanation with an example • Figure Preorder • Explanation with an example • Figure Postorder • Explanation with an example • Figure 2. Multiplicative hashing e. List out the different types of hashing functions? The different types of hashing functions are. The folding method d. PART-B 1. Define hash function? Hash function takes an identifier and computes the address of that identifier in the hash table using some function. The mind square method c. What are the problems in hashing? a. Define binary search tree? Explain the various operations with an example? Definition Figure for binary search tree Operations • Codings • Explanation • Example . Digit analysic 20. Collision b.

RL. Define AVL trees? Explain the LL.3. RL. RR. LR case • Figure • Example • Explanation 4. Define priority queue? Explain the basic heap operation with an example? Definition Basic operation • Insert • Delmin • Delmax Coding Explanation Example 5. LR case with an example? Definition LL. RR. Explain any two techniques to overcome hash collision? Separate chaining • Example • Explanation • Coding Open addressing • Linear probing • Quadratic probing .

This process is then repeated for each value of J.. Execution time of the program c.What is meant by sorting? Ordering the data in an increasing or decreasing fashion according to some relationship among the data item is called sorting. What are the two main classifications of sorting based on the source of data? a. 8. 9. What is the main idea behind insertion sort? The main idea behind the selection sort is to find the smallest element among in A (I) A (J+1).. 5. What is meant by external sorting? External sorting is a process of sorting in which large blocks of data stored in storage devices are moved to the main memory and then sorted. What is the other name for shell sort? Diminishing increment sort. 4. What is meant by internal sorting? Internal sorting is a process of sorting the data in the main memory. . 2. which are then separately sorted using the insertion sort. What is the basic of shell sort? Instead of sorting the entire array at once. Programming time b.A (n) and then interchange it with a (J). it is first divide the array into smaller segments. External sorting 3..UNIT-IV PART-A 1. What is the main idea behind insertion sort? The main idea of insertion sort is to insert in the ith pass the ith element in A (1) A (2). What are the various factors to be considered in deciding a sorting algorithm? a.A (i) in its rightful place. Memory needed for program environment 6. 7.. Internal sorting b.

n is the number of elements sorted. This small portion of file is called a segment. it cannot hold the entire block. How many passes are required fork-way merging? The number of passes required using k-way merging is [log k (n/m)] because the N H S get k times as large in each pass. 16. When can we use insertion sort? Insertion sort is useful only for small files or very nearly sorted files. only a portion of the block or file is loaded in the main memory of the computer since. Multiway merge b. What i the advantage of quick sort? Quick sort reduces unnecessary swaps and moves an item to a greater distance.10. Name some simple algorithms used in external sorting? a. What is the average efficiency of heap sort? The average efficiency of heap sort is 0 (n(log2 n)) where. Merge sorting 15. it two data items of matching values are guaranteed to be not rearranged with respect to each other as the algorithm progresses. Define segment? When large blocks of data are to be sorted. 14. . in one move. What is the purpose of quick sort? The purpose of the quick sort is to move a data item in the correct direction. Replacement selection 17. 11. 18. Name some of the external sorting methods? a. 12. When is a sorting method said to be stable? A sorting method is said to be stable. Oscillation sorting c. Polyphase merge c. Polyphase merging b. just enough for to reach its final place in the array. 13.

Explain heap sort with an example? • Explanation • Example • Figure • Coding 2. Explain quick sort with an example? • Explanation • Example • Figure • Coding 4. Explain any four external sorting techniques with example? • Explanation • Example • Figure • Coding 5. PART-B 1.19. Explain shell sort with an example? • Explanation • Example • Figure • Coding . 20. Define min heap? A heap in which the parent has a smaller key than the child's is called a min heap. Explain quick sort with an example? • Explanation • Example • Figure • Coding 3. Define max heap? A heap in which the parent has a larger key than the child's is called a max heap.

Explain quick sort with an example? Explanation Example Figure Coding 3.PART-B 1. Explain any four external sorting techniques with example? Explanation Example Figure Coding 5. Explain shell sort with an example? Explanation Example Figure Coding .Explain heap sort with an example? Explanation Example Figure Coding 2. Explain merge sort with an example? Explanation Example Figure Coding 4.

6. What is a loop? An edge of a graph which connects to itself is called a loop or sling. What is a weighted graph? A graph in which weights are assigned to every edge is called a weighted graph.v) where u. 4. 9. which has not more than one edge between a pair of nodes than such a graph is called a simple graph. 8.Define Graph? A graph G consist of a nonempty set V which is a set of nodes of the graph. 10. Define indegree of a graph? In a directed graph. and a mapping from the set for edge E to a set of pairs of elements of V. the number of edges which have v as their terminal node is called the indegree of the node v. v ∈ V. Define out degree of a graph? In a directed graph. 2. Define path in a graph? The path in a graph is the route taken to reach terminal node from a starting node. if and edge x∈E is associated with a pair of nodes (u. It can also be represented as G=(V. 3. For example. What is a directed graph? A graph in which every edge is directed is called a directed graph.What is a simple graph? A simple graph is a graph. then we say that the edge x connects the nodes u and v. 7. the number of edges which have v as their initial node is called the out degree of the node v. What is a undirected graph? A graph in which every edge is undirected is called a directed graph.UNIT-V PART-A 1. Define adjacent nodes? Any two nodes which are connected by an edge in a graph are called adjacent nodes. a set E which is the set of edges of the graph. . E). for any node v. 5. for any node v.

It is also called as undirected forest. 20. 13. 14. What are the two traversal strategies used in traversing a graph? a.What is a simple path? A path in a diagram in which the edges are distinct is called a simple path. A directed graph with this property is called strongly connected. What is an acyclic graph? A simple diagram which does not have any cycles is called an acyclic graph. Breadth first search b. What is meant by strongly connected in a graph? An undirected graph is connected. Adjacency matrix b. Name the different ways of representing a graph? a. Depth first search 19. It is also called as edge simple. 15. 12.11. 18. What is a minimum spanning tree? A minimum spanning tree of an undirected graph G is a tree formed from graph edges that connects all the vertices of G at the lowest total cost. then the graph is said to be weakly connected. What is an undirected acyclic graph? When every edge in an acyclic graph is undirected. if there is a path from every vertex to every other vertex. Adjacency list 17. What is a cycle or a circuit? A path which originates and ends in the same node is called a cycle or circuit. . What is NP? NP is the class of decision problems for which a given proposed solution for a given input can be checked quickly to see if it is really a solution. When is a graph said to be weakly connected? When a directed graph is not strongly connected but the underlying graph is connected. it is called an undirected acyclic graph. 16.

Define topological sort? Explain with an example? Definition Explanation Example Table Coding 3.PART-B 1. Explain Krushal's algorithm with an example? Explanation Example Graph Table Coding . Explain Dijkstra's algorithm with an example? Explanation Example Graph Table Coding 4.Explain Prim's algorithm with an example? Explanation Example Graph Table Coding 5.Explain the various representation of graph with example in detail? Adjacency matrix • Figure • Explanation • Table Adjacency list • Figure • Explanation • Table 2.

- CS 1151 Data Structures 1pankaj100
- Linear Non Linear data structuretigersayooj
- Data Structure Book Part1renukumars
- 5 Post Game Analysis Checklistsaevans18
- AP PGECET CS and IT (CS-2015) Question Paper & Answer Key. Download all previous years computer science & information technology sample & model question papers.pavani
- Data Structure Aucseyogeshdxt
- Data Structures and AlgorithmsMohammed Jeelan
- Data Structres Are Commanly Asked in Technical InterviewsAbdul Rahman
- mail_for_dsDeepak Gupta
- HatsAsif Jamshed
- How To Solve It By Computer - R G Dromey.pdfVersha Rustagi
- Shifting GraphsRaigan
- 1570345283SatrioUtomo
- ComputerAdrian Carlo Fajardo Lustina
- Adobetridib_konwar1358
- Course Notes on Data Structures and Algorithm by Clifford a. ShaffordAbdul Wahid Khan
- Peter Hamburger and Attila Sali- 11 -Doilies with Vertex Sets Of Sizes 275,286,...,462Sprite090
- Complete Binary TreeBhavit S. Sengar
- Oops Lab NotesVikneshwar Vicky
- DATA vivaLoges Waran
- HW1SolnJohn Ed
- S E 2015(1).pdfShri
- Vertex Graceful Labeling-Some Path Related GraphsRyanElias
- Data Structure Lab Manual-2013Venkat
- ITkumudha
- 5Cycle Systems - Dissertation - John AsplundAnonymous901
- Esc 101 Linked ListsSheyi Adeyemi
- Data Structure Lab Manual Aim & Algoidealmanju
- Weight Balanced Binary TreeBODJE N'KAUH NATHAN-REGIS
- CSCAnkit Bharathan

- UT Dallas Syllabus for ecs2305.003.10f taught by Charles Bernardin (cpb021000)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for se3306.001 06f taught by Gopal Gupta (gupta)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for te3307.001.08f taught by Charles Bernardin (cpb021000)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs5333.501 05f taught by Timothy Farage (tfarage)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs2305.501.06f taught by Timothy Farage (tfarage)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for mthe5324.501.11f taught by Titu Andreescu (txa051000)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs3305.501 05f taught by Timothy Farage (tfarage)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs5333.001.09f taught by Jorge Cobb (jcobb)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs5333.001 06f taught by Nancy Van Ness (nancyvn)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for te3307.001 05f taught by Charles Bernardin (cpb021000)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for ecs2305.003.10f taught by Charles Bernardin (cpb021000)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs2305.001 05s taught by (wxw021000)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for math5320.501 05f taught by Thomas Butts (tbutts)UT Dallas Provost's Technology Group
- tmp1204.tmpFrontiers
- UT Dallas Syllabus for math5320.501.07f taught by Thomas Butts (tbutts)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for cs5333.501 06s taught by Nancy Van Ness (nancyvn)UT Dallas Provost's Technology Group
- UT Dallas Syllabus for mthe5320.501.09f taught by Titu Andreescu (txa051000)UT Dallas Provost's Technology Group

- tmpDE32.tmpFrontiers
- Implementation of Feed Forward Neural Network for Image Compression on FPGAInternational Journal for Scientific Research and Development
- A System for Efficient Retrieval of the Images from Large Datasets using Ripplet Transform and Edge Histogram DetectorInternational Journal for Scientific Research and Development
- tmp2A0A.tmpFrontiers
- 68537_1985-1989FRASER: Federal Reserve Archive
- Personalized Gesture Recognition with Hidden Markove Model and Dynamic Time WarpingInternational Journal for Scientific Research and Development
- A Review on Image Inpainting with K-Nearest Neighbor (KNN) MethodInternational Journal for Scientific Research and Development
- tmpC8D2.tmpFrontiers
- Optimization of Water Distribution Network for Dharampeth AreaInternational Journal for Scientific Research and Development
- Image Processing Techniques For Quality Checking In Food IndustryInternational Journal for Scientific Research and Development
- Digital Image Watermarking Based on LSB for RGB ImageInternational Journal for Scientific Research and Development
- 63607_2010-2014FRASER: Federal Reserve Archive
- An Algorithm to Improve Accuracy of Recommendation SystemInternational Journal for Scientific Research and Development
- Weighted Density based Error Optimization for Classical DatasetInternational Journal for Scientific Research and Development
- tmpDBB7.tmpFrontiers
- Review on Advanced Prediction of Difficult Keyword Queries Over DatabasesInternational Journal for Scientific Research and Development
- Analyzing Sentiment at Sentence-Level on Tweets using Hybrid SystemsInternational Journal for Scientific Research and Development

Sign up to vote on this title

UsefulNot usefulClose Dialog## Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

Loading