Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views1 page

Introduction To Data Structures

PROVIDES AN INTRODUCTION TO DATA STRUCTURES IN COMPUTER SCIENCE

Uploaded by

saranyajithin333
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Introduction To Data Structures

PROVIDES AN INTRODUCTION TO DATA STRUCTURES IN COMPUTER SCIENCE

Uploaded by

saranyajithin333
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Introduction to Data Structures

What are Data Structures?


A Data Structure is a way of organizing and storing data so that it can be used efficiently.

Types of Data Structures


1. Linear Data Structures: Arrays, Linked Lists, Stacks, Queues. 2. Non-Linear Data Structures:
Trees, Graphs.

Arrays
An array is a collection of elements stored in contiguous memory locations. Example: int arr[5] =
{1,2,3,4,5};

Stacks & Queues


Stack: Follows LIFO (Last In First Out). Queue: Follows FIFO (First In First Out).

Trees & Graphs


Tree: Hierarchical data structure with a root node. Graph: Collection of nodes connected by edges.

Sample Questions
1. Define Data Structure. 2. Differentiate between linear and non-linear data structures. 3. What is
an array? Give an example. 4. Explain LIFO and FIFO with examples.

You might also like