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
Presentation

DataStructures

Rating
-
Sold
-
Pages
6
Uploaded on
07-11-2024
Written in
2024/2025

This is the presentation about DataStructure which gives introduction to datastructure which also includes arrays,stack and queue concept

Institution
Course

Content preview

DATASTRUCTURE
What is Data Structure?

A data structure is a storage that is used to store and organize data. It is a way of arranging data on a
computer so that it can be accessed and updated efficiently.




Linear Data Structure: Data structure in which data elements are arranged sequentially or linearly,
where each element is attached to its previous and next adjacent elements, is called a linear data
structure.

Example: Array, Stack, Queue, Linked List, etc.

Static Data Structure: Static data structure has a fixed memory size. It is easier to access the elements in
a static data structure.

Example: array.

Dynamic Data Structure: In dynamic data structure, the size is not fixed. It can be randomly updated
during the runtime which may be considered efficient concerning the memory (space) complexity of the
code.

Example: Queue, Stack, etc.

Non-Linear Data Structure: Data structures where data elements are not placed sequentially or linearly
are called non-linear data structures. In a non-linear data structure, we can’t traverse all the elements in
a single run only.

Examples: Trees and Graphs.

, ARRAYS
Arrays are defined as the collection of similar types of data items stored at contiguous memory
locations. It is one of the simplest data structures where each data element can be randomly accessed by
using its index number.



Representation of Array:




•Index starts with 0.

•The array's length is 10, which means we can store 10 elements.

•Each element in the array can be accessed via its index.




▪︎0 (zero-based indexing): ▪︎The first element of the array will be arr[0].

▪︎1 (one-based indexing): The first element of the array will be arr[1].

▪︎n (n - based indexing): The first element of the array can reside at any random index number.



In the above image, we have shown the memory allocation of an array arr of size 5.
The array follows a 0-based indexing approach. The base address of the array is 100
bytes. It is the address of arr[0]. Here, the size of the data type used is 4 bytes;
therefore, each element will take 4 bytes in the memory.

Written for

Institution
Course

Document information

Uploaded on
November 7, 2024
Number of pages
6
Written in
2024/2025
Type
PRESENTATION
Person
Unknown

Subjects

$8.59
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
ranjanamuthukumar

Get to know the seller

Seller avatar
ranjanamuthukumar Bishop Heber College
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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