Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
10 views
36 pages
CS3301 Data Structure Unit wise
Gahahah
Uploaded by
shamrcse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save CS3301 Data Structure Unit wise For Later
Download
Save
Save CS3301 Data Structure Unit wise For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
10 views
36 pages
CS3301 Data Structure Unit wise
Gahahah
Uploaded by
shamrcse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save CS3301 Data Structure Unit wise For Later
Carousel Previous
Carousel Next
Download
Save
Save CS3301 Data Structure Unit wise For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 36
Search
Fullscreen
UNITI Topics ‘eat / Reference book Page No. ‘Abstract Data Types (ADTs) 37 List ADT ~ array-based implementation 38-59 i Mark Allen Weiss, “Data [55 Tinked list implementation Poe ake rene |—_________) Analysis in C*, 2nd Edition, singly Tinked lists Pearson Education, 1997, 0 circularly linked lists 8 doubly-linked lists 6 applications of lists —Polynomial | Manipulation ‘All operations (Insertion, Deletion, B Merge, Traversal). S| Question No Course | Blooms Outcom | Taxanom © Adata structure is a which would allow eff data retrieval and us © A data strucyure j not only inhe also their, og —f ‘NY en | ytew! 1 What is a data structure? C3 method intzing and storing data rganizing data that considers BTLI 2 | Wh iructures? Rent reuse. again and again in various applications, aNguctures allow us to achieve an important goal: fe data structure has been implemented, it can be used Gita | BTLI 3 | List some common data structures, Stacks Queues: Lists Trees Graphs Tables Gia [BLTHow data structures are classified? Git | BTL1 Data structures are classified into two categories based on how the data items are ‘operated: i. Primitive data structure ii, Non-Primitive data structure a. Linear data structure b, Non-linear data structure Differentiate linear and non-linear data structure. Gut Linear data structure ‘Non-linear data structure ‘Data are arranged in linear or | Data are not arranged in linear sequential manner manner BIL2 Every items is related to its | Every item is attached with previous many other ° and next item items Data items can be traversed in | Data tems cannot be tra a ina single run. single run. Tmplementation is easy ‘Example: array, stack, queue, linked list Define ADT (Abstract Data Git |BTLT ‘An abstract data typ © a set of operations and ‘mathematical abstractio ‘of operations is implemented. Objects like lists, along with their operation, can bbe viewed as a g 'Ypes, just as integers, real numbers and Booleans, Mi fe ‘of ADT. Gilt BTL? iDi jgram into small functions ii, Easy Wo debug and maintain iii, Easy to modify b, Reuse i, Define some operations only once and reuse them in future cc, Easy to change the implementation Define List ADT Git |BTLI 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. AL. A2, A3...0AN Where N>0 and A is of type element‘What are the ways of implementing linked list? ‘The list can be implemented in the following ways: i, Array implementation ii, Linked-list implementation Cursor implementation cant BILI 10 ‘What are the types of linked lists? ‘There are three types i, Singly linked list Doubly linked list iii. Circularly linked list cit BILT i How the singly linked lists can be represented? data next Each node has two elements Data Next Le [ts Yt cat BTL! How the doubly linked list can be represented? ee ‘of nodes where nodes are connected by forwarded, backward link. © Each node has t — 1, Address of 2. Da Git BILT 3 b. Implementation of ADT can be changed without requiring changes to the program that uses the ADT Gin BTLI ‘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 cid BTL ITists from singly linked lists, the last node"s next fieldis connected to the first node. (Git C1} CCTs ‘When doubly linked list can be represented as circular linked list? In a doubly linked list, all nodes are connected with forward and backward links to the ‘next and previous nodes respectively. In order to implement circular linked lists from doubly linked lists, the first node's previous field is connected to the last node and the last node’s next field is connected to the first node. Galt BILI Where cursor implementation can be used? ‘The cursor implementation of lists is used languages such as BASIC and FORTRAN that do not support pointers. iMportin features of the cursor ‘implementation of linked are as follows” © The data are stored in a structure contains dat index to the next structupé of structures. Bach from the system's global BILI 7 "ATYile system, the metadata of a large file is organized ist of FAT entries. 4. Simple memory allocators use a free list of unused memory regions, basically a linked list with the list pointer inside the free memory itself. Hit BIL 18 ‘What are the advantages of linked list?(apr/may 2019) a. Save memory space and easy to maintain b. IN is possible to retrieve the element at a particular index €. It is possible to traverse the list in the order of increasing index. 4. It is possible to change the element at a particular index to a different value,without affecting any other elements. int BILI19 | Mention the demerits of linked list ca] BTL2 a. [tis 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 | G11 | BTL 2 1s follows: Coefficient Exponent Next node link struct polynomial { int coefficient; int exponent; struct polynomial *next; h 21 | What are the operations performed in list? Git | BTLI The following operations can be performed on a list i. Insertion a, Insert at beginning b. Insert at end cc. Insert after specific node ® ii, Deletion a. Delete at beginning b, Delete at end ¢. Delete after specific node 4d. Delete before specific node ° . Merging aN ees < d, Insert before specific node N 22 | What are the merits and deme 5; implementation of lists? Merits © Fast, random f elements © Memory ef less amount of memory is required défftion operations are very slow since the ld be «Redundant memory space ~ difficult to estimate the size of array. Gin BILI 23 | What is a circular linked list? A ccitcular linked list is a special type of linked list that supports traversing from the end Cf the list to the beginning by making the last node point back to the head of the list, cad BTLory ‘What are the advantages in the array implementation of list? a. Print list operation can be carried out at the linear time Find Kth operation takes a constant time Girt BTLI ‘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. Gini BTLI 26 List three examples that uses linked list? a, Polynomial ADT bRadix sort Multi lists Git BTLI oy List out the different ways to implement the list? 1. Array Based Implementation 2. Linked list Implementation Singly linked list ii, Doubly linked list iii, Cursor based linked list LI 28 Write the routine for insertion operation list. Void Insert (ElementType X, List L, Posfliy {Position TmpCell; lloc(sizeof{struct Node] i NULL) FatalError(“Out of space!!!" ‘TmpCell->Element =: P->Next=TmpCell, * Cant BILS 2 cess any memory directly. jw the position of the middle element and other ts are easily accessible too, we can easily perform TARY SEARCH in array. Gini BILS 30 Disadvantages of Array over Linked List. 1, Total number of elements need to be mentioned or the ‘memory allocation needs to be done at the time of array creation 2. The size of array, once mentioned, cannot be increased in the program. If number of elements entered exceeds the Gant BILSsize of the array ARRAY OVERFLOW EXCEPTION occurs. 3 ‘Advantages of Linked List over Array. 1. Size of the list doesn't need to be mentioned at the beginning of the program. 2. As the linked list doesn't have a size limit, we can go on adding new nodes (elements) and increasing the size of the list to any extent Gini BILS 2 Disadvantages of Linked List over Array. 1. Nodes do not have their own address. Only the address of the first node is stored and in order to reach any node, we need to traverse the whole list from beginning to the desired node. 2, Asall Nodes don't have their particular address, BINARY SEARCH cannot be performed cud BILS 33 list(apr/may 2019) Linked list are used to create trees and graphs. Cireular. In circular linked list the last node adress part holds t the first node hence forming a circular chain likes list isa linear data structure which consists sequence . < Dian aa NT ad aed se o of Enlist the various operations that ean be ‘on data structure. ‘Various operations that can be perf 1 data structure are + Create + Insertion of element + Searching for the desired clement + Sorting the ek the data structure * Reversing Gia 35 cant 7 Operating system- the data structure like priority queues are used for scheduling the jobs inthe operating system. * Compiler design- the tree data structure is used in parsing the source program, Stack data structure is used in handling recursive calls. + Database management system- The file data structure is used in database management systems. Sorting and searching techniques can be applied an these data in the file + Numerical analysis package- the array is used to perform the numerical analysis on the given set of data. * Graphies- the array and the linked list are useful in graphics applications. + Artificial intelligence- the graph and trees are used forthe applications like building expression trees, game playing. cant
You might also like
DATA-STRUCTURES Sample Questions To Prepare For VIVA
PDF
No ratings yet
DATA-STRUCTURES Sample Questions To Prepare For VIVA
27 pages
DSA Viva Q&ASEM III Lab Externals @vtunetwork
PDF
No ratings yet
DSA Viva Q&ASEM III Lab Externals @vtunetwork
26 pages
Data-Structures Short Questions
PDF
No ratings yet
Data-Structures Short Questions
28 pages
ds 1
PDF
No ratings yet
ds 1
28 pages
II Year III Sem Cs8351 Data Structures
PDF
No ratings yet
II Year III Sem Cs8351 Data Structures
29 pages
All Document Reader 1733765023606
PDF
No ratings yet
All Document Reader 1733765023606
27 pages
question bank for ds
PDF
No ratings yet
question bank for ds
28 pages
All Document Reader 1734249888366
PDF
No ratings yet
All Document Reader 1734249888366
27 pages
CDS - QB - Unit3 4 5
PDF
No ratings yet
CDS - QB - Unit3 4 5
20 pages
UNIT 1 - 2 Marks
PDF
No ratings yet
UNIT 1 - 2 Marks
6 pages
DS 2M U1&2 QB
PDF
No ratings yet
DS 2M U1&2 QB
25 pages
DSA - Unit2_Final_Updated
PDF
No ratings yet
DSA - Unit2_Final_Updated
145 pages
Pds
PDF
No ratings yet
Pds
37 pages
(R18A0503) Data Stuctures
PDF
No ratings yet
(R18A0503) Data Stuctures
154 pages
3. List ADT
PDF
No ratings yet
3. List ADT
37 pages
List ADT
PDF
No ratings yet
List ADT
70 pages
Linkedlist and Hashing by
PDF
No ratings yet
Linkedlist and Hashing by
17 pages
Linked Lists
PDF
No ratings yet
Linked Lists
10 pages
Unit 3 BCA313 DS Using C++
PDF
No ratings yet
Unit 3 BCA313 DS Using C++
15 pages
DS Q Bank
PDF
No ratings yet
DS Q Bank
43 pages
Bridge Course-DataStructures - Unit - 1
PDF
No ratings yet
Bridge Course-DataStructures - Unit - 1
17 pages
DSA UNIT - 1
PDF
No ratings yet
DSA UNIT - 1
30 pages
CS8391-Data Structures Department of CSE & IT 2020 - 2021
PDF
No ratings yet
CS8391-Data Structures Department of CSE & IT 2020 - 2021
44 pages
15IT305 Data Structures and Algorithms
PDF
No ratings yet
15IT305 Data Structures and Algorithms
128 pages
dsa UNIT-3
PDF
No ratings yet
dsa UNIT-3
47 pages
Dsbook 3
PDF
No ratings yet
Dsbook 3
68 pages
Dsa
PDF
No ratings yet
Dsa
130 pages
Data Strctures Question Bank -22.07.24
PDF
No ratings yet
Data Strctures Question Bank -22.07.24
39 pages
Data Structures Unit 1
PDF
No ratings yet
Data Structures Unit 1
96 pages
Cs3301 Data Structures u.i
PDF
No ratings yet
Cs3301 Data Structures u.i
33 pages
Cs3301 Data Structures U.I
PDF
No ratings yet
Cs3301 Data Structures U.I
33 pages
DSA Unit II
PDF
No ratings yet
DSA Unit II
14 pages
Chapter 2 List and Linked List
PDF
No ratings yet
Chapter 2 List and Linked List
33 pages
CS301 Mid-term Notes 1-22
PDF
No ratings yet
CS301 Mid-term Notes 1-22
125 pages
CD3291 -DATA STRUCTURES -UNIT 2 -NOTES
PDF
No ratings yet
CD3291 -DATA STRUCTURES -UNIT 2 -NOTES
60 pages
Link List
PDF
No ratings yet
Link List
20 pages
Linked List
PDF
No ratings yet
Linked List
8 pages
CS8391-Data Structures
PDF
No ratings yet
CS8391-Data Structures
16 pages
Linked List
PDF
No ratings yet
Linked List
11 pages
3 Array and Linked Lists
PDF
No ratings yet
3 Array and Linked Lists
32 pages
unit 1 Two marks and important questions
PDF
No ratings yet
unit 1 Two marks and important questions
5 pages
Unit 4
PDF
No ratings yet
Unit 4
92 pages
DSU Microproject TEJU FINAL
PDF
No ratings yet
DSU Microproject TEJU FINAL
18 pages
Chapter III
PDF
No ratings yet
Chapter III
27 pages
Week 3# ADTs & Linklist
PDF
No ratings yet
Week 3# ADTs & Linklist
23 pages
Lecture 6 List s2024
PDF
No ratings yet
Lecture 6 List s2024
37 pages
Lab # 04 (Data Structure and Algorithm)
PDF
No ratings yet
Lab # 04 (Data Structure and Algorithm)
5 pages
Linked List in Data Structures 1
PDF
No ratings yet
Linked List in Data Structures 1
19 pages
Linked List
PDF
No ratings yet
Linked List
20 pages
Dsa Lab 06
PDF
No ratings yet
Dsa Lab 06
5 pages
CSS 433 GROUP 3 Edited
PDF
No ratings yet
CSS 433 GROUP 3 Edited
15 pages
Linked Lists Vs Arrays
PDF
No ratings yet
Linked Lists Vs Arrays
25 pages
Linked List
PDF
No ratings yet
Linked List
3 pages
Unit 2 - DS - W2 - Class
PDF
No ratings yet
Unit 2 - DS - W2 - Class
110 pages
DSA Tutorial3 Linked Lists
PDF
No ratings yet
DSA Tutorial3 Linked Lists
5 pages
L2
PDF
No ratings yet
L2
20 pages
1071
PDF
No ratings yet
1071
123 pages
Dspd Ppt Group 3
PDF
No ratings yet
Dspd Ppt Group 3
33 pages
Datastructures Lab
PDF
No ratings yet
Datastructures Lab
18 pages
MA3354 Discrete Mathematics Apr May 2024 Question Paper Download
PDF
No ratings yet
MA3354 Discrete Mathematics Apr May 2024 Question Paper Download
3 pages
CS3391 Object Oriented Programming Apr May 2024 Question Paper Download
PDF
No ratings yet
CS3391 Object Oriented Programming Apr May 2024 Question Paper Download
3 pages
MA3354 Discrete Mathematics Nov Dec 2023 Question Paper Download
PDF
No ratings yet
MA3354 Discrete Mathematics Nov Dec 2023 Question Paper Download
3 pages
TNUSRB_Practice_Questions
PDF
No ratings yet
TNUSRB_Practice_Questions
23 pages
MA3354 Discrete Mathematics Apr May 2023 Question Paper Download
PDF
No ratings yet
MA3354 Discrete Mathematics Apr May 2023 Question Paper Download
3 pages
Java_DSA_Schedule_January_2025
PDF
No ratings yet
Java_DSA_Schedule_January_2025
3 pages
Java_DSA_Schedule_Table_January_2025
PDF
No ratings yet
Java_DSA_Schedule_Table_January_2025
3 pages
MA3354 Discrete Mathematics Nov Dec 2022 Question Paper Download
PDF
No ratings yet
MA3354 Discrete Mathematics Nov Dec 2022 Question Paper Download
3 pages
CS3301 Data Structures Apr May 2023 Question Paper Download
PDF
No ratings yet
CS3301 Data Structures Apr May 2023 Question Paper Download
2 pages
CS3391 Object Oriented Programming Apr May 2023 Question Paper Download
PDF
No ratings yet
CS3391 Object Oriented Programming Apr May 2023 Question Paper Download
2 pages