1 Array
1 Array
ALGORITHMS-1 (CS)
M.G.Noel A.S Fernando (PhD)
Professor
Head, Dept. of Information Systems Engineering, UCSC
Lecture 1
What is data structures?
What is data structures?
• Data Structure can be defined as the group of
data elements which provides an efficient
way of storing and organizing data in the
computer so that it can be used efficiently.
• Some examples of Data Structures are arrays,
Linked List, Stack, Queue, etc.
What is data structures?
• Data Structures are widely used in almost
every aspect of Computer Science
• i.e. Operating System, Compiler Design,
Artificial intelligence, Graphics and many
more.
Different types of Data Structures
Categories of data structure
• Data structures can be subdivided into two major types.
• Linear Data structure
• Non-Linear Data structure
Example:
An array of integers to store the integer numbers of all students in
a class.
An array of strings to store the names of all villagers in a village.
Basic Operations