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)
39 views
8 pages
DS Previous PPR
Data structure pyq
Uploaded by
patilhitarthb
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
Save
Save DS previous ppr For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
39 views
8 pages
DS Previous PPR
Data structure pyq
Uploaded by
patilhitarthb
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
Carousel Previous
Carousel Next
Download
Save
Save DS previous ppr For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
Ew ete N.B: Ql Q2 Q3 Q4 Qs Q6 APRS R bIect Code: $0923 / Data Structure wep Wy (7) ww SOPL jot 20875 . 4 é f <2 d f Tofal Marks: 80 ay, (G Hours) es (1) Quest ae 2) Attempt any three questions out of the remaining five questions. (3) Figures to the right indicate full marks. y (4) Make suitable assumptions wherever necessary. (a) Compare linear and on-linear data structilés. (05) (>) Explain the advantage of circtilar queue over linear queue. Write a (05), function in C language to inse ment in cis e (©) Define binary search tree: (05) search tree if node has both the children. (2) Write a C function fe dn tig eg ‘[05] (a): Construct AVL tree for the following sequence: 4 (oy ¢ 67,34,90,22,45,11,2,78,37,122 & (b) Write algorithm for postfix evaluation. Demonstrate the’same step by step for the expression: 967 *2/- (a) Write a program to perform following operations on a circular linked list: [10] i) insert a node from the efid of the list, i) delete first node, j iii) count the number of nodes with even values, iv) display the list’ (b) Write a C program to simulate linear queue as linked list. {10} (@) Construct Huffman tree [10] given below with frequen: «* [Symbor_ x Frequency 20 [17 [33 g)25 [a0 (b) Explain the various ways fo represent graph in the memory if (©) Construct binary search tre from give traversal seque [03] Intorder traversal | D. BIA [Cc JF |G HT Pre-order, E [pyc A HI [5 [05] ‘waversal ry (@) Apply linear probing to hash the following values in ahash table of size [10] 11 and find the number of collisions: 67,44,90,12,83,52,23,87,79. (b) Define topological sorting. Perform topological sorting for the following _{10] Q—® Teo (2) Construct B tree ofc 3 ing the following given elements as: [10] T1,97,15,64,53,1426,49,82, ‘Show the B tree at each of insertion. (b) Write a function in C for DFS traversal of graph. Explain DFS graph (19) traversal with suitable example. 12055 © Page lofi (00F72FA1FD894CEBSOE3095S1CC67FCE_"S_siaH—=5$5=E=sses=s (, Cprarap 254 4 De\ns, Paper / Subject Code: 49303 / DATA STRUCTURES Ww Time: 3 Hours N.B. (1) Question No.1 is Compulsory (2) Attempt any three questions out of remaining five questo (3) Make suitable assumptions wherever necessary (4) Figures to the right indicate full marks 1. (a) Explain ADT with an example. (b) Differentiate between Static and Dynamic: representation of Date Structure. 4) (c) Write a *C’ program to implement Binary Search using reoursion (d) Discuss practical applications of Queues - re 2 - : * 10)” 2. (a) Write a *C’ program to implement ‘STACK using arrays 7 (Q)What are the different methods of File LO Sn ‘C’ language? What bran functions are supported by “C” language to doabis? = (10) 2. (@ What are the advantages of Linked: lis over anay? Write a°C’ proba to implement Queue ADT using Linked-List 10) 1 search with a suitable exaiaple: What arethe (b) Explain indexed Sequential advantages and disadvantages of Indexed Sequential search (10) 3. (@) Write a °C program to create @“Singly Linked List’. The ADT shoul8 suppor 1 the following operations (@ Greating.a Link Li Gi) Inserting & node after e spec (ii) Deletinga node SF ~ (iv) Displaying the list Sac (Explain the method of Huffman Encoding APPS Huffman encoding method for the ec ntence “MAHARASHTRA”. Give Hoffman code for each symbol (10) ate Binary Search Tree. Show BST for the following input: $5. (a) Write a °C° program to cre SS 10,05314,22.17,01,08 (10) ghar is the se of hashing? Show hash ible entries for the ven dataset wing Linear roping and Quadratic Probing: 12.5,67,88,27,78,20,62,36.55. (10) (20) & Write Short notes on (any two) (a) Threaded Binary Tree (b) BFS Traversal (c) Doubly Linked-list 69389 EESBC0983D326D1 14F812BDFD26CDFS8 Page 1 of 2ye Paper / Subject € VOR Code: 36285) Sero {ime three Hours Umarke-20) NBC) Question No1s Compulsory (2) Attempt any three questions out of remaining five questions (3) Make suttable assumptions wherever necessary (4) Figures to the right indicate full marks 1 (a) Explain ADT with an example. oy (b) Differentiate between Static and Dynamic Data Structure “6 (6) Writea “C* program to implement Binary Search using recutsion 6 (4) Discuss practical applications of Queues 6) 2. (a) Write a ‘C* program to implement STACK using arrays (19) (b)What are the diferent methods of File VO in °C’ language? What library Functions ate supported by °C” language todo this? (10) 3. (a) What are the advantages of Linked list over array? Write a °C” program to implement Queue ADT using Linked List (10) (b)Explain indexed Sequential search with a suitable example. What are the advantages and disadvantages of Indexed Sequential search (10) 4. (a) Write a °C program to create a “Singly Linked List” ADT. The ADT should support the following: (10) (i) Creating a Linked List (ii) Inserting a node after a specifie node (iit) Deleting a node (iv) Displaying the list (b)Explain the method of Huffman Encoding. Apply Huffman encoding method for the sentence "MAHARASHTRA". Give Hufliman code for each symbol. (10) 5. (a) Write a ‘C’ program to create Binary Search Tree. Show BST for the following Input: 10,5,14,22,1731,8 ~~ (10) (0)What is the use of hashing? Show hash table entries for the given dataset using Linear Probing and Quadratic Probing: 12,45,67,88,27,78,20,62,36,55 (10) 6, Write Short notes on (any two) (a) Threaded Binary Tree (b) Explain BPS algorithm with example (©) Doubly Linked list. (20) 11297£:767DF520ADB9ICEFSSOR6CIOSA$Comp CBsas @ Ps, 7 QP COD: (3 Hours) Ds NB: (1) Question No.1 is Compulsory, (2) Attempt any three questions of th: G) Figures to the right indicate full mare ee Aeations: (4) Make suitable assumptions wherever necessary wi proper justification. Marks : 80 1. (a) Define data structure ? Give its classification, (b) What are the advantages of using dynam bites ci lynamié memory alloCation over staticmemory $ (©) Describe Multiway Search Tree with.an example. > (d) Write a function in C to implement Shell Sort, 5 2. (a) Discuss file /O operations in © programiining language. é 8 (©) Write C program to perforin polysiomial addition using Linked List. 12 3. (a) Whatare different type [ew can-we use the quene data structure for 10 simulation. Ss f () Wie ni eee 8s one expression. 10 gay eC ite anode from a Binary Search Tree. The program 10 im to implement the BFS traversal of a graph. 10 Raa cman ina table of size 11. Use any two collision resolution 10 2FEE6430A72SD77A0463A14AS3E1C9F7SE ——ee \Z a fe SGS)— 08 @ “To paper /Subject Code: 49303 /DATA. STRUCT cosas Duration: 3 hrs Total Marks: 80 {1) question No. 1s Compulsory {p)attempt ay three questions of the remaining five questions {3) Figures to the right indicate full marks goss: (a) Make suitable assumptions wherever necessary with proper. justifications. NB (a) What isa data structure? Explain with examples {b)What are the advantages of using dynamic mem: allocation? {c) Describe Mulivay Search Tree with an exa (4) Write a function in C to implement Shell 2, (a) Discuss file I/O operations in C prograri (bJExplain sparse matrix as application of I ie Huffman code for each (08) Kk ith an example, (08) ide from'a Binary Search Tree. The program should (12)paper /S uration: 3 Hours : e APcedessng OK (2) Question No.2 's Computs Fotal Aeron any three omtony "3 Maa 20 {G) Figures to the right indie, NB iOns of the rey ate full marke NE FYE Questions 'Ons wherever nece: re various operations possible on da FY With proper justifications (ay what aia ta struc oywrat are different ways of representing a Gar tetas? tere Tis wih an example fata structure ona computer =) junction in C to implem ter fos i) Write a function plement binary ) ( ry search, ms ack data structure to check (05) 2. (ajuse stad well-formedne: (or ession. wete C rogram for the same, *iness of parenthesesin an algebraic [njgiven the frequency forthe following symbols, compute th (10) symbol. 'e Huffman code for each ‘Symbol Ta Tere (10) Frequency | 24 [a2 ao laT es f) Write aC program to implement priority queve usin i. Inserting in a priority queue @ i Deletion from a queue i Displaying contents of the queue (uy what are expression trees? What are ts advantages? Derive the expression tre forthe following algebraic expression: (a (b/c)) * ((d/e)-A (08) 4. (a) Write a C program to represent and add two polynomials using linked ist. (2) {b) How does the Quicksort technique work? Give C function for the same. (08) for the same. (05) 5. (a) Whatis a doubly linked lst? Give C representation f (b) Given the postorder and inorder traversal of a binary tree, construct the original tree: Postorder: DEFBGLIKHCA (10) inorder: DBFEAGCLIHK {cl what is hashing? What properties should a good hash function demonstrate? (05) 6 (a}Given an arcay int al] ={69, 78, 63, 98, 67,75, 66.90, 81). Calculate address of al5) f base address is 1600. (02) han of a graph. Explain the code wit (20) (0) Give C function for Breadth First Search Traversal example 1 ingly linked li ram should be able to {c) Write a C program to implement 2 sing! nked list. The program sho ai perform the following operations the end of the list {ij insert a node at yent {ii Deleting a particular elem (ii) Display the linked lst page rofl6 6) Sm ~ 4) Time: 3 Hours Marks: 80 NB: (1) Que (2) Attemp?s jucstions of the remaining fiv 7 Griguestothe nght indicate fullmatks (4) Make suitable assumptions wherever necessary with proper justifications Q.1 (a) Explain Linear and Non-Linear data structures. Oy (b) Explain Priority Queue with example ) {c) Write a program in °C” to implement Quick sort (10 Q2 (a) Write « program to implement Circular Linked List, Provide the following 5 operations: (40) ? (i) Insert anode - (ii) Delete a node (iv) Display the list (b) Explain Threaded Binary tree in detail Y (10) Q3 (a) Explain Huffinan Encoding with suitable example (10) (by Write a program in °C” to check for balanced parenthesis in an expression using stack (10) QA (a) Write @ program in °C" to implement Queue using array (10) {b) Explain different eases for deletion of @ node in binary search we. Write function for each case (10) 5 (a) Write a program in “C* to implement Stack using Linked-List .Perform the following operations: (10) Gi) Push (ii) Pop ’ (iii) Peek (ii) Display the stack contents (b) Explain Depth First search (DFS) T function for DFS aversal with an example, Write the recursive (10) Q.6. Write Short notes on (any two) 20) (a) Application of Linked-List (b) Collision Handling techniques (c) Expression Tree (d) Topological Sorting Polynomial addition 69390 gsassAADIZBCDONBB26DESSCDSBHOGE—_ C Mest -. ay eMAULD steals “ ™ ovation 8 Ww ‘ 1 question No.1 Compataoy S18 oe" ui Gta ay three gets srhe WON eee {)) Figures t0 tho FighC indioate 8 flve questio 1 (a) Define Dat Stretwe: itFrentite Hear and ine a {)_Weiton € feo implement sertion sort Vinge ata structures with example,» -¢8) {What aro different ways to represent SOHNE graphs in meni 49 (a) What is expression too? Derive m expreniay eet eine ‘ “6 iv horoynero & (0) Whats Mashing? Hash the followin atte : ; ings lata ble o in ry quadratie probing, Also find the numberof Sn AE OUR ERS SN 63, 82, 94, 77, 53, 87, 28'$5,cHVA4! od OS Sos (b) Write a recursive funotion to perforin SOON Oar ae Se rforin pre-ofder traversal Othe bindery Ue (©) Given an array int al] = (23,55,63,89,45,67,85,99), carat ot 5} ita a address is $100, kemcoCesLifinie: C2) 4 (a) Write a € program to convert ink expressionto posts expreston. (40) (10) (b) Demonstrate step by step lnseeion oft following eemeatsinan AVY ee, 63, 9, 19,18,108,99,8 1,45 ¥ firing flowing functions (12) 4 (a) Write a € prog 16 inypenien eowlat Jnke Fish slngert w nod ja he boii. ‘ ae UR a ® Wainga padre Co implement Dodbe Ended Queue (12) ra binary tree, construct the original ree: (8) r SDERBGLIKUCA lot 'pBrer LINK Ni sin alate eStore ny 0) Er Aree jon anc adiion asing linked Hist sanangasDy?SDCIIBIAT2STESSECA
You might also like
Ds_pyq
PDF
No ratings yet
Ds_pyq
14 pages
SY BCA Data Structure Ques.Bank.
PDF
No ratings yet
SY BCA Data Structure Ques.Bank.
5 pages
CS 8391 - Data Structures
PDF
No ratings yet
CS 8391 - Data Structures
4 pages
301 Past Questions
PDF
No ratings yet
301 Past Questions
24 pages
Data Structure KCS 301
PDF
No ratings yet
Data Structure KCS 301
2 pages
Data structure pyqs
PDF
No ratings yet
Data structure pyqs
14 pages
Cs Papers
PDF
100% (1)
Cs Papers
19 pages
Reg 2017
PDF
No ratings yet
Reg 2017
13 pages
DS university Question Papers
PDF
No ratings yet
DS university Question Papers
12 pages
Data Structure MCA1 Sem
PDF
No ratings yet
Data Structure MCA1 Sem
5 pages
DS Important questions
PDF
No ratings yet
DS Important questions
3 pages
dsa-old-question-collection
PDF
No ratings yet
dsa-old-question-collection
31 pages
Cdsns
PDF
No ratings yet
Cdsns
34 pages
Btech Cs 3 Sem Data Structure Kcs 301 2023
PDF
No ratings yet
Btech Cs 3 Sem Data Structure Kcs 301 2023
2 pages
BCS304solvedQnp
PDF
No ratings yet
BCS304solvedQnp
37 pages
Datastructure (1)
PDF
No ratings yet
Datastructure (1)
12 pages
DS 20-21
PDF
No ratings yet
DS 20-21
2 pages
Screenshot 2025-02-28 at 3.04.26 AM
PDF
No ratings yet
Screenshot 2025-02-28 at 3.04.26 AM
2 pages
Data Structure Using 'C' 3 Hours 100: Third Semester Examination, 2016-17
PDF
No ratings yet
Data Structure Using 'C' 3 Hours 100: Third Semester Examination, 2016-17
2 pages
Data Structures July 2019 (2015 Scheme)
PDF
No ratings yet
Data Structures July 2019 (2015 Scheme)
2 pages
Bca 302
PDF
No ratings yet
Bca 302
11 pages
18cs32 3rd Semester Cs_dec.2019-Jan.2020
PDF
No ratings yet
18cs32 3rd Semester Cs_dec.2019-Jan.2020
3 pages
Data Structure 4th semECE,ETC, AERO,AME, AUTO, MECH, MANUTECH, MINERAL, MME,METTA,M413
PDF
No ratings yet
Data Structure 4th semECE,ETC, AERO,AME, AUTO, MECH, MANUTECH, MINERAL, MME,METTA,M413
4 pages
Data Structure -PYQ - 2023 DEC -2017 MAY Comps Sem III - Aeraxia.in
PDF
No ratings yet
Data Structure -PYQ - 2023 DEC -2017 MAY Comps Sem III - Aeraxia.in
9 pages
MCA 102 End Term 2024-2026
PDF
No ratings yet
MCA 102 End Term 2024-2026
2 pages
Dsa Model Paper Solutionss
PDF
No ratings yet
Dsa Model Paper Solutionss
41 pages
DATA STRUCTURE KCS 301 Aktutor
PDF
No ratings yet
DATA STRUCTURE KCS 301 Aktutor
10 pages
Data Structures ( 5 Years PYQ)
PDF
No ratings yet
Data Structures ( 5 Years PYQ)
12 pages
ECE 211 Data Structure Using C B.tech II Yr III SEM ECE Chetan Agarwal END Term Exam Ques Pap Set 1
PDF
No ratings yet
ECE 211 Data Structure Using C B.tech II Yr III SEM ECE Chetan Agarwal END Term Exam Ques Pap Set 1
2 pages
DSA PYQ
PDF
No ratings yet
DSA PYQ
15 pages
DS Question Papers (2009 To 2023)
PDF
No ratings yet
DS Question Papers (2009 To 2023)
63 pages
B.C.A ( SCIENCE ) Oct 2022-23-25
PDF
No ratings yet
B.C.A ( SCIENCE ) Oct 2022-23-25
3 pages
Data Structure
PDF
No ratings yet
Data Structure
12 pages
HANDTAILORED
PDF
No ratings yet
HANDTAILORED
9 pages
BCA (Data Structure in C) 2021
PDF
No ratings yet
BCA (Data Structure in C) 2021
2 pages
BCA DS Assignment
PDF
No ratings yet
BCA DS Assignment
4 pages
@vtucode - Com Previous Year Paper 2 2018 Scheme
PDF
No ratings yet
@vtucode - Com Previous Year Paper 2 2018 Scheme
2 pages
DS_Model Question paper
PDF
No ratings yet
DS_Model Question paper
8 pages
CS2201 Data Structure Tutorial
PDF
No ratings yet
CS2201 Data Structure Tutorial
6 pages
Data Structure_4th_2023-2024
PDF
No ratings yet
Data Structure_4th_2023-2024
3 pages
Data Structure Solved Q Paper From 2017 To 2019
PDF
No ratings yet
Data Structure Solved Q Paper From 2017 To 2019
180 pages
DSA2
PDF
No ratings yet
DSA2
2 pages
Data Structure Previous Year Paper - B.C.A Study
PDF
No ratings yet
Data Structure Previous Year Paper - B.C.A Study
4 pages
Ds
PDF
No ratings yet
Ds
8 pages
DS Previous Year Question Papers
PDF
No ratings yet
DS Previous Year Question Papers
6 pages
Data Structures KCS 301 1 2021
PDF
No ratings yet
Data Structures KCS 301 1 2021
2 pages
btech-ee-3-sem-data-structure-and-algorithms-2012
PDF
No ratings yet
btech-ee-3-sem-data-structure-and-algorithms-2012
7 pages
Complete Question Bank DS 2022-23
PDF
No ratings yet
Complete Question Bank DS 2022-23
3 pages
DS
PDF
No ratings yet
DS
4 pages
Data Structure Most Important Question All Unit (1)
PDF
No ratings yet
Data Structure Most Important Question All Unit (1)
7 pages
PYQ_Paper_1_{Data_Structures_using_C++_2022}[1]
PDF
No ratings yet
PYQ_Paper_1_{Data_Structures_using_C++_2022}[1]
24 pages
Bca 06
PDF
No ratings yet
Bca 06
5 pages
Question-Regular-Cs205 Data Structures (CS, It), December 2017
PDF
No ratings yet
Question-Regular-Cs205 Data Structures (CS, It), December 2017
2 pages
DS IMP Questions Module Wise
PDF
100% (3)
DS IMP Questions Module Wise
7 pages
DS 2k23 Btech-Cs-3-Sem-Data-Structure-Kcs-301-2023
PDF
No ratings yet
DS 2k23 Btech-Cs-3-Sem-Data-Structure-Kcs-301-2023
2 pages
DS Theory Assignment 2024 25
PDF
No ratings yet
DS Theory Assignment 2024 25
10 pages
ds-assignmentprof-jahnavi-vithalpura-prof-madhuri-patel-fPnPcW
PDF
No ratings yet
ds-assignmentprof-jahnavi-vithalpura-prof-madhuri-patel-fPnPcW
7 pages
10 Data Structure – Sep 2020 (CBCS – F + R 2014-15 and Onwards)
PDF
No ratings yet
10 Data Structure – Sep 2020 (CBCS – F + R 2014-15 and Onwards)
2 pages