Data Structures
Data Structures
Name =MobRe
Company = Apple
Price =40000
Ram = 8GB
Rom: = 6lGB
OS =iOS
Lalllching Date = 7th June 2020
Data :
Data are simply values or set of values.
Data Item : is a single unit of values.
1. Group Items : Data itmes those can divided into sub itmes.
Ex. Flil Name : Frst Name, ~dde Name. Last Name
Ati"ess : place, city. cistrict state, country
Date of Brth : Day. Month. Year
2. Elemenrty Items : Data items those can not be divided into sub items.
Ex. Age: 17
Mobile: 989xxxxxxx
Pil code : 442907
16
Age= 16
The term "information" is also used for data with given attributes.
Information means meanigful data
Age= -45
more attritbutes
Saml<sha Class:
City:
18
Gender:
: 14_/m
1L - _ ___.J Mobile No.
_/_2002
An algori tm is a finite step by step list of u ell define d instru ctions for
sol\ ing a partic ular problen1, First Part
. / 7 ~ame of the Algorit hm
. .
Eg. Add1t1on of two int numb ers / List of the variabl es
Let _!_and Bare two int numbe rs. Purpose of the Algorit hm
Jhjs algorit hm will calcul ate SUM of these two numbe rs.
Step 1. Start - - - - - - ~ Second Part
2. Read A and 8 it ,. 10 e • 20 Lisi of steps
3. Calculd te Sl,M a: A + 8 !)LJ~I • 10 • 20 Steps are executed one after
4. Displa~ SUM the other
5. Stop Data / values may assigmed to variables
by using read statem ent
Display statmen1s displayed result or
,,alue of the variabl e
Algorithimic notation
An algoritm is a finite step by step list of well defined instructions for
solving a particular problem, ~ First Part .
cOINII CIIIJ _ .,
I lftrr,-r..
_r __ ., J !"'
\I OOU( 4
l
ii) for loop
Form / Syntax
Repeat for K = R to S By T
[MODULE)
IEnd of for loop)
Herc
K is inde, \ a rib ale. (loop / Counter\ ariable)
Initial \alue of K is Rand
fi nal \'a lue is S.
T is increment.
1) Start
2) Repeat step 3rd for K = 1 to 5 by 1 ~
3) Display "Computer Science"
4) Stop