SlideShare a Scribd company logo
1 of 4
1
DEPARTMENT OF INFORMATION TECHNOLOGY
Subject Code : CS8451 Subject Name : Design & Analysis ofAlgorithms
Class/ Sem : II IT / II Sem Subject In – Charge : Dr. P. Subathra, Prof./IT
QUESTION BANK
UNIT II
BRUTE FORCE AND DIVIDE-AND-CONQUER
Brute Force – Computing an – String Matching - Closest-Pair and Convex-Hull Problems -
Exhaustive Search - Travelling Salesman Problem - Knapsack Problem - Assignment
problem. Divide and Conquer Methodology – Binary Search – Merge sort – Quick sort –
Heap Sort - Multiplication of Large Integers – Closest-Pair and Convex - Hull Problems.
Q. No Question
Marks
Knowled
geLevel
Number
of
Times
inAU
PART - A
INTRODUCTION
1. Define a linear and non-linear data structure. Give an example for each. 2 K1 1
2. List the four major operations in linear data structures 2 K1 1
ABSTRACT DATA TYPES (ADTS)
3. What is an ADT? Give an example. (OR) Define an abstract type. List out few.
(OR) What are abstract data types?
2 K1 10
4. What is the purpose of using ADTs in programs? (OR) What is advantage of an
ADT?
2 K1 2
5. What are all not concerned in an ADT? 2 K1 1
6. What is Data Structures? How is it classified? 2 K1 1
List ADT - ARRAY IMPLEMENTATION
7. Is linked list better than an arrayed list? Give at least two reasons for your answer. 2 K2 3
8. What are the advantages of linked lists over arrays? (OR) What are the advantages
and disadvantages of linked lists over arrays?
2 K1 3
9. What is the Data Structure used to perform recursion? 2 K1 1
10. Define List Abstract Data Type with example. 2 K1 1
2
11. Provide the asymptotic complexity for calculating the Sum of n number in an
array.
2 K1 1
12. Explain why binary search cannot be performed on a linked list. 2 K2 1
LIST ADT - LINKED IMPLEMENTATION
13. Write algorithms to insert and delete an element from a linked list. 2 K1 1
LIST ADT - ARRAY & LINKED IMPLEMENTATION
14. Clearly distinguish between linked lists and arrays. Mention their relative
advantages and disadvantages.
2 K2 1
LINKED LIST CIRCULAR LINKEDLIST
15. What is circular linked list? 2 K1 1
PART B
ABSTRACT DATA TYPES (ADTS)
16. Write and explain the ADT operations for array implementation of a Queue. 8 K2 1
17. Write an ADT for Enqueue and Dequeue. (6) 6 K2 1
LIST ADT - LINKED IMPLEMENTATION
18. Develop a C program to split the linked list into two sub lists containing odd and
even ordered elements in them respectively.
16 K2 1
19. Write a C code for singly linked list with insert, delete, display operations using
structure pointer.
16 K2 1
20. What is a singly linked list? Write a C program that uses functions to perform the
following operations on singly list with suitable diagrammatic representations.
Consider all cases: Insertion b. Deletion c. Traversal
16 K2 1
21. Illustrate the algorithms to create the singly linked list and perform all the
operations on the created list.
16 K2 1
22. Develop the program in C to delete a node with the minimum value from a singly
linked list.
16 K2 1
23. Explain with an example the creation of a linked list, insertion and deletion of nodes
and swappind of any two nodes.
16 K2 1
24. Write algorithms to insert and delete elements from a linked list. Consider all cases. 16 K2 1
LIST ADT - ARRAY & LINKED IMPLEMENTATION
25. Describe the data structures used to represent lists. 16 K2 1
LIST ADT - DOUBLY LINKED LIST IMPLEMENTATION
26. Illustrate the algorithm to implement the doubly linked list and perform all the
operations on the created list.
16 K2 1
3
27. Illustrate the necessary algorithms to implement doubly linked list and perform all
the operations on the created list.
16 K2 1
28. Describe the creation of a doubly linked list and appending the list. Give relevant
coding in C.
16 K2 1
LINKED LIST CIRCULAR LINKEDLIST
29. How does a Circular Linked list differ from a Singly linked list? State its
advantages over a Singly linked list. Write algorithms to perform insertion and
deletion on a doubly linked list.
16 K2 -
DOUBLYLINKEDLIST
30. Write an algorithm to perform insertion and deletion on a doubly linked list. 8 K2 1
31. Write a C program that uses functions to perform the following opearations on
doubly linked list a. Creation b. Insertion c. Deletion d. Traversalin both ways
16 K2 1
32. Develop an algorithm to implement a Doubly Linked List. Give relevant example
and diagrammatic illustrations.
16 K2 1
33. Write a procedure to insert a node, delete a node, count and display nodes in doubly
linked list.
16 K2 1
POLYNOMIAL MANIPULATION
34.1. Write a C Program to add two polynomials using linked list. 16 K2 1
35. Explain the following: (8+8)
a. Application of lists
b. Polynomial manipulation
16 K2 1
36. Write a program to add two polynomials using linked list. 16 K2 1
PART C
LIST ADT - ARRAYIMPLEMENTATION
37. Consider an array A[1:n]. Given a position, write an algorithm to insert an element
in the array. If the position is empty, the element is inserted easily. If the postion is
already occupied the element should be inserted with the minimum number of
shifts. (Note: The elements can shift to the left or to the right to make the minimum
number of moves)
16 K3 1
LIST ADT - LINKED IMPLEMENTATION
38. Given two sorted lists L1 and L2, write a procedure to compute
a. L1 intersection L2
b. L1 union L2 using only the basic list operations
10 K3 1
4
39. Formulate an algorithm to perform an insertion in a singly linked list in an
increasing order of their INFO field.
10 K3 1
40. Given two sorted lineat linked lists L1 and L2, how do you create a list L3, which
consisits of the uncommon elements of L1 and L2? Write a suitable ADT for the
construction of doubly linked list L3.
8 K3 1
LINKED IMPLEMENTATION - POLYNOMIAL MANIPULATION
41. Write a program to store the polynomial expression terms in random order, display
the terms in descending order of powers and count the number of terms in the
expression using doubly linked list.
16 K3 1
Staff In – Charge Subject Matter Expert HoD/IT

More Related Content

What's hot

هياكلبيانات
هياكلبياناتهياكلبيانات
هياكلبيانات
Rafal Edward
 

What's hot (20)

Lecture 2c stacks
Lecture 2c stacksLecture 2c stacks
Lecture 2c stacks
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data Structure
 
General Data structures
General Data structuresGeneral Data structures
General Data structures
 
Double Linked List (Algorithm)
Double Linked List (Algorithm)Double Linked List (Algorithm)
Double Linked List (Algorithm)
 
Unit 3 stack
Unit 3   stackUnit 3   stack
Unit 3 stack
 
Datastructureitstypes
DatastructureitstypesDatastructureitstypes
Datastructureitstypes
 
Data structures project
Data structures projectData structures project
Data structures project
 
Linked list
Linked listLinked list
Linked list
 
Array 2
Array 2Array 2
Array 2
 
Slide 1.-datastructure
Slide 1.-datastructureSlide 1.-datastructure
Slide 1.-datastructure
 
Merge sort
Merge sortMerge sort
Merge sort
 
Unit 2 linked list and queues
Unit 2   linked list and queuesUnit 2   linked list and queues
Unit 2 linked list and queues
 
Application of Stack, Link list , and Queue in Programming .
Application of Stack, Link list , and Queue in Programming .Application of Stack, Link list , and Queue in Programming .
Application of Stack, Link list , and Queue in Programming .
 
هياكلبيانات
هياكلبياناتهياكلبيانات
هياكلبيانات
 
Stacks & Queues By Ms. Niti Arora
Stacks & Queues By Ms. Niti AroraStacks & Queues By Ms. Niti Arora
Stacks & Queues By Ms. Niti Arora
 
Data structure using c module 1
Data structure using c module 1Data structure using c module 1
Data structure using c module 1
 
linked list
linked list linked list
linked list
 
Bca ii dfs u-2 linklist,stack,queue
Bca ii  dfs u-2 linklist,stack,queueBca ii  dfs u-2 linklist,stack,queue
Bca ii dfs u-2 linklist,stack,queue
 
Arrays Data Structure
Arrays Data StructureArrays Data Structure
Arrays Data Structure
 
Unit 1 dbm questioN BANK 22139
Unit 1 dbm  questioN BANK 22139Unit 1 dbm  questioN BANK 22139
Unit 1 dbm questioN BANK 22139
 

Similar to 1. cs8451 daa anna univ question bank unit 1

Notes of bca Question paper for exams and tests
Notes of bca Question paper for exams and testsNotes of bca Question paper for exams and tests
Notes of bca Question paper for exams and tests
priyanshukumar97908
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna university
sangeethajames07
 

Similar to 1. cs8451 daa anna univ question bank unit 1 (20)

CS8391 Data Structures Part B Questions Anna University
CS8391 Data Structures Part B Questions Anna UniversityCS8391 Data Structures Part B Questions Anna University
CS8391 Data Structures Part B Questions Anna University
 
CS8391-DATA-STRUCTURES.pdf
CS8391-DATA-STRUCTURES.pdfCS8391-DATA-STRUCTURES.pdf
CS8391-DATA-STRUCTURES.pdf
 
02. the linked lists (1)
02. the linked lists (1)02. the linked lists (1)
02. the linked lists (1)
 
Data structures using C
Data structures using CData structures using C
Data structures using C
 
Data structures using c
Data structures using cData structures using c
Data structures using c
 
Notes of bca Question paper for exams and tests
Notes of bca Question paper for exams and testsNotes of bca Question paper for exams and tests
Notes of bca Question paper for exams and tests
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna university
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdf
 
3.ppt
3.ppt3.ppt
3.ppt
 
3.ppt
3.ppt3.ppt
3.ppt
 
csc211_lecture_21.pptx
csc211_lecture_21.pptxcsc211_lecture_21.pptx
csc211_lecture_21.pptx
 
Data Structure -List Stack Queue
Data Structure -List Stack QueueData Structure -List Stack Queue
Data Structure -List Stack Queue
 
Smu mscit sem 2 spring 2017 assignments
Smu mscit sem 2 spring 2017 assignmentsSmu mscit sem 2 spring 2017 assignments
Smu mscit sem 2 spring 2017 assignments
 
uniT 4 (1).pptx
uniT 4 (1).pptxuniT 4 (1).pptx
uniT 4 (1).pptx
 
Data structure
 Data structure Data structure
Data structure
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
 
Cs8251 faq1
Cs8251 faq1Cs8251 faq1
Cs8251 faq1
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
 
Technical
TechnicalTechnical
Technical
 
linked list
linked listlinked list
linked list
 

More from P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai

More from P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai (20)

TestFile
TestFileTestFile
TestFile
 
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
 
2.1 STACK & QUEUE ADTS
2.1 STACK & QUEUE ADTS2.1 STACK & QUEUE ADTS
2.1 STACK & QUEUE ADTS
 
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
 
1. 6 doubly linked list
1. 6 doubly linked list1. 6 doubly linked list
1. 6 doubly linked list
 
1. 5 Circular singly linked list
1. 5 Circular singly linked list1. 5 Circular singly linked list
1. 5 Circular singly linked list
 
1. 4 Singly linked list deletion
1. 4 Singly linked list deletion1. 4 Singly linked list deletion
1. 4 Singly linked list deletion
 
1. 3 singly linked list insertion 2
1. 3 singly linked list   insertion 21. 3 singly linked list   insertion 2
1. 3 singly linked list insertion 2
 
1. 2 Singly Linked List
1. 2 Singly Linked List1. 2 Singly Linked List
1. 2 Singly Linked List
 
1. C Basics for Data Structures Bridge Course
1. C Basics for Data Structures   Bridge Course1. C Basics for Data Structures   Bridge Course
1. C Basics for Data Structures Bridge Course
 
Approximation Algorithms TSP
Approximation Algorithms   TSPApproximation Algorithms   TSP
Approximation Algorithms TSP
 
Optimal binary search tree dynamic programming
Optimal binary search tree   dynamic programmingOptimal binary search tree   dynamic programming
Optimal binary search tree dynamic programming
 
The stable marriage problem iterative improvement method
The stable marriage problem iterative improvement methodThe stable marriage problem iterative improvement method
The stable marriage problem iterative improvement method
 
Maximum matching in bipartite graphs iterative improvement method
Maximum matching in bipartite graphs   iterative improvement methodMaximum matching in bipartite graphs   iterative improvement method
Maximum matching in bipartite graphs iterative improvement method
 
Knapsack dynamic programming formula top down (1)
Knapsack dynamic programming formula top down (1)Knapsack dynamic programming formula top down (1)
Knapsack dynamic programming formula top down (1)
 
Knapsack dynamic programming formula bottom up
Knapsack dynamic programming formula bottom upKnapsack dynamic programming formula bottom up
Knapsack dynamic programming formula bottom up
 
Huffman tree coding greedy approach
Huffman tree coding  greedy approachHuffman tree coding  greedy approach
Huffman tree coding greedy approach
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Multiplication of integers & strassens matrix multiplication subi notes
Multiplication of integers & strassens matrix multiplication   subi notesMultiplication of integers & strassens matrix multiplication   subi notes
Multiplication of integers & strassens matrix multiplication subi notes
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Recently uploaded (20)

Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

1. cs8451 daa anna univ question bank unit 1

  • 1. 1 DEPARTMENT OF INFORMATION TECHNOLOGY Subject Code : CS8451 Subject Name : Design & Analysis ofAlgorithms Class/ Sem : II IT / II Sem Subject In – Charge : Dr. P. Subathra, Prof./IT QUESTION BANK UNIT II BRUTE FORCE AND DIVIDE-AND-CONQUER Brute Force – Computing an – String Matching - Closest-Pair and Convex-Hull Problems - Exhaustive Search - Travelling Salesman Problem - Knapsack Problem - Assignment problem. Divide and Conquer Methodology – Binary Search – Merge sort – Quick sort – Heap Sort - Multiplication of Large Integers – Closest-Pair and Convex - Hull Problems. Q. No Question Marks Knowled geLevel Number of Times inAU PART - A INTRODUCTION 1. Define a linear and non-linear data structure. Give an example for each. 2 K1 1 2. List the four major operations in linear data structures 2 K1 1 ABSTRACT DATA TYPES (ADTS) 3. What is an ADT? Give an example. (OR) Define an abstract type. List out few. (OR) What are abstract data types? 2 K1 10 4. What is the purpose of using ADTs in programs? (OR) What is advantage of an ADT? 2 K1 2 5. What are all not concerned in an ADT? 2 K1 1 6. What is Data Structures? How is it classified? 2 K1 1 List ADT - ARRAY IMPLEMENTATION 7. Is linked list better than an arrayed list? Give at least two reasons for your answer. 2 K2 3 8. What are the advantages of linked lists over arrays? (OR) What are the advantages and disadvantages of linked lists over arrays? 2 K1 3 9. What is the Data Structure used to perform recursion? 2 K1 1 10. Define List Abstract Data Type with example. 2 K1 1
  • 2. 2 11. Provide the asymptotic complexity for calculating the Sum of n number in an array. 2 K1 1 12. Explain why binary search cannot be performed on a linked list. 2 K2 1 LIST ADT - LINKED IMPLEMENTATION 13. Write algorithms to insert and delete an element from a linked list. 2 K1 1 LIST ADT - ARRAY & LINKED IMPLEMENTATION 14. Clearly distinguish between linked lists and arrays. Mention their relative advantages and disadvantages. 2 K2 1 LINKED LIST CIRCULAR LINKEDLIST 15. What is circular linked list? 2 K1 1 PART B ABSTRACT DATA TYPES (ADTS) 16. Write and explain the ADT operations for array implementation of a Queue. 8 K2 1 17. Write an ADT for Enqueue and Dequeue. (6) 6 K2 1 LIST ADT - LINKED IMPLEMENTATION 18. Develop a C program to split the linked list into two sub lists containing odd and even ordered elements in them respectively. 16 K2 1 19. Write a C code for singly linked list with insert, delete, display operations using structure pointer. 16 K2 1 20. What is a singly linked list? Write a C program that uses functions to perform the following operations on singly list with suitable diagrammatic representations. Consider all cases: Insertion b. Deletion c. Traversal 16 K2 1 21. Illustrate the algorithms to create the singly linked list and perform all the operations on the created list. 16 K2 1 22. Develop the program in C to delete a node with the minimum value from a singly linked list. 16 K2 1 23. Explain with an example the creation of a linked list, insertion and deletion of nodes and swappind of any two nodes. 16 K2 1 24. Write algorithms to insert and delete elements from a linked list. Consider all cases. 16 K2 1 LIST ADT - ARRAY & LINKED IMPLEMENTATION 25. Describe the data structures used to represent lists. 16 K2 1 LIST ADT - DOUBLY LINKED LIST IMPLEMENTATION 26. Illustrate the algorithm to implement the doubly linked list and perform all the operations on the created list. 16 K2 1
  • 3. 3 27. Illustrate the necessary algorithms to implement doubly linked list and perform all the operations on the created list. 16 K2 1 28. Describe the creation of a doubly linked list and appending the list. Give relevant coding in C. 16 K2 1 LINKED LIST CIRCULAR LINKEDLIST 29. How does a Circular Linked list differ from a Singly linked list? State its advantages over a Singly linked list. Write algorithms to perform insertion and deletion on a doubly linked list. 16 K2 - DOUBLYLINKEDLIST 30. Write an algorithm to perform insertion and deletion on a doubly linked list. 8 K2 1 31. Write a C program that uses functions to perform the following opearations on doubly linked list a. Creation b. Insertion c. Deletion d. Traversalin both ways 16 K2 1 32. Develop an algorithm to implement a Doubly Linked List. Give relevant example and diagrammatic illustrations. 16 K2 1 33. Write a procedure to insert a node, delete a node, count and display nodes in doubly linked list. 16 K2 1 POLYNOMIAL MANIPULATION 34.1. Write a C Program to add two polynomials using linked list. 16 K2 1 35. Explain the following: (8+8) a. Application of lists b. Polynomial manipulation 16 K2 1 36. Write a program to add two polynomials using linked list. 16 K2 1 PART C LIST ADT - ARRAYIMPLEMENTATION 37. Consider an array A[1:n]. Given a position, write an algorithm to insert an element in the array. If the position is empty, the element is inserted easily. If the postion is already occupied the element should be inserted with the minimum number of shifts. (Note: The elements can shift to the left or to the right to make the minimum number of moves) 16 K3 1 LIST ADT - LINKED IMPLEMENTATION 38. Given two sorted lists L1 and L2, write a procedure to compute a. L1 intersection L2 b. L1 union L2 using only the basic list operations 10 K3 1
  • 4. 4 39. Formulate an algorithm to perform an insertion in a singly linked list in an increasing order of their INFO field. 10 K3 1 40. Given two sorted lineat linked lists L1 and L2, how do you create a list L3, which consisits of the uncommon elements of L1 and L2? Write a suitable ADT for the construction of doubly linked list L3. 8 K3 1 LINKED IMPLEMENTATION - POLYNOMIAL MANIPULATION 41. Write a program to store the polynomial expression terms in random order, display the terms in descending order of powers and count the number of terms in the expression using doubly linked list. 16 K3 1 Staff In – Charge Subject Matter Expert HoD/IT