Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

concepts of data Structure

Rating
-
Sold
-
Pages
20
Uploaded on
07-03-2024
Written in
2023/2024

ata structures are essential components that help organize and store data efficiently in computer memory. They provide a way to manage and manipulate data effectively, enabling faster access, insertion, and deletion operations. Common data structures include arrays, linked lists, stacks, queues, trees, and graphs , each serving specific purposes based on the requirements of the problem at hand. Understanding data structures is fundamental for designing efficient algorithms and optimizing software performance.

Show more Read less
Institution
Course

Content preview

Data Structures

Chapter 1


INTRODUCTION TO DS & ALGORITHM

Data Structure – Algorithm – Dynamic Memory Management - Performance
Analysis: Space Complexity, Time Complexity, Asymptotic Notations ( Big O,
Omega, Theta)



DATA STRUCTURE

What is Data?
Dictionary definition:

The quantities, characters or symbols on which operations are performed by a
computer, which may be stored and transmitted in the form of electrical signals and
recorded on magnetic, optical or mechanical recording media.

C=a+b

In the above statement, an operation is performed on both quantities. These data are
operated, stored and transmitted there by conforms to the conditions of being called
Data.

Information
When Data becomes Information?

 Data is a collection of characters such as  latipac fo aidni
 Information is : Capital of India.
 When meaning is extracted from data, data becomes information.
 In simple words, if data is in an order / in a systematic way.. it gets a structure.
 Such processed data becomes information.
 There by, to get information, data need to have a structure and for that one
need to know Data Structures.

,Data Structures
 It is an organized or systematic way of arranging and storing data.
 Systematic way of arranging data increases the efficiency of managing the
data.
 Efficiency in terms of time and space.
 Data structures provides means for managing large amounts of data.
 It also enables searching, sorting, inserting and deleting data.
 Data structures are categorized into two as
o Primitive Data Structures
o Non Primitive Data Structures

Primitive Data Structures

Primitive Data Structures are the most basic data structures available in all
programming languages such as int, float, character, Boolean, double, void etc

Non Primitive Data Structures

Non primitive data structures are complex data structures that are built using
primitive data structures such as arrays, linked lists, stacks, queues, trees, graphs
and hash tables.

Arrays: A collection of homogeneous elements stored in contiguous memory
locations.

Linked Lists: A collection of homogenous elements that are linked using pointers.

Stacks : A Collection of elements that follow First-in-First-Out (FIFO) mechanism.

Queues: A Collection of elements that follow Last-in-first-out (LIFO) mechanisms.

Trees: A hierarchical data structure consisting of nodes that are connected by edges.

Graphs: A non linear data structure consisting of nodes and edges.

Hashtable : A data structure that stores data in an associated manner using a hash
function.

Set: A collection of unique elements.

Maps: An abstract data type that contains key value pairs.

, Choice of Data Structure

Choice of data structure for a particular task depends on the type of data, amount of
data to be processed, operations to be performed on the data and the efficiency
requirements of the program.

♪ The idea of data structure is to reduce the space and time complexity of
tasks.

Why is Data Structures required?

Data Structures are required for the following reasons:

1. Data Search

Imagine, if there are 1 Million data (106) available and if an item needed to
searched, the entire (106) need to be searched. Every time a search occurs,
the whole bunch is searched, slowing down the search operation.

2. Processor Speed
Though the speed of the processor is high, if the data grows to 1 billion,
processor has its own speed limit. Therefore, the search operation is slow.
3. Too Many Parallel requests
When there are too many hits parallelly from the clients looking for data, the
operation is slow.

To resolve, the above constraints Data Structures are needed.

Data are organized in a structured way based on the type of data and operations to
be performed on the data.

ALGORITHM
Algorithm is a step by step procedure.

It provides set of instructions for a methodical implementation of ideas in a particular
order.

Algorithm is independent of any programming languages. It can be implemented in
any programming language.

Why an algorithm needs to be analyzed?

Written for

Course

Document information

Uploaded on
March 7, 2024
Number of pages
20
Written in
2023/2024
Type
Class notes
Professor(s)
Sudha
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
manoj2

Get to know the seller

Seller avatar
manoj2 HICET
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions