Dr.Babasaheb Ambedkar Marathwada University,
Aurangabad
Advances in Data Structure & Algorithms
Dr.Kaveri Lad
Assistant Professor(MCA)
Department of Management Science
Dr.Babsaheb Ambedkar Marathwada University,
Auranagabad
Introduction to Data Structure
CONTENTS
Unit-V
Managing Input / Output Files in JAVA : streams, streams classes, Byte streams classes , reading and writing characters , bytes, Random Access Files
, Interactive I/p and o/p,
Reflection API- class identification, interface identification, parent class information and methods information.
• Array concept
• Types of an Array
• Representation of array
• Operations of Array
Unit - I Array Concept
What is an Array
An array is a finite(specific number) collection of similar elements stored in
adjacent memory Locations / stored in contiguous memory allocation .
Unit - I Array Concept
Types of an Array
• One-dimensional array.
• Two-dimensional array.
• Multidimensional array.
Unit - I Array Concept
One(Single) Dimensional Array
In single dimensional array, data will be store in following forms
Example-1
Example-2
Unit - I Array Concept
One(Single) Dimensional Array
Syntax : data-type < array name > [size]
Example - int Arr[5]
float Arr[12]
Integer Array
Float Array
Unit - I Array Concept
Operations One(Single) Dimensional Array
• Create
• traversal
• Search
• Insertion
• Deletion
• Sorting
• Merging
• Reversing
Unit - I Array Concept
Array Initialization
• Static way : Assign value to an array at the time of declaration of an Array.
• Dynamic way : Assign value to an array At the time of Execution .
Note : to Manipulate an single dimensional array , we have to use loop
concept.
Index value of an Array : starts with 0 and end with Size-1
If we try with –ve value it will print garbage value
Unit - I Array Concept
Double Dimensional Array
This array store data in matrix form .
Syntax : data-type <arrayname>[row][col]
Example -1
Example -2
Unit - I Array Concept
Unit - I Array Concept

Array Concepts and its Types with Examples.pptx

  • 1.
    Dr.Babasaheb Ambedkar MarathwadaUniversity, Aurangabad Advances in Data Structure & Algorithms Dr.Kaveri Lad Assistant Professor(MCA) Department of Management Science Dr.Babsaheb Ambedkar Marathwada University, Auranagabad Introduction to Data Structure
  • 2.
    CONTENTS Unit-V Managing Input /Output Files in JAVA : streams, streams classes, Byte streams classes , reading and writing characters , bytes, Random Access Files , Interactive I/p and o/p, Reflection API- class identification, interface identification, parent class information and methods information. • Array concept • Types of an Array • Representation of array • Operations of Array Unit - I Array Concept
  • 3.
    What is anArray An array is a finite(specific number) collection of similar elements stored in adjacent memory Locations / stored in contiguous memory allocation . Unit - I Array Concept
  • 4.
    Types of anArray • One-dimensional array. • Two-dimensional array. • Multidimensional array. Unit - I Array Concept
  • 5.
    One(Single) Dimensional Array Insingle dimensional array, data will be store in following forms Example-1 Example-2 Unit - I Array Concept
  • 6.
    One(Single) Dimensional Array Syntax: data-type < array name > [size] Example - int Arr[5] float Arr[12] Integer Array Float Array Unit - I Array Concept
  • 7.
    Operations One(Single) DimensionalArray • Create • traversal • Search • Insertion • Deletion • Sorting • Merging • Reversing Unit - I Array Concept
  • 8.
    Array Initialization • Staticway : Assign value to an array at the time of declaration of an Array. • Dynamic way : Assign value to an array At the time of Execution . Note : to Manipulate an single dimensional array , we have to use loop concept. Index value of an Array : starts with 0 and end with Size-1 If we try with –ve value it will print garbage value Unit - I Array Concept
  • 9.
    Double Dimensional Array Thisarray store data in matrix form . Syntax : data-type <arrayname>[row][col] Example -1 Example -2 Unit - I Array Concept
  • 10.
    Unit - IArray Concept