
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























Vision of Institution To build Jeppiaar Engineering College as an Institution of Academic Excellence in Technical education and Management education and to become a World Class University. Mission of Institution M1 To excel in teaching and learning, research and innovation by promoting the principles of scientific analysis and creative thinking M2 To participate in the production, development and dissemination of knowledge and interact with national and international communities M3 To equip students with values, ethics and life skills needed to enrich their lives and enable them to meaningfully contribute to the progress of society M4 To prepare students for higher studies and lifelong learning , enrich them with the practical and entrepreneurial skills necessary to excel as future professionals and contribute to Nation’s economy
Engineering Knowledge : Apply the Knowledge of mathematics, science, engineering fundamentals, and an engineering specialization to the solution of complex engineering problems. PO Problem analysis : Identify, formulate, review research literature, and analyze complex engineering problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering sciences. PO Design/development of solutions : Design solutions for complex engineering problems and design system components or processes that meet the specified needs with appropriate consideration for the public health and safety, and the cultural, societal, and environmental considerations PO Conduct investigations of complex problems : Use research-based Knowledge and research methods including design of experiments, analysis and interpretation of data, and synthesis of the information to provide valid conclusions. PO Modern tool usage : Create, select, and apply appropriate techniques, resources, and modern engineering and IT tools including prediction and modeling to complex engineering activities with an understanding of the limitations. PO The engineer and society : Apply reasoning informed by the contextual Knowledge to assess societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering practice. PO Environment and sustainability : Understand the impact of the professional engineering solutions in societal and environmental contexts, and demonstrate the Knowledge of, and need for sustainable development. PO Ethics : Apply ethical principles and commit to professional ethics and responsibilities and norms of the engineering practice.
Abstract Data Type (ADT) - List ADT- Arrays based Implementation-linked list implementation-singly linked lists-circularly linked lists-doubly linked list-Application of list-polynomial manipulation-all operations (insertion, deletion, merge, traversal). UNIT II LINEAR DATA STRUCTURES-STACKS,QUEUES 9 Stack ADT-Operations-applications-Evaluating arithmetic expressions-conversion of infix to postfix expressions-queue ADT-Operations-circular queue-priority queue-dequeue-applications of queues. UNIT III NON LINEAR DATA STRUCTURES- TREES 9 Tree ADT-tree traversals-Binary Tree ADT-expression Trees-applications of Trees-Binary search tree ADT-Threaded binary Tree-AVL Tree-B-Tree-B+Tree-Heap-Applications of Heap. UNIT IV NON LINEAR DATA STRUCTURES- GRAPHS 9 Definition-Representation of graph-types of graph-Breadth-first traversal-Depth-first-Traversal-Topological sort-Bi-connectivity-Cut vertex-Eulercircuits-Applications of graphs. UNIT V SEARCHING, SORTING AND HASHING TECHNIQUES 9 Searching –Linear searching-Binary searching. Sorting-Bubble sort-selection Sort-Insertion Sort-shell sort-Radix Sort. Hashing-Hash functions-Separate chaining-Open Addressing-Rehashing- Extendible hashing.
C203.1 Implement abstract data type for List linear data structure and apply them to problem solutions. C203.2 Implement abstract data type for Stack and Queue linear data structure and apply them to problem solutions. C203.3 Implement abstract data type for Tree non List linear data structure and apply them to problem solutions. C203.4 Implement abstract data type for Graph non List linear data structure and apply them to problem solutions. C203.5 Analyze the various sorting and Searching algorithms and Hashing Techniques. BLOOM TAXANOMY LEVELS BTL6: Creating BTL 5: Evaluating BTL 4: Analyzing BTL 3: Applying
BTL 2: Understanding BTL 1: Remembering INDEX UNIT NO TEXT/ REFERENCE BOOK PAGE NO UNIT -I Mark Allen Weiss, “Data Structures and Algorithm Analysis in C”, 2nd Edition, Pearson Education,1997.
UNIT -II Mark Allen Weiss, “Data Structures and Algorithm Analysis in C”, 2nd Edition, Pearson Education,1997.
UNIT -III Mark Allen Weiss, “Data Structures and Algorithm Analysis in C”, 2nd Edition, Pearson Education,1997.
UNIT -IV Mark Allen Weiss, “Data Structures and Algorithm Analysis in C”, 2nd Edition, Pearson Education,1997.
UNIT -V Mark Allen Weiss, “Data Structures and Algorithm Analysis in C”, 2nd Edition, Pearson Education,1997.
a. Linear data structure b. Non-linear data structure 5 Differentiate linear and non-linear data structure. Linear data structure Non-linear data structure Data are arranged in linear or sequential manner Data are not arranged in linear manner Every items is related to its previous and next item Every item is attached with many other items Data items can be traversed in a single run. Data items cannot be traversed in a single run. Implementation is easy Implementation is difficult. Example: array, stack, queue, linked list Example: tree, graph C203. BTL 2 6 Define ADT (Abstract Data Type) An abstract data type (ADT) is a set of operations and mathematical abstractions , which can be viewed as how the set of operations is implemented. Objects like lists, sets and graphs, along with their operation, can be viewed as abstract data types, just as integers, real numbers and Booleans.
7 Mention the features of ADT. a. Modularity i. Divide program into small functions ii. Easy to debug and maintain iii. Easy to modify b. Reuse i. Define some operations only once and reuse them in future c. Easy to change the implementation
8 Define List ADT A list is a sequence of zero or more elements of a given type. The list is represented as sequence of elements separated by comma. A1, A2, A3…..AN Where N>0 and A is of type element C203.
9 What are the ways of implementing linked list? The list can be implemented in the following ways: i. Array implementation ii. Linked-list implementation
iii. Cursor implementation 10 What are the types of linked lists? There are three types i. Singly linked list ii. Doubly linked list iii. Circularly linked list C203.1^ BTL 1 11 How the singly linked lists can be represented? Each node has two elements i. Data ii. Next
12 How the doubly linked list can be represented? Doubly linked list is a collection of nodes where nodes are connected by forwarded and backward link. Each node has three fields:
13 What are benefits of ADT? a. Code is easier to understand b. Implementation of ADT can be changed without requiring changes to the program that uses the ADT
14 When singly linked list can be represented as circular linked list? In a singly linked list, all the nodes are connected with forward links to the next nodes in the list. The last node has a next field, NULL. In order to implement the circularly linked
d. It is possible to change the element at a particular index to a different value,without affecting any other elements. 19 Mention the demerits of linked list a. It is not possible to go backwards through the list b. Unable to jump to the beginning of list from the end.
20 The polynomial equation can be represented with linked list as follows: Coefficient Exponent Next node link struct polynomial { int coefficient;int exponent;struct polynomial *next; };
21 What are the operations performed in list? The following operations can be performed on a list i. Insertion a. Insert at beginning b. Insert at end c. Insert after specific node d. Insert before specific node ii. Deletion a. Delete at beginning b. Delete at end c. Delete after specific node d. Delete before specific node iii. Merging iv. Traversal
22 What are the merits and demerits of array implementation of lists? Merits ● Fast, random access of elements ● Memory efficient – very less amount of memory is required Demerits ● Insertion and deletion operations are very slow since the elements should be moved. ● Redundant memory space – difficult to estimate the size of array.
23 What is a circular linked list? A circular linked list is a special type of linked list that supports traversing from the end of the list to the beginning by making the last node point back to the head of the list.
24 What are the advantages in the array implementation of list? a. Print list operation can be carried out at the linear time b. Find Kth operation takes a constant time
25 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. It points to the first data element of the list.
26 List three examples that uses linked list? a. Polynomial ADT b.Radix sort c.Multi lists
27 List out the different ways to implement the list?
28 Write the routine for insertion operation of singly linked list. Void Insert (ElementType X, List L, Position P) {Position TmpCell; TmpCell=malloc(sizeof(struct Node)); if(TmpCell==NULL) FatalError(“Out of space!!!”); TmpCell->Element =X; TmpCell->Next=P->Next; P->Next=TmpCell; } C203.
29 Advantages of Array over Linked List.
No. Question Course Outcome Blooms Taxanomy Level 1 Define Stack. A stack is an ordered list in which all insertions and deletions are made at one end, called the top. It is an abstract data type and based on the principle of LIFO (Last In First Out).
2 What are the operations of the stack? a. CreateStack/ InitStack(Stack) – creates an empty stack b. Push(Item) – pushes an item on the top of the stack c. Pop(Item) – removes the top most element from the stack d. Top(Stack) – returns the first element from the stack e. IsEmpty(Stack) – returns true if the stack is empty C203. BTL 1 3 Write the routine to push a element into a stack. Push(Element X, Stack S) { if(IsFull(S) { Error(“Full Stack”); } else S→Array[++S→TopOfStack]=X; } C203. BTL 5 4 How the operations performed on linked list implementation of stack? a. Push and pop operations at the head of the list. b. New nodes should be inserted at the front of the list, so that they become the top of the stack. c. Nodes are removed from the front(top) of the stack. C203. BTL 1 5 What are the applications of stack? The following are the applications of stacks
int element; struct stack next; }top; 8 Write the routine to pop a element from a stack. int pop() { if(top==NULL) { printf(“\n Stack is empty.\n”);getch();exit(1);} else {int temp; temp=top→element; top=top→next; return temp; }} C203. BTL 5 9 Define queue. It is a linear data structure that maintains a list of elements such that insertion happens at rear end and deletion happens at front end. FIFO – First In First Out principle C203. BTL 1 10 What are the operations of a queue? The operations of a queue are ● isEmpty() ● isFull() ● insert() ● delete() ● display() C203. BTL 1 11 Write the routine to insert a element onto a queue. void insert(int element) { if(front==-1 ) { front = rear = front +1; queue[front] = element; return; } if(rear==99) { printf(“Queue is full”); getch(); return; } rear = rear +1; queue[rear]=element; } C203. BTL 5 12 What are the types of queue? The following are the types of queue: ● Double ended queue ● Circular queue ● Priority queue C203. BTL 1 13 Define double ended queue ● It is a special type of queue that allows insertion and deletion of elements at both C203. BTL 1
18 Define circular queue A Circular queue is a queue whose start and end locations are logically connected with each other. That means the start location comes after the end location. C203. BTL 1 19 What are push and pop operations?
21 Distinguish between stack and queue. STACK QUEUE Insertion and deletion are made at one end. Insertion at one end rear and deletion at other end front.
The element inserted last would be removed first. So LIFO structure. The element inserted first would be removed first. So FIFO structure. Full stack condition: If(top==Maxsize) Physically and Logically full stack Full stack condition: If(rear = = Maxsize) Logically full. Physically may or may not be full. 22 Convert the infix (a+b)(c+d)/f into postfix & prefix expression* Postfix : a b + c d + * f / Prefix : / * + a b + c d f C203. BTL 23 Write postfix from of the expression –A+B-C+D? A-B+C-D+ C203. BTL 24 How do you test for an empty queue? To test for an empty queue, 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. In the case of array implementation of queue, the condition to be checked for an empty queue is READ<FRONT. C203. BTL 25 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 C203. BTL 26 Explain the usage of stack in recursive algorithm implementation? In recursive algorithms, 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. C203. BTL 27 Define priority queue with diagram and give the operations. Priority queue is a data structure that allows at least the following two operations.
9 Explain the applications of queues C203.2^ BTL 10 Explain circular queue and its implementation C203.2^ BTL 11 Explain double ended queue and its operations C203.2 BTL 12 Explain priority queue and its operations C203.2^ BTL
Tree ADT-tree traversals-Binary Tree ADT-expression Trees-applications of Trees-Binary search tree ADT-Threaded binary Tree-AVL Tree-B-Tree-B+Tree-Heap-Applications of Heap. S. No. Question Course Outcome Blooms Taxanomy Level 1 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.
2 Define tree? A tree is a data structure, which represents hierarchical relationship between individual data items. C203. BTL 3 Define leaf? In a directed tree any node which has out degree o is called a terminal node or a leaf. C203. BTL 4 Explain the representations of priority queue. Using Heap structure, Using Linked List C203. BTL 5 List out the steps involved in deleting a node from a binary search tree.