SlideShare a Scribd company logo
1 of 34
Introduction to Data Structures

Objectives
In this lesson, you will learn to:
 Classify and list the types of data structures
 List the types of arrays
 List the types of linked lists
 Implement nodes insertion on single linked list




  ©NIIT                    Introduction to Data Structures/Lesson 1/Slide 1 of 34
Introduction to Data Structures

 Data Structures
  Data Structure is :
       A collection of data items or objects
       Relationships among data items or objects
       Collection of functions or operations that can be
        applied to that data




  ©NIIT                  Introduction to Data Structures/Lesson 1/Slide 2 of 34
Introduction to Data Structures

 Types and Classification of Data Structures
  Some of the commonly used data structures are:
       Strings
       Arrays
       Linked Lists
       Stacks
       Queues
       Binary trees
       Graphs


  ©NIIT                Introduction to Data Structures/Lesson 1/Slide 3 of 34
Introduction to Data Structures

 Types and Classifications of Data Structures
   (Contd..)
  Data structures can be classified into:
       Static data structures (one-dimensional array, two-
        dimensional array, and multi-dimensional array)
       Dynamic data structures (linked lists, binary trees,
        and graphs)
       Elastic data structures (stack, queue)
  Data structures can also be classified based on the
   linkages between the different structures:
       Linear Structures (arrays and linked lists)
       Hierarchical Structures (binary trees)

  ©NIIT                  Introduction to Data Structures/Lesson 1/Slide 4 of 34
Introduction to Data Structures

 Types and Classification of Data Structures
   (Contd..)
      Network Structures (graphs)




  ©NIIT               Introduction to Data Structures/Lesson 1/Slide 5 of 34
Introduction to Data Structures

 Just a Minute…
 2. An array is an example of dynamic data structure. (T/
    F)
 3. Queues works on a concept of FIFO. (T/F)
 4. ______________________ are called terminal
    nodes.




  ©NIIT                Introduction to Data Structures/Lesson 1/Slide 6 of 34
Introduction to Data Structures

 Types of Arrays
  Arrays are the simplest type of data structures
  Arrays are of two types:
       One-dimensional arrays
       Multi-dimensional arrays




  ©NIIT                 Introduction to Data Structures/Lesson 1/Slide 7 of 34
Introduction to Data Structures

 One-dimensional Arrays
  Example: Let NOFDAYS be an array of 12 element
   representing total number of days in a month.
          int NOFDAYS[12];
      Then,
          NOFDAYS[0] = 31        NOFDAYS[1] = 28
          NOFDAYS[2] = 31 and so on...
          The array will be represented as shown in the
          following figure:
                   31   28        31      30        31          30




           NOFDAYS[0]        NOFDAYS[1]        NOFDAYS[2]…



  ©NIIT                        Introduction to Data Structures/Lesson 1/Slide 8 of 34
Introduction to Data Structures

 Multi-dimensional Arrays
  Programming languages like PASCAL, COBOL, C,
   and C++ allow declaration of multidimensional arrays.
  These can be stored in the memory in the following
   two ways:
       Row-major order: The elements are listed so that
        the last element varies first (more rapidly). Then,
        the second last element varies next (less rapidly)
        and so on.
       Column-major order : The elements are listed so
        that the first element varies more rapidly then, the
        second element varies next and so on.

  ©NIIT                  Introduction to Data Structures/Lesson 1/Slide 9 of 34
Introduction to Data Structures

  Array Referencing
   Elements of an array are stored in contiguous
    locations
   To reference an element in the array we need to
    know only the address of the starting element
   The first element’s address can be denoted as the
   base address of the array
   The first element number is known as Lower Bound
   The last element number is known as Upper Bound




  ©NIIT               Introduction to Data Structures/Lesson 1/Slide 10 of 34
Introduction to Data Structures

 Array Referencing (Contd..)
  From the base address, the computer will calculate
   the address of any element with the formula:
                  BA+LEN*(ENUM-
    FNUM)=Address of the required element
      Where,
          BA is the Base Address
          LEN is the length per element
          ENUM is the element Number
          FNUM is the first element number


  ©NIIT               Introduction to Data Structures/Lesson 1/Slide 11 of 34
Introduction to Data Structures

 Multi-dimensional Arrays (Contd..)
                       (1, 1)                           (1, 1)


                       (2, 1)                           (1, 2)
                                Column 1
                       (3, 1)                           (1, 3)   Row 1

                       (1, 2)                           (1, 4)


                       (2, 2)   Column 2                (2, 1)


                       (3, 2)                           (2, 2)


                       (1, 3)                           (2, 3)   Row 2

                       (2, 3)                           (2, 4)
                                Column 3
                       (3, 3)                           (3, 1)


                       (1, 4)                           (3, 2)


                       (2, 4)                           (3, 3)    Row 3
                                Column 4
                       (3, 4)                           (3, 4)



          Column‑major order               Row‑major order

  ©NIIT                          Introduction to Data Structures/Lesson 1/Slide 12 of 34
Introduction to Data Structures

 Just a Minute…
 2. Find the address of numbers [13] and numbers [40] of
    the array numbers [40] assuming a Base address of
    250 and length of each element as 4.
 3. Matrix is an example of _________ dimensional
    array.
 4. How many types of arrays are available?




  ©NIIT              Introduction to Data Structures/Lesson 1/Slide 13 of 34
Introduction to Data Structures

 Array Complexities
  Inserting and deleting from array involves
   complexities.
       If an element is deleted from the middle of an
        array, then that element remains empty unless all
        the names in the succeeding elements are moved
        back by one element position to occupy the empty
        element.
       If an element is inserted in the middle of an array,
        all names have to be moved forward by one
        element position.



  ©NIIT                 Introduction to Data Structures/Lesson 1/Slide 14 of 34
Introduction to Data Structures

 Linked Lists
  A linked list is a chain of objects in which each object
   consists of the data and a pointer that stores the
   address (link) of the next logical object in the list.
  The main advantages of linked lists are:
       Memory is allocated whenever required.
       Inserting to and deleting from linked lists can be
        handled efficiently without having to restructure the
        list.




  ©NIIT                 Introduction to Data Structures/Lesson 1/Slide 15 of 34
Introduction to Data Structures

 Types of Linked Lists
  Linked lists can be of different types:
       Single linked list
       Circular linked list
       Double linked list




  ©NIIT                  Introduction to Data Structures/Lesson 1/Slide 16 of 34
Introduction to Data Structures

 Single Linked List
  Is a chain of structures in which each structure
   consists of data and a pointer to the address of next
   subsequent node
      START



          Data   LINK   Data   LINK       Data   LINK        Data   LINK

                                                                               NULL




  ©NIIT                        Introduction to Data Structures/Lesson 1/Slide 17 of 34
Introduction to Data Structures

 Circular Linked List
  Has the START pointer pointing to the first node and
   the last pointer also pointing to the first node

     START



          Data   LINK   Data     LINK         Data    LINK         Data   LINK




  ©NIIT                        Introduction to Data Structures/Lesson 1/Slide 18 of 34
Introduction to Data Structures

 Double Linked List
  Has 3 parts: the INFO, NEXT pointer, and PREV
   pointer
  Is also called a two-way list
                                                                    LAST
             START



      NULL      PREV   Data   NEXT                 PREV    Data     NEXT

                                                                              NULL


                                 PREV    Data     NEXT




  ©NIIT                       Introduction to Data Structures/Lesson 1/Slide 19 of 34
Introduction to Data Structures

 Operations on Lists
 Are:
  Insertion
  Traversal
  Deletion
  Modification
  Sorting




  ©NIIT             Introduction to Data Structures/Lesson 1/Slide 20 of 34
Introduction to Data Structures

 Some Common Applications of Lists
 Are:
  Word processing applications
  Index maintenance in a file-based database package
  Maintenance of linked lists for data files that have
   read-write overhead




  ©NIIT                Introduction to Data Structures/Lesson 1/Slide 21 of 34
Introduction to Data Structures

 Complexities in Lists
 Are:
  The START pointer, pointing to the first node, cannot
   be moved as it depicts the starting point of the list.




  ©NIIT               Introduction to Data Structures/Lesson 1/Slide 22 of 34
Introduction to Data Structures

 Single Linked List
  The three basic classes that are required to make a
   complete linked list are as follows:
       A class to represent the DATA or INFO part of the
        node.
       The Node class, which contains an object of the
        built-in data class called INFO and a pointer to a
        Node object called NEXT.
       The List class that will contain the start pointer to
        a Node object.




  ©NIIT                 Introduction to Data Structures/Lesson 1/Slide 23 of 34
Introduction to Data Structures

 Insertion Of Nodes In A Linked List
  Insertion involves adding a new node to an existing
   linked list or creating a new linked list if one does not
   already exist.
  Insertion can be performed:
       At the beginning of the list
       In the middle of the list
       At the end of the list




  ©NIIT                  Introduction to Data Structures/Lesson 1/Slide 24 of 34
Introduction to Data Structures


 Inserting a Node at the Beginning of a
 Linked List

                                                       Existing Links on the list
                                                       Links after inserting the new node


      START



                      INFO NEXT       INFO NEXT           INFO NEXT



                                                                    NULL

          INFO NEXT



  ©NIIT                     Introduction to Data Structures/Lesson 1/Slide 25 of 34
Introduction to Data Structures

 Inserting a Node at the Beginning of a Linked
 List (Contd..)
 Requires to:
 Check whether or not the list exists
 Check whether the user supplied string is lesser than
  the INFO in the first node




  ©NIIT               Introduction to Data Structures/Lesson 1/Slide 26 of 34
Introduction to Data Structures

 Inserting a Node in the Middle or at the End of a
 Linked List

                       prev
     START                                curr




          Ann   NEXT                      Tom    NEXT                      NEXT




                                                                               NULL


                                                            Existing Links on the list
                              NEXT
                                                            Links after inserting the new node




  ©NIIT                       Introduction to Data Structures/Lesson 1/Slide 27 of 34
Introduction to Data Structures

 Inserting a Node in the Middle or at the End of a
 Linked List (Contd..)
 Requires to:
 Allocate the memory for the new node.
 Position the pointer prev on the node after which the
  new node is to be inserted and the pointer curr to be
  positioned on the node before which the new node is
  to be inserted.
 Complete the link by making the NEXT of the previous
  node point to the new node.




  ©NIIT              Introduction to Data Structures/Lesson 1/Slide 28 of 34
Introduction to Data Structures

 Problem Statement 1.D.1
 Create an application that accepts the names of an
 unknown number of customers and displays them in
 alphabetical order.




  ©NIIT              Introduction to Data Structures/Lesson 1/Slide 29 of 34
Introduction to Data Structures

Summary
In this lesson, you learned that:
 Data structures are a collection of data values, the
  relationships among them, and the functions or
  operations that can be applied to the data.
 Some of the commonly used data structures are:
      Strings
      Arrays
      Linked lists
      Stacks
      Queues


    ©NIIT                 Introduction to Data Structures/Lesson 1/Slide 30 of 34
Introduction to Data Structures

Summary (Contd..)
          Binary trees
          Graphs
 Data structures can be categorized as:
          Static data structures (multi-dimensional arrays)
       Dynamic data structures (linked lists, binary
    trees  graphs)
          Elastic data structures (stack, queue)
 The array is the simplest type of data structure. The
  elements of an array are stored in contiguous
  locations.

  ©NIIT                   Introduction to Data Structures/Lesson 1/Slide 31 of 34
Introduction to Data Structures

Summary (Contd..)
 Arrays are of two types—One-dimensional array (also
  called linear array) and multi-dimensional arrays.
 Arrays will be stored in memory by the programming
  language in one of the two ways available:
    Column-major order
    Row-major order
 Linked lists can be of different types:
    Single linked list
    Circular linked list
    Double linked list


    ©NIIT                   Introduction to Data Structures/Lesson 1/Slide 32 of 34
Introduction to Data Structures
Summary (Contd..)
 The different operations that can be performed on a linked
  list are:
     Insertion
     Traversal
     Modification
     Deletion
 The three classes, which make a complete linked list are as
  follows:
     A class to represent the data or INFO part of the node
     The Node class, which will contain an object of the
      built-in data class called INFO and a pointer to a Node
      object called NEXT


  ©NIIT                  Introduction to Data Structures/Lesson 1/Slide 33 of 34
Introduction to Data Structures
Summary (Contd.)
      The List class that will contain the starting
       pointer to a Node object
 The insertion of a node can be performed at three
  different levels:
      At the beginning of the list
      In the middle of the list
      At the end of the list




  ©NIIT                 Introduction to Data Structures/Lesson 1/Slide 34 of 34

More Related Content

What's hot

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
 
Smu mscit sem 2 fall 2015 solved assignments
Smu mscit sem 2 fall 2015 solved assignmentsSmu mscit sem 2 fall 2015 solved assignments
Smu mscit sem 2 fall 2015 solved assignmentssmumbahelp
 
linked lists in data structures
linked lists in data structureslinked lists in data structures
linked lists in data structuresDurgaDeviCbit
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked listKeval Bhogayata
 
linked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutoriallinked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy TutorialAfzal Badshah
 
DBMS Question bank
DBMS Question bankDBMS Question bank
DBMS Question bankSara Sahu
 
LATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATION
LATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATIONLATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATION
LATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATIONcsandit
 
Deletion from single way linked list and search
Deletion from single way linked list and searchDeletion from single way linked list and search
Deletion from single way linked list and searchEstiak Khan
 
Java Linked List Tutorial | Edureka
Java Linked List Tutorial |  EdurekaJava Linked List Tutorial |  Edureka
Java Linked List Tutorial | EdurekaEdureka!
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure shameen khan
 
Link list(by harshit)
Link list(by harshit)Link list(by harshit)
Link list(by harshit)Harshit Jain
 
Data Structures with C Linked List
Data Structures with C Linked ListData Structures with C Linked List
Data Structures with C Linked ListReazul Islam
 
Fundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersAbdul Rahman Sherzad
 
Double Linked List (Algorithm)
Double Linked List (Algorithm)Double Linked List (Algorithm)
Double Linked List (Algorithm)Huba Akhtar
 

What's hot (20)

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
 
Smu mscit sem 2 fall 2015 solved assignments
Smu mscit sem 2 fall 2015 solved assignmentsSmu mscit sem 2 fall 2015 solved assignments
Smu mscit sem 2 fall 2015 solved assignments
 
linked lists in data structures
linked lists in data structureslinked lists in data structures
linked lists in data structures
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked list
 
linked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutoriallinked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutorial
 
Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)
 
DBMS Question bank
DBMS Question bankDBMS Question bank
DBMS Question bank
 
Lesson 1 overview
Lesson 1   overviewLesson 1   overview
Lesson 1 overview
 
Linkedlists
LinkedlistsLinkedlists
Linkedlists
 
LATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATION
LATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATIONLATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATION
LATTICE-CELL : HYBRID APPROACH FOR TEXT CATEGORIZATION
 
Deletion from single way linked list and search
Deletion from single way linked list and searchDeletion from single way linked list and search
Deletion from single way linked list and search
 
Java Linked List Tutorial | Edureka
Java Linked List Tutorial |  EdurekaJava Linked List Tutorial |  Edureka
Java Linked List Tutorial | Edureka
 
Linked list
Linked listLinked list
Linked list
 
Link list
Link listLink list
Link list
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Link list(by harshit)
Link list(by harshit)Link list(by harshit)
Link list(by harshit)
 
Data Structures with C Linked List
Data Structures with C Linked ListData Structures with C Linked List
Data Structures with C Linked List
 
Fundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and Answers
 
Double Linked List (Algorithm)
Double Linked List (Algorithm)Double Linked List (Algorithm)
Double Linked List (Algorithm)
 
single linked list
single linked listsingle linked list
single linked list
 

Viewers also liked

KPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_finalKPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_finalFisal Anwari
 
KPUCC-Rs instructor ppt_chapter5_final
KPUCC-Rs instructor ppt_chapter5_finalKPUCC-Rs instructor ppt_chapter5_final
KPUCC-Rs instructor ppt_chapter5_finalFisal Anwari
 
Dynamic data structures
Dynamic data structuresDynamic data structures
Dynamic data structures9020303098
 
Packet Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 SwitchingPacket Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 SwitchingJohnson Liu
 
At8000 s configurando vla_ns
At8000 s configurando vla_nsAt8000 s configurando vla_ns
At8000 s configurando vla_nsNetPlus
 
CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6Chaing Ravuth
 
Lab practice 1 configuring basic routing and switching (with answer)
Lab practice 1   configuring basic routing and switching (with answer) Lab practice 1   configuring basic routing and switching (with answer)
Lab practice 1 configuring basic routing and switching (with answer) Arz Sy
 
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)Alphorm
 

Viewers also liked (15)

KPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_finalKPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_final
 
KPUCC-Rs instructor ppt_chapter5_final
KPUCC-Rs instructor ppt_chapter5_finalKPUCC-Rs instructor ppt_chapter5_final
KPUCC-Rs instructor ppt_chapter5_final
 
Dynamic data structures
Dynamic data structuresDynamic data structures
Dynamic data structures
 
Packet Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 SwitchingPacket Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 Switching
 
At8000 s configurando vla_ns
At8000 s configurando vla_nsAt8000 s configurando vla_ns
At8000 s configurando vla_ns
 
Virtuals LAN
Virtuals LANVirtuals LAN
Virtuals LAN
 
Lesson 16 vlan
Lesson 16   vlanLesson 16   vlan
Lesson 16 vlan
 
Day 14.2 configuringvla ns
Day 14.2 configuringvla nsDay 14.2 configuringvla ns
Day 14.2 configuringvla ns
 
VLAN
VLANVLAN
VLAN
 
CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6
 
Vlan
Vlan Vlan
Vlan
 
Router commands
Router commandsRouter commands
Router commands
 
VLAN
VLANVLAN
VLAN
 
Lab practice 1 configuring basic routing and switching (with answer)
Lab practice 1   configuring basic routing and switching (with answer) Lab practice 1   configuring basic routing and switching (with answer)
Lab practice 1 configuring basic routing and switching (with answer)
 
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
 

Similar to Ds 1

Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data StructureJazz Jinia Bhowmik
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
Data-Structure-original-QuantumSupply.pdf
Data-Structure-original-QuantumSupply.pdfData-Structure-original-QuantumSupply.pdf
Data-Structure-original-QuantumSupply.pdflehal93146
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
Bit by bit into data structures
Bit by bit into data structuresBit by bit into data structures
Bit by bit into data structuresHridyesh Bisht
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESsuthi
 
Dbms narrative question answers
Dbms narrative question answersDbms narrative question answers
Dbms narrative question answersshakhawat02
 
Data and File Structure Lecture Notes
Data and File Structure Lecture NotesData and File Structure Lecture Notes
Data and File Structure Lecture NotesFellowBuddy.com
 
Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1Kumar
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfMaryJacob24
 
Introduction to Data Structure.pptx
Introduction to Data Structure.pptxIntroduction to Data Structure.pptx
Introduction to Data Structure.pptxGlenardDSarmiento
 
Chapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.pptChapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.pptNORSHADILAAHMADBADEL
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure pptNalinNishant3
 
Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1DrSudeshna
 

Similar to Ds 1 (20)

Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data Structure
 
Data Structure Basics
Data Structure BasicsData Structure Basics
Data Structure Basics
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Data-Structure-original-QuantumSupply.pdf
Data-Structure-original-QuantumSupply.pdfData-Structure-original-QuantumSupply.pdf
Data-Structure-original-QuantumSupply.pdf
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Bit by bit into data structures
Bit by bit into data structuresBit by bit into data structures
Bit by bit into data structures
 
Data structures
Data structuresData structures
Data structures
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
 
02. the linked lists (1)
02. the linked lists (1)02. the linked lists (1)
02. the linked lists (1)
 
Dbms narrative question answers
Dbms narrative question answersDbms narrative question answers
Dbms narrative question answers
 
Data and File Structure Lecture Notes
Data and File Structure Lecture NotesData and File Structure Lecture Notes
Data and File Structure Lecture Notes
 
104333 sri vidhya eng notes
104333 sri vidhya eng notes104333 sri vidhya eng notes
104333 sri vidhya eng notes
 
CS8391 Data Structures 2 mark Questions - Anna University Questions
CS8391 Data Structures 2 mark Questions - Anna University QuestionsCS8391 Data Structures 2 mark Questions - Anna University Questions
CS8391 Data Structures 2 mark Questions - Anna University Questions
 
Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdf
 
Introduction to Data Structure.pptx
Introduction to Data Structure.pptxIntroduction to Data Structure.pptx
Introduction to Data Structure.pptx
 
Chapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.pptChapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.ppt
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1
 
A41001011
A41001011A41001011
A41001011
 

More from Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Recently uploaded

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Ds 1

  • 1. Introduction to Data Structures Objectives In this lesson, you will learn to: Classify and list the types of data structures List the types of arrays List the types of linked lists Implement nodes insertion on single linked list ©NIIT Introduction to Data Structures/Lesson 1/Slide 1 of 34
  • 2. Introduction to Data Structures Data Structures Data Structure is : A collection of data items or objects Relationships among data items or objects Collection of functions or operations that can be applied to that data ©NIIT Introduction to Data Structures/Lesson 1/Slide 2 of 34
  • 3. Introduction to Data Structures Types and Classification of Data Structures Some of the commonly used data structures are: Strings Arrays Linked Lists Stacks Queues Binary trees Graphs ©NIIT Introduction to Data Structures/Lesson 1/Slide 3 of 34
  • 4. Introduction to Data Structures Types and Classifications of Data Structures (Contd..) Data structures can be classified into: Static data structures (one-dimensional array, two- dimensional array, and multi-dimensional array) Dynamic data structures (linked lists, binary trees, and graphs) Elastic data structures (stack, queue) Data structures can also be classified based on the linkages between the different structures: Linear Structures (arrays and linked lists) Hierarchical Structures (binary trees) ©NIIT Introduction to Data Structures/Lesson 1/Slide 4 of 34
  • 5. Introduction to Data Structures Types and Classification of Data Structures (Contd..) Network Structures (graphs) ©NIIT Introduction to Data Structures/Lesson 1/Slide 5 of 34
  • 6. Introduction to Data Structures Just a Minute… 2. An array is an example of dynamic data structure. (T/ F) 3. Queues works on a concept of FIFO. (T/F) 4. ______________________ are called terminal nodes. ©NIIT Introduction to Data Structures/Lesson 1/Slide 6 of 34
  • 7. Introduction to Data Structures Types of Arrays Arrays are the simplest type of data structures Arrays are of two types: One-dimensional arrays Multi-dimensional arrays ©NIIT Introduction to Data Structures/Lesson 1/Slide 7 of 34
  • 8. Introduction to Data Structures One-dimensional Arrays Example: Let NOFDAYS be an array of 12 element representing total number of days in a month. int NOFDAYS[12]; Then, NOFDAYS[0] = 31 NOFDAYS[1] = 28 NOFDAYS[2] = 31 and so on... The array will be represented as shown in the following figure: 31 28 31 30 31 30 NOFDAYS[0] NOFDAYS[1] NOFDAYS[2]… ©NIIT Introduction to Data Structures/Lesson 1/Slide 8 of 34
  • 9. Introduction to Data Structures Multi-dimensional Arrays Programming languages like PASCAL, COBOL, C, and C++ allow declaration of multidimensional arrays. These can be stored in the memory in the following two ways: Row-major order: The elements are listed so that the last element varies first (more rapidly). Then, the second last element varies next (less rapidly) and so on. Column-major order : The elements are listed so that the first element varies more rapidly then, the second element varies next and so on. ©NIIT Introduction to Data Structures/Lesson 1/Slide 9 of 34
  • 10. Introduction to Data Structures Array Referencing Elements of an array are stored in contiguous locations To reference an element in the array we need to know only the address of the starting element The first element’s address can be denoted as the base address of the array The first element number is known as Lower Bound The last element number is known as Upper Bound ©NIIT Introduction to Data Structures/Lesson 1/Slide 10 of 34
  • 11. Introduction to Data Structures Array Referencing (Contd..) From the base address, the computer will calculate the address of any element with the formula: BA+LEN*(ENUM- FNUM)=Address of the required element Where, BA is the Base Address LEN is the length per element ENUM is the element Number FNUM is the first element number ©NIIT Introduction to Data Structures/Lesson 1/Slide 11 of 34
  • 12. Introduction to Data Structures Multi-dimensional Arrays (Contd..) (1, 1) (1, 1) (2, 1) (1, 2) Column 1 (3, 1) (1, 3) Row 1 (1, 2) (1, 4) (2, 2) Column 2 (2, 1) (3, 2) (2, 2) (1, 3) (2, 3) Row 2 (2, 3) (2, 4) Column 3 (3, 3) (3, 1) (1, 4) (3, 2) (2, 4) (3, 3) Row 3 Column 4 (3, 4) (3, 4) Column‑major order Row‑major order ©NIIT Introduction to Data Structures/Lesson 1/Slide 12 of 34
  • 13. Introduction to Data Structures Just a Minute… 2. Find the address of numbers [13] and numbers [40] of the array numbers [40] assuming a Base address of 250 and length of each element as 4. 3. Matrix is an example of _________ dimensional array. 4. How many types of arrays are available? ©NIIT Introduction to Data Structures/Lesson 1/Slide 13 of 34
  • 14. Introduction to Data Structures Array Complexities Inserting and deleting from array involves complexities. If an element is deleted from the middle of an array, then that element remains empty unless all the names in the succeeding elements are moved back by one element position to occupy the empty element. If an element is inserted in the middle of an array, all names have to be moved forward by one element position. ©NIIT Introduction to Data Structures/Lesson 1/Slide 14 of 34
  • 15. Introduction to Data Structures Linked Lists A linked list is a chain of objects in which each object consists of the data and a pointer that stores the address (link) of the next logical object in the list. The main advantages of linked lists are: Memory is allocated whenever required. Inserting to and deleting from linked lists can be handled efficiently without having to restructure the list. ©NIIT Introduction to Data Structures/Lesson 1/Slide 15 of 34
  • 16. Introduction to Data Structures Types of Linked Lists Linked lists can be of different types: Single linked list Circular linked list Double linked list ©NIIT Introduction to Data Structures/Lesson 1/Slide 16 of 34
  • 17. Introduction to Data Structures Single Linked List Is a chain of structures in which each structure consists of data and a pointer to the address of next subsequent node START Data LINK Data LINK Data LINK Data LINK NULL ©NIIT Introduction to Data Structures/Lesson 1/Slide 17 of 34
  • 18. Introduction to Data Structures Circular Linked List Has the START pointer pointing to the first node and the last pointer also pointing to the first node START Data LINK Data LINK Data LINK Data LINK ©NIIT Introduction to Data Structures/Lesson 1/Slide 18 of 34
  • 19. Introduction to Data Structures Double Linked List Has 3 parts: the INFO, NEXT pointer, and PREV pointer Is also called a two-way list LAST START NULL PREV Data NEXT PREV Data NEXT NULL PREV Data NEXT ©NIIT Introduction to Data Structures/Lesson 1/Slide 19 of 34
  • 20. Introduction to Data Structures Operations on Lists Are: Insertion Traversal Deletion Modification Sorting ©NIIT Introduction to Data Structures/Lesson 1/Slide 20 of 34
  • 21. Introduction to Data Structures Some Common Applications of Lists Are: Word processing applications Index maintenance in a file-based database package Maintenance of linked lists for data files that have read-write overhead ©NIIT Introduction to Data Structures/Lesson 1/Slide 21 of 34
  • 22. Introduction to Data Structures Complexities in Lists Are: The START pointer, pointing to the first node, cannot be moved as it depicts the starting point of the list. ©NIIT Introduction to Data Structures/Lesson 1/Slide 22 of 34
  • 23. Introduction to Data Structures Single Linked List The three basic classes that are required to make a complete linked list are as follows: A class to represent the DATA or INFO part of the node. The Node class, which contains an object of the built-in data class called INFO and a pointer to a Node object called NEXT. The List class that will contain the start pointer to a Node object. ©NIIT Introduction to Data Structures/Lesson 1/Slide 23 of 34
  • 24. Introduction to Data Structures Insertion Of Nodes In A Linked List Insertion involves adding a new node to an existing linked list or creating a new linked list if one does not already exist. Insertion can be performed: At the beginning of the list In the middle of the list At the end of the list ©NIIT Introduction to Data Structures/Lesson 1/Slide 24 of 34
  • 25. Introduction to Data Structures Inserting a Node at the Beginning of a Linked List Existing Links on the list Links after inserting the new node START INFO NEXT INFO NEXT INFO NEXT NULL INFO NEXT ©NIIT Introduction to Data Structures/Lesson 1/Slide 25 of 34
  • 26. Introduction to Data Structures Inserting a Node at the Beginning of a Linked List (Contd..) Requires to: Check whether or not the list exists Check whether the user supplied string is lesser than the INFO in the first node ©NIIT Introduction to Data Structures/Lesson 1/Slide 26 of 34
  • 27. Introduction to Data Structures Inserting a Node in the Middle or at the End of a Linked List prev START curr Ann NEXT Tom NEXT NEXT NULL Existing Links on the list NEXT Links after inserting the new node ©NIIT Introduction to Data Structures/Lesson 1/Slide 27 of 34
  • 28. Introduction to Data Structures Inserting a Node in the Middle or at the End of a Linked List (Contd..) Requires to: Allocate the memory for the new node. Position the pointer prev on the node after which the new node is to be inserted and the pointer curr to be positioned on the node before which the new node is to be inserted. Complete the link by making the NEXT of the previous node point to the new node. ©NIIT Introduction to Data Structures/Lesson 1/Slide 28 of 34
  • 29. Introduction to Data Structures Problem Statement 1.D.1 Create an application that accepts the names of an unknown number of customers and displays them in alphabetical order. ©NIIT Introduction to Data Structures/Lesson 1/Slide 29 of 34
  • 30. Introduction to Data Structures Summary In this lesson, you learned that: Data structures are a collection of data values, the relationships among them, and the functions or operations that can be applied to the data. Some of the commonly used data structures are: Strings Arrays Linked lists Stacks Queues ©NIIT Introduction to Data Structures/Lesson 1/Slide 30 of 34
  • 31. Introduction to Data Structures Summary (Contd..) Binary trees Graphs Data structures can be categorized as: Static data structures (multi-dimensional arrays) Dynamic data structures (linked lists, binary trees graphs) Elastic data structures (stack, queue) The array is the simplest type of data structure. The elements of an array are stored in contiguous locations. ©NIIT Introduction to Data Structures/Lesson 1/Slide 31 of 34
  • 32. Introduction to Data Structures Summary (Contd..) Arrays are of two types—One-dimensional array (also called linear array) and multi-dimensional arrays. Arrays will be stored in memory by the programming language in one of the two ways available: Column-major order Row-major order Linked lists can be of different types: Single linked list Circular linked list Double linked list ©NIIT Introduction to Data Structures/Lesson 1/Slide 32 of 34
  • 33. Introduction to Data Structures Summary (Contd..) The different operations that can be performed on a linked list are: Insertion Traversal Modification Deletion The three classes, which make a complete linked list are as follows: A class to represent the data or INFO part of the node The Node class, which will contain an object of the built-in data class called INFO and a pointer to a Node object called NEXT ©NIIT Introduction to Data Structures/Lesson 1/Slide 33 of 34
  • 34. Introduction to Data Structures Summary (Contd.) The List class that will contain the starting pointer to a Node object The insertion of a node can be performed at three different levels: At the beginning of the list In the middle of the list At the end of the list ©NIIT Introduction to Data Structures/Lesson 1/Slide 34 of 34

Editor's Notes

  1. Lower Bound and Upper Bound to denote the first element number and the last element number respectively
  2. Lower Bound and Upper Bound to denote the first element number and the last element number respectively
  3. Lower Bound and Upper Bound to denote the first element number and the last element number respectively