SlideShare una empresa de Scribd logo
1 de 11
PUNJAB COLLEGE OF TECHNICAL EDUCATION
                             LUDHIANA


Teacher Name: Sandeepjit Kaur (SJ)                                     Class Name: MCA

Subject Name: Data Structure                                              Max Marks:60
Subject Code: MCA-302 (N2)                                       Total Lects Required: 50
No. of Tests: 5                                                    No. of Assignments: 4

Instruction for candidates
1. Candidates are required to attempt one question each from sections A, B, C and D of
the question paper and the entire section E
2. Use of non-programmable scientific calculator is allowed

Section A
Basic concepts and notations, data structures and data structure operations, mathematical
notation and functions, algorithmic complexity and time space trade off. Basic data
structures such as arrays, stack and queues and their applications, linked and sequential
representation. Linked list, representation of linked list, multi linked structures.
Section B
Trees-definitions and basic concepts, linked tree representation, representations in
contiguous storage, binary trees, binary tree traversal, searching insertion and deletion in
binary trees, heap tree and heap sort algorithm, AVL trees.
Section C
Graphs and their application, sequential and linked representation of graph – adjacency
matrix, operations on graph, traversing a graph, Dijkstra’s algorithm for shortest distance,
DFS and BFS, Hashing.
Section D
Searching and sorting use of various data structures for searching and sorting, Linear and
Binary search, Insertion sort, Selection sort, Merge sort, Radix sort, Bubble sort, Quick
sort, Heap Sort.

Note: -
1. Programs are to be implemented in ‘C/C++’
2. Insertion, deletion, search and traversal operations are to be performed on all the data
structures.

References:
1. A. Tannenbaum, Y. Lanhgsam and A.J.Augenstein,”Data Structures Using C”,
Prentice Hallof India, 1990
2. Seymour Lipschultz, “ Theory and Practice of Data structures”, Mc Graw Hill, 1988.
3. E. Horowitz and S.Sahni,”Data structures with Pascal”, Galgotia, 3rd edition,
COURSE BREAKUP


Propose   Lect.                     Topics                    Actual   Assign   Test
d Week    No.                                                 DOD
            1.    Introduction to Data Structure:
                     •   Basic concepts of data
                     •   Problem analysis

            2.    Data Structure
                     •   Types of data structures
                     • Data operations
            3.    Data Structure ( Continue…)
                     •   Need of data structure
                     • Mathematical notations and functions
            4.    Algorithm Complexity
                     •   Big O notation
                     •   Time space trade off


            5.    Introduction to Arrays
                     •   Memory representation of One
                         Dimensional array
                     •   Location of an element at in one
                         dimensional array

            6.    Introduction to Arrays
                     •   Memory representation of two
                         Dimensional array
                     •   Location of an element at in two
                         dimensional array
7.                  TUTORIAL
8.                                                   TEST 1
9.    Operations on array (Continue…)
             Traversing of an array
             Insertion of an element in an array
              o in the beginning
              o at Kth location
      o at the end
10. Operations on array (Continue…)
             Deletion of an element from an array
                  o from the beginning
                  o from Kth location
                  o from the end
             Merging of two arrays

11.           TUTORIAL
12.                                                  TEST 2
13. Stacks & Queues:
              •    Basics of stacks
              •    Operations on stack
                          PUSH operation
                          POP operation


14. Applications of Stack
          •       Expression evaluation

15. Applications of Stack (Continue…)
          •       Polish notation
          •       Recursion


16.   REVISION OF STACK WITH
      EXAMPLES
17.                                        TEST 3
18. Introduction of Queues
         •   Operations on Queues
                  o Insertion
                  o Deletion
19. Queues:
         o Circular Queues
       o Priority Queues
20. Linked Lists:
         •   Singular List
         •   Circular List
21.          REVISION OF QUEUES WITH EXAMPLES
22. Operations Performed on link list:
      Insertion
         o In the beginning
       o At kth location
23. Insertion in Link list (Continue…)
         o After a given no
         o At the end
24.
         FIRST HALF SYLLABUS TEST
25. Deletion in Link list
         o from the beginning
       o from kth location
26. Deletion in Link List
         o from the end
      o Searching in link list
27. More in Link List:
         o Doubly Linked List
      o Dynamic storage management
28. More in Link List:
         o Generalized list
o Garbage collection


29.   TUTORIAL
30.                                                 TEST 4
31. Trees:
       •       Definition & Concept, Basic Tree
       •       Binary Tree representation


32. Trees (Continue….)
           •    Threaded Storage representation
           •    Binary tree traversals
                   o Inorder
                   o Preorder
             o Postorder
33. Trees (Continue….)
      Searching in binary tree

34. Insertion and deletion in binary tree
35. Heap tree and heap sort

36. AVL tree
37. Graphs: introduction, sequential and linked
    representation of graphs
38. Adjacency matrix, operations on graph,
    traversing a graph
39. Dijkstra’s algorithm for shortest distance
40. DFS and BFS, Hashing.
41. Searching and Sorting:
           •    Use of various data structure for
                searching & sorting
           •    Linear & Binary Search


42. Searching and Sorting (Continue…)
           •    Insertion Sort
•   Selection Sort
43. Searching and Sorting (Continue…)
       •   Merge Sort
44.                                      TEST 5
45. Searching and Sorting (Continue…)
       •   Radix Sort


46. Searching and Sorting (Continue…)
       • Bubble Sort
47. Searching and Sorting (Continue….)
       •   Quick Sort


48. Searching and Sorting (Continue….)
       •   Heap Sort


49.
      TUTORIAL
50.
      FULL SYLLABUS TEST
ASSIGNMENT 1


Ques 1: Consider the linear Array NAME, which is stored alphabetically.
   a) Suppose Daljit is to be inserted into the linear array. How many names must be
       moved to new locations?
   b) Suppose Gagan is to be deleted from the array. How many names must be moved
       to new locations?
Ques 2: Consider the algebraic expression ( 7x + 5y ) (2a – 5b )3. Draw the corresponding
diagram for it.
Ques 3: The tree structure is given by means of level numbers. Draw the corresponding
tree diagram.
            01 Student      02 Name               03 First name
                            02Class               03Middle name
                            02Rollno              03 Last name
                            02Father’sName        03Father’s First name
                            02Age                 03 Father’s first name
                            02Address             03 father’s middle name
                            02 Contactno          03father’s last name
                                                  03 HouseNo
                                                  03 StrretNo
                                                  03 City
                                                  03 State
                                                  03 Pincode
ASSIGNMENT 2


Short Questions:
  1. What is threaded Binary Tree?
  2. How the height of a binary search tree effects its performance?
  3. What is the different between B-Tree, B + - Tree, B * Tree
  4. How heap differs from binary tree?


Long Questions:
  1. For a binary Tree the in-order & post-order traversal sequences are as follows:
             In order: D C K E A H B Q J I
             Post order: D K E C H Q J I B A
     Draw Binary Tree.
  2. Write a search () function so that it not only returns the location of the element but
     also return location of its parents in a binary search tree.
  3. What is a thread? How it is useful? What are advantages of threading a binary
     tree?
ASSIGNMENT 3


SHORT QUESTIONS

 1. What is a Complete Binary Tree? Explain its related terminology.
 2. What is the node structure of a tree (Binary)?
 3. What is Tree Traversal?




LONG QUESTIONS


 1. What do you mean by Binary Search Tree? Explain how deletion of a node is
    performed in the Binary Search Tree.
 2. Describe the Binary Tree Traversing methods with the help of proper examples.
 3. Traverse the following tree in inorder, preorder and postorder. Write the
    algorithm also.



                                              A


                                 B                         C


                                                                       G
                         D              E            F


                                                                H
Practical Software Lab – III


    BC-207(N2)                                              Max Marks 100
Internal Assessment 40
External Assessment 60



Note: Program should be fully documented with sample I/O data Flow
charts should be developed wherever necessary.




Write program in C


1. To insert and delete a node in a linked list
2. To add two polynomials using linked list
3. To insert and delete a node in a circular linked list.
4. To implement a stack using arrays and linked list.
5. To implement a queue using arrays and linked list.
6. To invert a linked list.
7. To merge two arrays.
8. To solve polish expression using stacks.
9. For tower of hanoi problem using recursion.
10 .To insert and delete node in binary search tree
11. To find traversals of expressions using binary tree
12. To search an element using binary tree.
Presentation Topics


1. Need Of Data Structure
2. Types of data structures
3. Operations performed on data structure
4. What is structure? Difference b/w structure and union.
5. What is self referential structure?
6. What is pointer & operations performed on pointer
7. What is an array? Types of array?
8. Operations of an array.
9. Complexity of an algorithm?
10.Hotel Taj Attack (reasons)
11.Future of IT
12. WiFi
13.Advantages and Disadvantages of Internet
14. Stack and its operations
15.Applications of stack
16.Queues and its operations
17.Applications of Queues
18.Types of queues
19. Reliance telecom
20. DELL
21. RGTP (Rajiv Ghandhi Technology Park, Mohali)
22. Online Education

Más contenido relacionado

La actualidad más candente

D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...guest3f9c6b
 
05210401 P R O B A B I L I T Y T H E O R Y A N D S T O C H A S T I C P R...
05210401  P R O B A B I L I T Y  T H E O R Y  A N D  S T O C H A S T I C  P R...05210401  P R O B A B I L I T Y  T H E O R Y  A N D  S T O C H A S T I C  P R...
05210401 P R O B A B I L I T Y T H E O R Y A N D S T O C H A S T I C P R...guestd436758
 
Object - Oriented Programming: Inheritance
Object - Oriented Programming: InheritanceObject - Oriented Programming: Inheritance
Object - Oriented Programming: InheritanceAndy Juan Sarango Veliz
 
Data Structures Aptitude
Data Structures AptitudeData Structures Aptitude
Data Structures AptitudeSriram Raj
 
Lesson 26: Evaluating Definite Integrals
Lesson 26: Evaluating Definite IntegralsLesson 26: Evaluating Definite Integrals
Lesson 26: Evaluating Definite IntegralsMatthew Leingang
 
11.numerical solution of fuzzy hybrid differential equation by third order ru...
11.numerical solution of fuzzy hybrid differential equation by third order ru...11.numerical solution of fuzzy hybrid differential equation by third order ru...
11.numerical solution of fuzzy hybrid differential equation by third order ru...Alexander Decker
 
Numerical solution of fuzzy hybrid differential equation by third order runge...
Numerical solution of fuzzy hybrid differential equation by third order runge...Numerical solution of fuzzy hybrid differential equation by third order runge...
Numerical solution of fuzzy hybrid differential equation by third order runge...Alexander Decker
 
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...Alexander Decker
 
Ds qb 2021 rma
Ds qb 2021 rmaDs qb 2021 rma
Ds qb 2021 rmaARAVINDRM2
 
17. Trees and Tree Like Structures
17. Trees and Tree Like Structures17. Trees and Tree Like Structures
17. Trees and Tree Like StructuresIntro C# Book
 

La actualidad más candente (14)

D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...
 
E2
E2E2
E2
 
It iii
It iiiIt iii
It iii
 
05210401 P R O B A B I L I T Y T H E O R Y A N D S T O C H A S T I C P R...
05210401  P R O B A B I L I T Y  T H E O R Y  A N D  S T O C H A S T I C  P R...05210401  P R O B A B I L I T Y  T H E O R Y  A N D  S T O C H A S T I C  P R...
05210401 P R O B A B I L I T Y T H E O R Y A N D S T O C H A S T I C P R...
 
Object - Oriented Programming: Inheritance
Object - Oriented Programming: InheritanceObject - Oriented Programming: Inheritance
Object - Oriented Programming: Inheritance
 
Data Structures Aptitude
Data Structures AptitudeData Structures Aptitude
Data Structures Aptitude
 
Lesson 26: Evaluating Definite Integrals
Lesson 26: Evaluating Definite IntegralsLesson 26: Evaluating Definite Integrals
Lesson 26: Evaluating Definite Integrals
 
BINARY SEARCH TREE
BINARY SEARCH TREEBINARY SEARCH TREE
BINARY SEARCH TREE
 
11.numerical solution of fuzzy hybrid differential equation by third order ru...
11.numerical solution of fuzzy hybrid differential equation by third order ru...11.numerical solution of fuzzy hybrid differential equation by third order ru...
11.numerical solution of fuzzy hybrid differential equation by third order ru...
 
Numerical solution of fuzzy hybrid differential equation by third order runge...
Numerical solution of fuzzy hybrid differential equation by third order runge...Numerical solution of fuzzy hybrid differential equation by third order runge...
Numerical solution of fuzzy hybrid differential equation by third order runge...
 
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
 
Ds qb 2021 rma
Ds qb 2021 rmaDs qb 2021 rma
Ds qb 2021 rma
 
L 19 ct1120
L 19 ct1120L 19 ct1120
L 19 ct1120
 
17. Trees and Tree Like Structures
17. Trees and Tree Like Structures17. Trees and Tree Like Structures
17. Trees and Tree Like Structures
 

Destacado

Mūžu mūžos ..... md
Mūžu mūžos ..... mdMūžu mūžos ..... md
Mūžu mūžos ..... mdirlavasbibl1
 
Searching techniques
Searching techniquesSearching techniques
Searching techniquesPCTE
 
101marketingquotesjune2011
101marketingquotesjune2011101marketingquotesjune2011
101marketingquotesjune2011Narendra Singh
 
Mūžu mūžos ..... MD
Mūžu mūžos ..... MDMūžu mūžos ..... MD
Mūžu mūžos ..... MDirlavasbibl1
 
Using Mail Merge
Using Mail Merge Using Mail Merge
Using Mail Merge PCTE
 
Coursebreakup
CoursebreakupCoursebreakup
CoursebreakupPCTE
 
Power Point Tips
Power Point TipsPower Point Tips
Power Point TipsPCTE
 

Destacado (9)

Mūžu mūžos ..... md
Mūžu mūžos ..... mdMūžu mūžos ..... md
Mūžu mūžos ..... md
 
Searching techniques
Searching techniquesSearching techniques
Searching techniques
 
101marketingquotesjune2011
101marketingquotesjune2011101marketingquotesjune2011
101marketingquotesjune2011
 
Mūžu mūžos ..... MD
Mūžu mūžos ..... MDMūžu mūžos ..... MD
Mūžu mūžos ..... MD
 
Using Mail Merge
Using Mail Merge Using Mail Merge
Using Mail Merge
 
Coursebreakup
CoursebreakupCoursebreakup
Coursebreakup
 
OR IP PCTE
OR IP PCTEOR IP PCTE
OR IP PCTE
 
Power Point Tips
Power Point TipsPower Point Tips
Power Point Tips
 
System concepts
System conceptsSystem concepts
System concepts
 

Similar a Course module of DS

Data structure-questions
Data structure-questionsData structure-questions
Data structure-questionsShekhar Chander
 
SE-IT DSA THEORY SYLLABUS
SE-IT DSA THEORY SYLLABUSSE-IT DSA THEORY SYLLABUS
SE-IT DSA THEORY SYLLABUSnikshaikh786
 
Viva questions ds th c++
Viva questions ds th c++Viva questions ds th c++
Viva questions ds th c++mrecedu
 
Viva questions ds th c++
Viva questions ds th c++Viva questions ds th c++
Viva questions ds th c++mrecedu
 
SE-IT DSA LAB SYLLABUS
SE-IT DSA LAB SYLLABUSSE-IT DSA LAB SYLLABUS
SE-IT DSA LAB SYLLABUSnikshaikh786
 
for sbi so Ds c c++ unix rdbms sql cn os
for sbi so   Ds c c++ unix rdbms sql cn osfor sbi so   Ds c c++ unix rdbms sql cn os
for sbi so Ds c c++ unix rdbms sql cn osalisha230390
 
Coursebreakup
CoursebreakupCoursebreakup
CoursebreakupPCTE
 
Advanced Data Structures 2006
Advanced Data Structures 2006Advanced Data Structures 2006
Advanced Data Structures 2006Sanjay Goel
 
Data warehousing and data mining
Data warehousing and data miningData warehousing and data mining
Data warehousing and data miningvamsi krishna
 
Ds 111011055724-phpapp01
Ds 111011055724-phpapp01Ds 111011055724-phpapp01
Ds 111011055724-phpapp01Getachew Ganfur
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdfIT Eagers
 
Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Sateesh Allu
 
data structure of symbol table.pptx
data structure of symbol table.pptxdata structure of symbol table.pptx
data structure of symbol table.pptxPooraniBalamurugan3
 
Data Handling and Function
Data Handling and FunctionData Handling and Function
Data Handling and FunctionRatnaJava
 

Similar a Course module of DS (20)

Data structure-questions
Data structure-questionsData structure-questions
Data structure-questions
 
Data structure-question-bank
Data structure-question-bankData structure-question-bank
Data structure-question-bank
 
SE-IT DSA THEORY SYLLABUS
SE-IT DSA THEORY SYLLABUSSE-IT DSA THEORY SYLLABUS
SE-IT DSA THEORY SYLLABUS
 
12111 data structure
12111 data structure12111 data structure
12111 data structure
 
Viva questions ds th c++
Viva questions ds th c++Viva questions ds th c++
Viva questions ds th c++
 
Viva questions ds th c++
Viva questions ds th c++Viva questions ds th c++
Viva questions ds th c++
 
Data structures
Data structuresData structures
Data structures
 
SE-IT DSA LAB SYLLABUS
SE-IT DSA LAB SYLLABUSSE-IT DSA LAB SYLLABUS
SE-IT DSA LAB SYLLABUS
 
Data structure
Data structureData structure
Data structure
 
for sbi so Ds c c++ unix rdbms sql cn os
for sbi so   Ds c c++ unix rdbms sql cn osfor sbi so   Ds c c++ unix rdbms sql cn os
for sbi so Ds c c++ unix rdbms sql cn os
 
Binary tree
Binary treeBinary tree
Binary tree
 
Coursebreakup
CoursebreakupCoursebreakup
Coursebreakup
 
Advanced Data Structures 2006
Advanced Data Structures 2006Advanced Data Structures 2006
Advanced Data Structures 2006
 
Data warehousing and data mining
Data warehousing and data miningData warehousing and data mining
Data warehousing and data mining
 
Ds 111011055724-phpapp01
Ds 111011055724-phpapp01Ds 111011055724-phpapp01
Ds 111011055724-phpapp01
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdf
 
Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1
 
Unit3
Unit3Unit3
Unit3
 
data structure of symbol table.pptx
data structure of symbol table.pptxdata structure of symbol table.pptx
data structure of symbol table.pptx
 
Data Handling and Function
Data Handling and FunctionData Handling and Function
Data Handling and Function
 

Último

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Último (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Course module of DS

  • 1. PUNJAB COLLEGE OF TECHNICAL EDUCATION LUDHIANA Teacher Name: Sandeepjit Kaur (SJ) Class Name: MCA Subject Name: Data Structure Max Marks:60 Subject Code: MCA-302 (N2) Total Lects Required: 50 No. of Tests: 5 No. of Assignments: 4 Instruction for candidates 1. Candidates are required to attempt one question each from sections A, B, C and D of the question paper and the entire section E 2. Use of non-programmable scientific calculator is allowed Section A Basic concepts and notations, data structures and data structure operations, mathematical notation and functions, algorithmic complexity and time space trade off. Basic data structures such as arrays, stack and queues and their applications, linked and sequential representation. Linked list, representation of linked list, multi linked structures. Section B Trees-definitions and basic concepts, linked tree representation, representations in contiguous storage, binary trees, binary tree traversal, searching insertion and deletion in binary trees, heap tree and heap sort algorithm, AVL trees. Section C Graphs and their application, sequential and linked representation of graph – adjacency matrix, operations on graph, traversing a graph, Dijkstra’s algorithm for shortest distance, DFS and BFS, Hashing. Section D Searching and sorting use of various data structures for searching and sorting, Linear and Binary search, Insertion sort, Selection sort, Merge sort, Radix sort, Bubble sort, Quick sort, Heap Sort. Note: - 1. Programs are to be implemented in ‘C/C++’ 2. Insertion, deletion, search and traversal operations are to be performed on all the data structures. References: 1. A. Tannenbaum, Y. Lanhgsam and A.J.Augenstein,”Data Structures Using C”, Prentice Hallof India, 1990 2. Seymour Lipschultz, “ Theory and Practice of Data structures”, Mc Graw Hill, 1988. 3. E. Horowitz and S.Sahni,”Data structures with Pascal”, Galgotia, 3rd edition,
  • 2. COURSE BREAKUP Propose Lect. Topics Actual Assign Test d Week No. DOD 1. Introduction to Data Structure: • Basic concepts of data • Problem analysis 2. Data Structure • Types of data structures • Data operations 3. Data Structure ( Continue…) • Need of data structure • Mathematical notations and functions 4. Algorithm Complexity • Big O notation • Time space trade off 5. Introduction to Arrays • Memory representation of One Dimensional array • Location of an element at in one dimensional array 6. Introduction to Arrays • Memory representation of two Dimensional array • Location of an element at in two dimensional array
  • 3. 7. TUTORIAL 8. TEST 1 9. Operations on array (Continue…)  Traversing of an array  Insertion of an element in an array o in the beginning o at Kth location o at the end 10. Operations on array (Continue…)  Deletion of an element from an array o from the beginning o from Kth location o from the end  Merging of two arrays 11. TUTORIAL 12. TEST 2 13. Stacks & Queues: • Basics of stacks • Operations on stack  PUSH operation  POP operation 14. Applications of Stack • Expression evaluation 15. Applications of Stack (Continue…) • Polish notation • Recursion 16. REVISION OF STACK WITH EXAMPLES
  • 4. 17. TEST 3 18. Introduction of Queues • Operations on Queues o Insertion o Deletion 19. Queues: o Circular Queues o Priority Queues 20. Linked Lists: • Singular List • Circular List 21. REVISION OF QUEUES WITH EXAMPLES 22. Operations Performed on link list: Insertion o In the beginning o At kth location 23. Insertion in Link list (Continue…) o After a given no o At the end 24. FIRST HALF SYLLABUS TEST 25. Deletion in Link list o from the beginning o from kth location 26. Deletion in Link List o from the end o Searching in link list 27. More in Link List: o Doubly Linked List o Dynamic storage management 28. More in Link List: o Generalized list
  • 5. o Garbage collection 29. TUTORIAL 30. TEST 4 31. Trees: • Definition & Concept, Basic Tree • Binary Tree representation 32. Trees (Continue….) • Threaded Storage representation • Binary tree traversals o Inorder o Preorder o Postorder 33. Trees (Continue….) Searching in binary tree 34. Insertion and deletion in binary tree 35. Heap tree and heap sort 36. AVL tree 37. Graphs: introduction, sequential and linked representation of graphs 38. Adjacency matrix, operations on graph, traversing a graph 39. Dijkstra’s algorithm for shortest distance 40. DFS and BFS, Hashing. 41. Searching and Sorting: • Use of various data structure for searching & sorting • Linear & Binary Search 42. Searching and Sorting (Continue…) • Insertion Sort
  • 6. Selection Sort 43. Searching and Sorting (Continue…) • Merge Sort 44. TEST 5 45. Searching and Sorting (Continue…) • Radix Sort 46. Searching and Sorting (Continue…) • Bubble Sort 47. Searching and Sorting (Continue….) • Quick Sort 48. Searching and Sorting (Continue….) • Heap Sort 49. TUTORIAL 50. FULL SYLLABUS TEST
  • 7. ASSIGNMENT 1 Ques 1: Consider the linear Array NAME, which is stored alphabetically. a) Suppose Daljit is to be inserted into the linear array. How many names must be moved to new locations? b) Suppose Gagan is to be deleted from the array. How many names must be moved to new locations? Ques 2: Consider the algebraic expression ( 7x + 5y ) (2a – 5b )3. Draw the corresponding diagram for it. Ques 3: The tree structure is given by means of level numbers. Draw the corresponding tree diagram. 01 Student 02 Name 03 First name 02Class 03Middle name 02Rollno 03 Last name 02Father’sName 03Father’s First name 02Age 03 Father’s first name 02Address 03 father’s middle name 02 Contactno 03father’s last name 03 HouseNo 03 StrretNo 03 City 03 State 03 Pincode
  • 8. ASSIGNMENT 2 Short Questions: 1. What is threaded Binary Tree? 2. How the height of a binary search tree effects its performance? 3. What is the different between B-Tree, B + - Tree, B * Tree 4. How heap differs from binary tree? Long Questions: 1. For a binary Tree the in-order & post-order traversal sequences are as follows: In order: D C K E A H B Q J I Post order: D K E C H Q J I B A Draw Binary Tree. 2. Write a search () function so that it not only returns the location of the element but also return location of its parents in a binary search tree. 3. What is a thread? How it is useful? What are advantages of threading a binary tree?
  • 9. ASSIGNMENT 3 SHORT QUESTIONS 1. What is a Complete Binary Tree? Explain its related terminology. 2. What is the node structure of a tree (Binary)? 3. What is Tree Traversal? LONG QUESTIONS 1. What do you mean by Binary Search Tree? Explain how deletion of a node is performed in the Binary Search Tree. 2. Describe the Binary Tree Traversing methods with the help of proper examples. 3. Traverse the following tree in inorder, preorder and postorder. Write the algorithm also. A B C G D E F H
  • 10. Practical Software Lab – III BC-207(N2) Max Marks 100 Internal Assessment 40 External Assessment 60 Note: Program should be fully documented with sample I/O data Flow charts should be developed wherever necessary. Write program in C 1. To insert and delete a node in a linked list 2. To add two polynomials using linked list 3. To insert and delete a node in a circular linked list. 4. To implement a stack using arrays and linked list. 5. To implement a queue using arrays and linked list. 6. To invert a linked list. 7. To merge two arrays. 8. To solve polish expression using stacks. 9. For tower of hanoi problem using recursion. 10 .To insert and delete node in binary search tree 11. To find traversals of expressions using binary tree 12. To search an element using binary tree.
  • 11. Presentation Topics 1. Need Of Data Structure 2. Types of data structures 3. Operations performed on data structure 4. What is structure? Difference b/w structure and union. 5. What is self referential structure? 6. What is pointer & operations performed on pointer 7. What is an array? Types of array? 8. Operations of an array. 9. Complexity of an algorithm? 10.Hotel Taj Attack (reasons) 11.Future of IT 12. WiFi 13.Advantages and Disadvantages of Internet 14. Stack and its operations 15.Applications of stack 16.Queues and its operations 17.Applications of Queues 18.Types of queues 19. Reliance telecom 20. DELL 21. RGTP (Rajiv Ghandhi Technology Park, Mohali) 22. Online Education