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)
28 views
6 pages
UNIT 1 - 2 Marks
Data structures two marks
Uploaded by
alphaashwin1526
AI-enhanced title
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 UNIT 1 -2 marks For Later
Download
Save
Save UNIT 1 -2 marks For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
28 views
6 pages
UNIT 1 - 2 Marks
Data structures two marks
Uploaded by
alphaashwin1526
AI-enhanced title
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 UNIT 1 -2 marks For Later
Carousel Previous
Carousel Next
Download
Save
Save UNIT 1 -2 marks For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 6
Search
Fullscreen
one) (2 Narks) Al INNA UNIVERSITY PART A QUESTIONS 1, When arrays are better than linked list? Give an example. (Nov/ Dec 2021) e Access Time: Random Access Memory is allowed in arrays. It means it takes O(1) to access any element in the array. In linked list, Random access is not allowed. We have to access elements sequentially starting from the first node. Linked list takes O(n) for access to an element in the list in the worst case. . Another advantage of arrays in access time is special locality in memory. Arrays are defined as contiguous blocks of memory, and so any element will be physically near its neighbours. This greatly benefits from modern CPU caching methods. ¢ Extra memory space for a pointer is required with each element of the list. Hence linked lists wastes memory in terms of extra reference points. 2, What is the benefit of circularly linked list over singly linked list in search applications? (Nov/ Dec 2021) 1. In Circular Linked List, end node will point to the first node. It saves time to go to the first node from the last It can be done in single step because there is no node. .s. Whereas in singly need to traverse the in between nodes linked list it won’t point to first node. . Circular list is very useful in case of Game play, to give turns for each player without any failure (due to its circular connectivity). 3, Circular Linked list starting at any position. er & scanned with OKEN Scanner Nn) B Data Structures 3. Define Linked List? (Nov/Dec 2019) Linked list is a collection of data elements stored in series of nodes, Each node consists of data and a pointer to the next node. The nodes are not necessarily adjacent in memory. 4, Define an Abstract Data Type? (AU Nov/Dec 2019, May/June 2016, April/May 2015, Nov/Dec 2015, 2013, 2012 & 2010, May/June 2010, Nov/Dec 2009) An Abstract Data Type (ADT) is a mathematical model for data type, which gives a:set of operations available to the user but never states the details of its implementation. Objects. such .as:.list,.-stack, queue and graphs along with their operations can be'viewed.as.ADTs. 5. Illustrate the differences between linear lined list and circular linked list: : (AU Apr/May 2019) S.No Linear linked list Circular linked list 1 The last node contains a | The last node contains a ‘null pointer boda pointer to the first node of : the list. 2. | The beginning ofthe list | The circular linked list has contains the head.node. | no beginning and no end. 6. What are the advantages of linked list over arrays? (AU Apr/May 2019, May/June 2013) © Itis not necessary to specify the number of elements in a linked list during its declaration. © Ttcan grow and shrink in size depending upon the insertion and deletion that occurs in the list. * It does not waste memory space, 34 & scanned with OKEN Scanner—$$___ Lists « Insertions and deletions at any place in a list'can be ‘handled easily and efficiently. 7, What is the disadvantage of linked list over array? (Nov/Dec 2018, Apr/May 2017, Jan 2016, May/June 2013) Random access is not allowed: So: we have to access clements sequentially starting from the first node: Extra memory space for a pointer is required with can each element of the list, I 3. Arrays have better cache locality that c can make a a a pretty big difference in performatice, 8. What is circular linked list? (AU, May/June 2016) Circular linked list a linked list in which the ‘last’ node of the list points to the first node of the list,’ There:are two: types’ of eirular linked list. nub isle isder 1. Singly circular linked list 2. Doubly circular linked list’'’ 9, Define linear and non-linear data structures. Give an example for each. : (AU Nov/Dec 2013) Linear Data Structures In linear data structures, values'aré’ artanged i in’ linéar: or Sequential otder:/ Arrays! linked Tists, stacks and uci ‘are'exat data structures in which Valles! Non-Linear Data Structures. This type is opposite to linear. The data values in this structure are not arranged in order, Tree, graph, table and sets are ane ofnon ~ linear data structures: ); vc vio 1 hull « 1 Sle 35 & scanned with OKEN Scanneryr B Data Structures performed in set ADT? 10. What are the operations - (AU May/June 2012) - Union, Intersection, complement. 11. Write any three applications of linked list. (May/June 2012) 1, Linked list can be used for representing a polynomia| expressions and manipulations 2. Radix Sort 3. Multi lists. 12. Define singly linked list compare with an array. (May/June 2010) Linked List Size of list is unfixed Tt is not necessary to specify the number of elements during declaration. r Array Size of an array is fixed Tt is necessary to specify the number of elements during declaration. Insertions and deletions are Insertions and deletions are difficult. easy. It occupies more memory. It occupies less memory. 16. State the advantage of ADT? e ADTs are easier to understand. Implementations of ADTS can be changes without requiring changes to the program that uses the ADTs. e ADTs can be easy to reuse and debug. 17. Define Data Structure. am ; . oe is a way of sorting, organizing and retrieving in a computer so that it can be used efficiently. gi 36 * & scanned with OKEN Scanner18 pefine linked list, = : Linked list is a collecti tion of data clements stored in series of nodes. Each node consis to the r Sists of data and a pointer to t! t cl nex! node. The are no} 'y adjacer no odes are not necessaril: adjacent in memory. 19 what is the importance of header nodes? leader of the linked list is the first element i i i the number of elements in the list, Using Reader ot ae starting address of the linked list, ee 20. pen why binary search cannot be performed on a linked ist. Binary search can be done only on a sorted list and also the list needs to be accessed in the middle at the random position. The limitation oflinked list is that, random access is not allowed. We have to access elements in sequence starting from the first node. So we cannot do binary search with linked lists. 21. Define singly linked list. Singly linked list is a list, in which each node contains element and er to the next node. The singly linked list can traverse in only point one direction. 22, Define doubly linked list. What are the operations that can it? State its advantages. be performed on i in which each node has three fields. backward link (BLINK) and data list is it allows traversing and successor nodes are Doubly linked list is a linked list That is forward link (FLINK), field. The advantage of using doubly link to both directions. Finding predecessor easier. Pinar WA) & scanned with OKEN ScannerLe Data Structures The operations performed in doubly linked list are, insert, deletion, traversals, find operations. ae my 23. Define circularly linked list. What are its advantages? Circular linked list is a linked list, in which the last node of the lig points to first node of the list. The main advantage is it allows hig, access to the first and last node. It allows list starting at any position 24. List out the disadvantages of using a linked list © Searching a particular element in a list is difficult and time consuming ¢ A linked list will use more storage space than an array to stor the same number of elements ANNA UNIVERSITY PART B AND C QUESTIONS 1. Consider the following problem scenario: In recording scores for a golf tournament, we enter the name and score of the player as the player finishes. This information is to be retrieved in each of the following ways. Scores and names can be printed in order by ascending or by descending scores. Given the name ofa player. other players with the same score can be printed. © Give procedure by using the doubly linked list data structure, for implementing a solution for the problem. (AU Nov/Dec 2021) 2. Write procedure or pseudo codes for the following operations 0" circular linked lists: (i) insertion (ii) deletion (iii) count (AU Nov/Dec 202)) —— ee 38 & scanned with OKEN Scanner
You might also like
Data-Structures Short Questions
PDF
No ratings yet
Data-Structures Short Questions
28 pages
ds 1
PDF
No ratings yet
ds 1
28 pages
question bank for ds
PDF
No ratings yet
question bank for ds
28 pages
Data Strctures Question Bank -22.07.24
PDF
No ratings yet
Data Strctures Question Bank -22.07.24
39 pages
All Document Reader 1734249888366
PDF
No ratings yet
All Document Reader 1734249888366
27 pages
All Document Reader 1733765023606
PDF
No ratings yet
All Document Reader 1733765023606
27 pages
DS 2M U1&2 QB
PDF
No ratings yet
DS 2M U1&2 QB
25 pages
Bca C201 QB01
PDF
No ratings yet
Bca C201 QB01
21 pages
QB_DataStructures
PDF
No ratings yet
QB_DataStructures
16 pages
CDS - QB - Unit3 4 5
PDF
No ratings yet
CDS - QB - Unit3 4 5
20 pages
DS MID-1 (2 marks)
PDF
No ratings yet
DS MID-1 (2 marks)
4 pages
Imp - Data-Structures Questions
PDF
No ratings yet
Imp - Data-Structures Questions
16 pages
ADS Linked List Slides
PDF
No ratings yet
ADS Linked List Slides
19 pages
DSA Unit 2 - Question Bank
PDF
No ratings yet
DSA Unit 2 - Question Bank
11 pages
2MARKS (Data Structures Using Python)
PDF
No ratings yet
2MARKS (Data Structures Using Python)
22 pages
CS3301 Data Structure Unit wise
PDF
No ratings yet
CS3301 Data Structure Unit wise
36 pages
3 Array and Linked Lists
PDF
No ratings yet
3 Array and Linked Lists
32 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
AD3251_DSD_QB_UNIT_2 - 2 Mark
PDF
No ratings yet
AD3251_DSD_QB_UNIT_2 - 2 Mark
5 pages
DS Unit-2 material
PDF
No ratings yet
DS Unit-2 material
21 pages
Unit II Linked List 2
PDF
No ratings yet
Unit II Linked List 2
31 pages
Fact Finding Dfc3033 - Data Structure Chapter 2: List and Linked List
PDF
No ratings yet
Fact Finding Dfc3033 - Data Structure Chapter 2: List and Linked List
4 pages
SP24-DS&A-Week05-Data-Structures
PDF
No ratings yet
SP24-DS&A-Week05-Data-Structures
17 pages
Link List
PDF
No ratings yet
Link List
20 pages
Chapter III
PDF
No ratings yet
Chapter III
27 pages
U20ITT32 2 M & 16 M
PDF
No ratings yet
U20ITT32 2 M & 16 M
21 pages
11. Linked list notes lawanyashri
PDF
No ratings yet
11. Linked list notes lawanyashri
71 pages
L2
PDF
No ratings yet
L2
20 pages
191CSC303T - DS - Unit 1
PDF
No ratings yet
191CSC303T - DS - Unit 1
5 pages
Data Structure 36 37
PDF
No ratings yet
Data Structure 36 37
2 pages
15forteen@data Structures VIVA Questions
PDF
No ratings yet
15forteen@data Structures VIVA Questions
8 pages
6-6-Applications, Advantages and Disadvantages of Linked List
PDF
No ratings yet
6-6-Applications, Advantages and Disadvantages of Linked List
2 pages
Week5
PDF
No ratings yet
Week5
5 pages
2 Marks With Answers
PDF
No ratings yet
2 Marks With Answers
24 pages
Applications, Advantages and Disadvantages of Linked List
PDF
No ratings yet
Applications, Advantages and Disadvantages of Linked List
8 pages
DCS 3 UNIT
PDF
No ratings yet
DCS 3 UNIT
12 pages
DS 2MARKS Q AND A
PDF
No ratings yet
DS 2MARKS Q AND A
21 pages
Linked Lists
PDF
No ratings yet
Linked Lists
10 pages
DS Q Bank
PDF
No ratings yet
DS Q Bank
43 pages
UNIT-04 LINKED LIST PDF_11147854_2022_10_12_19_42
PDF
No ratings yet
UNIT-04 LINKED LIST PDF_11147854_2022_10_12_19_42
7 pages
Cs8391-Data Structure
PDF
No ratings yet
Cs8391-Data Structure
21 pages
Linked List
PDF
No ratings yet
Linked List
11 pages
Cs8391-Data Structures Department of Eie & Ice 2021 - 2022
PDF
No ratings yet
Cs8391-Data Structures Department of Eie & Ice 2021 - 2022
38 pages
cs8391 Iq
PDF
No ratings yet
cs8391 Iq
22 pages
Linked List Vs Array
PDF
No ratings yet
Linked List Vs Array
10 pages
DSA - Unit2_Final_Updated
PDF
No ratings yet
DSA - Unit2_Final_Updated
145 pages
Week 07 (Linked List)
PDF
No ratings yet
Week 07 (Linked List)
32 pages
CSS 433 GROUP 3 Edited
PDF
No ratings yet
CSS 433 GROUP 3 Edited
15 pages
Unit Iii CS3353 CPDS Question Bank
PDF
No ratings yet
Unit Iii CS3353 CPDS Question Bank
5 pages
CS6202 / Programming and Data Structures I
PDF
No ratings yet
CS6202 / Programming and Data Structures I
5 pages
DSA Viva Q&ASEM III Lab Externals @vtunetwork
PDF
No ratings yet
DSA Viva Q&ASEM III Lab Externals @vtunetwork
26 pages
Dsa Viva Questions
PDF
No ratings yet
Dsa Viva Questions
13 pages
link list
PDF
No ratings yet
link list
3 pages
Linked Lists Vs Arrays
PDF
No ratings yet
Linked Lists Vs Arrays
25 pages
Unit 4 Ds Link List t221
PDF
No ratings yet
Unit 4 Ds Link List t221
59 pages
unit 1 Two marks and important questions
PDF
No ratings yet
unit 1 Two marks and important questions
5 pages
Linked List
PDF
No ratings yet
Linked List
31 pages
Linked Representation and Chains.pdf
PDF
No ratings yet
Linked Representation and Chains.pdf
13 pages