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)
126 views
2 pages
21CSC201J
Uploaded by
td4520
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 21CSC201J For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
126 views
2 pages
21CSC201J
Uploaded by
td4520
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 21CSC201J For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save 21CSC201J For Later
You are on page 1
/ 2
Search
Fullscreen
23.4 Wirite an algorithm to convert an infix expression to postfix expression 8 4 > ‘Trace the algorithm to convert the infix expression a+b + cidtelf to @ postfix expression. (oR) ’. Give algorithms for push and pop operations on stack using a linked list © 7 9? ‘with suitable pictorial representations. 24, Write appropriate algorithm for inserting and deleting a node in a binary * search toe. (oR) bi. Create a Bete of order ~ 5 forthe following data arriving in sequence 90, 4 4 #2 27, 7,9, 18,21, 3,4, 16, 1,21, 72 fi, Compare BST with AVL toe. fehee 25.2, Consider the graph given below show its adjacency list and adjacency * #2 matrix in the memory. A——>B I> cp (or) >, IMhustrate Kruskal’s algorithm to find the minimum spanning tee of a * * # raph, PART-€ (1 x15 = 15 Marks) sas mt co 10 ‘Answer ANY ONE Questions 26. Consider a hash table with 9 slols. The hash function is) = k mod 9. ‘The following keys are inserted in order 5, 28, 19, 15, 20, 33, 12,17, 10 Draw the contents of the hash table when the collisions are solved by i. Chaining ii, Linear probing iii, Double hashing, The second hash function (x)= 7 (2267). 27. Apply an appropriate algorithm to find the shortest path from “A” to every ‘other node of A. For the given graph, Note: 0 @ ‘Time: 3 Hours | Reg, No. B.Tech, DEGREE EXAMINATION, MAY 2023, “Third Semester 2ICSC2011- DATA STRUCTURES AND ALGORITHMS (or the candidates admitted from the academie year 2022-2025 onwards) Part A shouldbe answered in OMR sheet withia fist 40 minutes and OMR sheet shouldbe handed over hal invigilator athe end of 40° minute Part= Band Part-C should be answered in answer booklet PART A 20 x1=20Marks) ‘Answer ALL Questions How do you instantiate an array in C? (B) int Arr{ 3]; (D) int An() = New int [3]; ements in an array are accessed (A), Randomly (©) Exponentially (B) Sequentially (D) Logarithmically Which of the following data structure is non linear type? (A) Strings ®) Lists (©) Stacks (D) Hierarchical ‘What willbe the output of the following code? struct student struct student *S ; { SC = “HELLO" CHAR; | print*94S", SC); B } ‘void main() | { (A) Hello (©) Runtime exror (B) Segmentation fault (D) Nothing, Linked list data stricture offers considerable saving in (A), Computational ime (B) Space utilization (©) Space utilization and (D) Speed utilization computational time Which of the following is false about a doubly linked list?” : (A) We can navigate in both the (B) It requires more space than a directions singly linked list (©) The insertion and deletion of @ (D) Implementing a doubly linked node take a bit longer ime Tit iy easier Ua singly Hnked list12, 1. 14 1. . Which ofthe following is false about a circular linked list? (A) Bvery node has successor (B) Time complexity of inserting a new node at the head ofthe list is OM) (©) The complexity for deleting (D) We can traverse the whole the last node is O(0). circular linked list, starting ‘rom any point ‘Which ofthese is not an application of a linked list? (A) Toimplement filesystem (B) For separate chaining in hash- tables (©) Toimplement non-binary trees (D) Random access of elements ‘The data structure required to check whether an expression contains balanced parenthesis is (A) Stack (B) Queue (©) Amy (D) Tree ‘The prefix form of A-B / (C*DAE) is? () “PAACBDE (B) -ABCD* ADE (© -ABCADE (D) -A/BC*ADE A quetie follows (A) FIFO (Fit ia First Ou) (B) LIFO (Last in First Out) principle prineipte (©) Ordered array (©) Linear tee ‘A normal queue, if implemented using an array of size max-size gets full ‘when? (A) Rear= Max~size~1 (©) Front= Rear +1 (B) Front= (wear-+1) mod max size () Rear= Front A Linear list of elements in which deletion ean be done from one end (front) ‘nd insertion can take place only atthe other end (rear) is known as, (A) Queue (B) Stack © Tre (D) Tinked lst ‘What is a full binary tree? (A) Fach node hus exactly zero or (B) Each node has exactly two two children children (©) Ail the leaves are at the same (D) Each node has exactly one oF level ‘wo children For the binary toe, find the pre order traversal sequence GQ © 2 ©® © @®@® O® rvsacseans 16. 19. 20, dha, 2a, eet (A) HIDEGFIKGCA (© ABDHIECFGIK (@®) HDIBEAFCIGK (©) ABCDEFGHIJK ‘What is direct addressing? (A) Distinet array position for (B) Fewer array positions than keys every possible (©) Fewer keys than array (D) Same array positions for all positions keys ‘What data organization method is sed in Hash tables? (A) Stack (B) Amy (©) Linked tist () Queue ‘What would be the number of zeros in the adjacency matrix of the given raph? ® 10 B) 6 © 16 0 ‘The traveling salesman problem can be solved using (A) A spanning tree (C) Bellman —Ford algorithin (B) A minimum spanning tee () DFS taversal DUKSTRA’s algorithm is used to solve___problem (A): Allpaic shortest path (B) Single source shortest path (©) Network flow (D) Sorting PART —B (Sx8 = 40 Marks) ‘Answer ALL Questions Define a function to multiply two m x 1 matrices and return the resultant matrix. (oR) How mathematical notations are used to measure the complexity of the algorithm? Explain diferent notations used, Write an algorithm to demonstrate @ polynomial equation using linked list {or subtraction of two polynomials equations. (oR) Consider an array A[1:n] Given 8 positon, write an algorithm to inser an clement in the array. Ifthe position is empty, the element is inserted easly 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).
You might also like
DSA Question Bank
PDF
No ratings yet
DSA Question Bank
5 pages
Dsa Old Question Collection
PDF
No ratings yet
Dsa Old Question Collection
31 pages
ADSP
PDF
No ratings yet
ADSP
187 pages
DS CCEE Practice with-ANS
PDF
100% (1)
DS CCEE Practice with-ANS
7 pages
18 CSC201 Ja
PDF
No ratings yet
18 CSC201 Ja
2 pages
Unit 4 App
PDF
No ratings yet
Unit 4 App
39 pages
$R0CIPZJ
PDF
No ratings yet
$R0CIPZJ
8 pages
Data Structure Question Bank
PDF
No ratings yet
Data Structure Question Bank
10 pages
Typical Questions & Answers
PDF
No ratings yet
Typical Questions & Answers
187 pages
2024 Data Structures
PDF
No ratings yet
2024 Data Structures
5 pages
Data Structure
PDF
No ratings yet
Data Structure
39 pages
S Y - B SC - III - Data-Structure-I
PDF
No ratings yet
S Y - B SC - III - Data-Structure-I
18 pages
Data Structure
PDF
No ratings yet
Data Structure
39 pages
15CS201J 4 Sem
PDF
No ratings yet
15CS201J 4 Sem
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
Question Paper Summer 2023
PDF
No ratings yet
Question Paper Summer 2023
4 pages
Sengunthar Arts and Science College
PDF
No ratings yet
Sengunthar Arts and Science College
2 pages
DSA Question Bank
PDF
No ratings yet
DSA Question Bank
6 pages
Fundamentals of Data Structures - MCQ - I
PDF
100% (1)
Fundamentals of Data Structures - MCQ - I
26 pages
Data Struct Final
PDF
100% (1)
Data Struct Final
21 pages
Ds Objective
PDF
100% (1)
Ds Objective
307 pages
CS133 Final Exam
PDF
No ratings yet
CS133 Final Exam
14 pages
Data Structure.1-15
PDF
No ratings yet
Data Structure.1-15
15 pages
Data Strucuture Mcqs
PDF
No ratings yet
Data Strucuture Mcqs
8 pages
DSA Presentstio
PDF
No ratings yet
DSA Presentstio
65 pages
Arrays
PDF
No ratings yet
Arrays
6 pages
C ++
PDF
No ratings yet
C ++
187 pages
DSA Me Only
PDF
No ratings yet
DSA Me Only
21 pages
DS
PDF
No ratings yet
DS
187 pages
Ds Pyq
PDF
No ratings yet
Ds Pyq
14 pages
Data Structure and Algorithm MCQ: A) B) C) D)
PDF
No ratings yet
Data Structure and Algorithm MCQ: A) B) C) D)
12 pages
BCA-II - CN121 Introduction To Data Structures - Theory Tutorial
PDF
No ratings yet
BCA-II - CN121 Introduction To Data Structures - Theory Tutorial
6 pages
BCA-2Sem Data Structure
PDF
No ratings yet
BCA-2Sem Data Structure
30 pages
USM's Shriram Mantri Vidyanidhi Info Tech Academy: Algorithm & Data Structure Question Bank
PDF
No ratings yet
USM's Shriram Mantri Vidyanidhi Info Tech Academy: Algorithm & Data Structure Question Bank
38 pages
667 Question Paper
PDF
No ratings yet
667 Question Paper
2 pages
K-Map Problems
PDF
No ratings yet
K-Map Problems
5 pages
Comp 314 - 2017
PDF
No ratings yet
Comp 314 - 2017
4 pages
Data Structures and Algorithm Analysis 1005
PDF
100% (1)
Data Structures and Algorithm Analysis 1005
22 pages
3rd Sem CSIT-1 Data Structure Using C (MCQ)
PDF
No ratings yet
3rd Sem CSIT-1 Data Structure Using C (MCQ)
3 pages
DS MCQ
PDF
No ratings yet
DS MCQ
9 pages
SY BCA Data Structure Ques - Bank.
PDF
No ratings yet
SY BCA Data Structure Ques - Bank.
5 pages
Catalan Number
PDF
No ratings yet
Catalan Number
8 pages
CS301 Grand Quiz Preparation
PDF
No ratings yet
CS301 Grand Quiz Preparation
12 pages
Answer:c: Loop Loo P
PDF
No ratings yet
Answer:c: Loop Loo P
37 pages
DS Utech Final May2022
PDF
No ratings yet
DS Utech Final May2022
7 pages
Ugc Net Model Paper
PDF
No ratings yet
Ugc Net Model Paper
12 pages
21MABB101T - Calculus AND Linear Algebra JULY'24 - Note (I) (Ii) 1. Time 3 Hours 3. 4. 5. Page 1 - Studocu 2
PDF
No ratings yet
21MABB101T - Calculus AND Linear Algebra JULY'24 - Note (I) (Ii) 1. Time 3 Hours 3. 4. 5. Page 1 - Studocu 2
1 page
CT 1 - Set D
PDF
No ratings yet
CT 1 - Set D
1 page
Data Structure MCQ Question
PDF
0% (1)
Data Structure MCQ Question
6 pages
Data Structure
PDF
No ratings yet
Data Structure
6 pages
CS2201 Data Structure Tutorial
PDF
No ratings yet
CS2201 Data Structure Tutorial
6 pages
Unit Iii Linear Data Structures: Syllabus
PDF
No ratings yet
Unit Iii Linear Data Structures: Syllabus
19 pages