We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 35
aus
PARTICULARS OF THE EXPERIMENTS PERFORMED
} Name of Experiment ne shane cision [Remats|
i _ - a | a ——
[| - / | |
—— oo - T —T ata
|
ie
| ee —
+ — T
I] : _ - |
4 : ; |
| _Practeals— en eee] i
Aa acat C ' 49-07-22 ~
Matrix OPe rations
| . 16-01-22
7 Soting Al oxrthen ; eee \ |
4. | Linked Lis Cpesahoe. —
a a |
| |- |
{ |
|_|
| or -
\CERTIFICATE
Class _2YRccr7 Year 2022-1024
This is to certify that the work entered in this Journal is the work of
Shri /—Kumari _Sonalkumax Singh
of _Syitee TT division _ A Roll No. 415
Uni. Exam No. has satisfactorily completed the
required number of practical and worked for the 1st term / 2nd term /
both the terms of the year 2022 20 _22 in the college laboratory
as laid down by the university.
Head of the External Internal Examiner
Department Examiner Subject teacher
Department ofEXPERIMENTEXPERIMENT E No
Operations (ow | _
= =
i _ ji . 1
data items Stoxed ot ¢ sitigquows mepto: locaton:
A
Properties ot aang
deca type and _ceoriies Sau Si
[Linens letnstochine + Element axe axsanged i in tineax taShicn
Mechaing Axxo
g Data ty ancsay Nam Corxaycize 1s
exomole > int a csi;
{tenon Renuesentation of Fhrxay.
__| atarst=2 10,20,301 YO cote
|
——__| Hoy integer C2 bytes)
I o t. z
“lio | 20 | 30 40 50
rs
Too loz ‘ Tee 1080
Apy floc C4
Lloat -b $11, 2-2, 2.2, uy, oot;
<1 || o t 2 3 Y
Thr 22 33 4M SS
Co _
Teacher's Sign. :fox char Ct byte)
4 toy Zl
Chas efs1=2a','b's ‘c's Alle 2;
o oer 2 Le ; Ee
rayTbleld]é|
tee to top ey. OU tS
Axreq OPerations : -
\) Insextion
2) Display
1) forward
11) beck wees
3) sort
Y copy .
5) Deleon
5) 9
YD Search
D Linea Search
hy Binawy SeaschEXPERIMENT: (*] peel — |
Date
# include > ns
|| _Court: "Now Entex the Atay elements +\a}_ es
_foxlintizo; i> aril;
£
id d&ec)
cut<<\n Entered fray iss \n
foy Ciat iz of inn; [t*)
Coutecarij<< “A\t"%
i
Void xev0)
fox Unt teas np ;itt)
“f
temp2 QC iT;
i] = aln-i-1k
aCn-i-l] = temp;
£
Foz Lint 2 in; it)
routccati ye ty
Teacher's Sign. :void Sost
2 fox Cnt 205 ienjit)
F fox Cint jettlj ienjj
9 if Catil>arjq)
2 temp= aciT;
avtia= acjy;
ali = temp;
3 outa Araay ts Sorted \W"5
jt SeqsachC)
2 nt x; ,
Coure Ny Entes the Element yeu want to seach +;
Gin >> Kj
Foy (int 120) i< Size of (3 +1)
Z if(xs= acid)
cout Pos;
Fox (i= fos 5i>nly
Coutxe enter the axrayl Clements +\n";
fox Cint iso; int 5 i++)
,
limit of conn 22
Us
pce" enter th cariay 2 lements\N.
fox (ico ziznaj [++)
cin >>bris
_Cout<é" Pray | cleents ance s\n"
fox Cizo;i> ch; ve : continue CY fm) "D
2 white Coh== ‘Y's
B jet hs
fEntex the Axa £lanents
12
Do You_twlant to continue (Y/n)_¥
Selectton —Opton:
0
eee tp cone in
U
sdlection Open
Eatexed Asray is
ay I
py i921 38
Teacher's Sign. :Dre you want to cortinue CY SY ts
selec tion OPtans
4
21122
Do you want to continue CY YY
sélection options
Ber the. element you Wart +o SCasch : 24
element found at £
do want to Continue C4) ¥
Selection options
6
Enter the mumbex you want fo Seaxch > 2
Numbes found at 4
Do you wartt to Continue. Cum) ¥
Selection OpHons fr
Enter the Rociok ubhich you wort to delete :L
3% at-12 20
Do you want to conhyue CYMDY
Selection options
3
224-8 33 12 20
Do yu want 40 Comique. Cv/nd Y
sdection OPHons
a
entey the Imit of avsay 1: 3
entes the Avoqyt Clements?
23 56 81m
enters the. limit of axvaf2i4
entey the axvaye elements:
is
35
55
fovay + elements a
23
56
a1
Arg? Ceméts are +
New Array alex noel .
23 56 STIS US 35 5. Wow
Do you want +0 Continue C¥m)y Po
selection Prins “AX
yoEXPERIMENT: No. age no] =
— @) Mertasix am om Galea E
(Fi zoey: the 2D fray ia “onganized as sata ‘
be tepresented_as_the
eee ered oo
8 — Tuc dime “nsinnal_coxay (2D) alc Calle enactaixs —
ig ca col —~
muse | Co) Gi) G2) 09) a
Tow 2 | C0) Gia) Gp) yg).
[easel ep wi Ga Cp -
Syncte. Dee ax , Catee of rus Csize of column 13 —
| fox exge int ACSICS 1%
Rows 1 Tas 2 [
C2002. vf a = ___}
RouLO
| coxed Co.) Cu
—{ ,9) Co 5
Ti) column pajox orden :
Column0 v | Column 2 _ |
(Co) C20) | CoC) (2.1) a
es oe —
Teacher's Sign. :FR
Matyix Opegation
1) Insert
D) Display
Addition
4) Subtraction
5) Multiplication
8) Transpose.
enon OF Matain
e.g, heal
3b ae eal 1]
ee ceorined
' Subteaction OF Mébrix
32 = 3
tn? on af, Gil
aes EY
oO
wD) nia ee Matrix
Fetes] &[° 3)
(aney-Ba a) 2]
WwW) Transpose Of a mpitrix
69. p_ : fis
@a-[e2 7 -fr- [13]EXPERIMENT ; (=)
oS
H cide ——
4 include
b include Boe _
= Piet_alsIrs 1, i,j at cr, 92,02) rset;
void inate )
iz . -
Cou e We
Lcout> ci;
Cout<<" enter values of 1¢t matrix kn”;
fox (ize; i> aLidlits
3
eg y
Cout<<" entey Mou) Size \w" j _______________—
Cins> £25
Coté" enter Column Size \v"'s
| Cin >>.c24
Coubcc enter Values fox 2nd _‘matyix\n” 3 ____
Fey lizosi<02s i+t)
¢
~ Ppxlizo ised; J++)
fine bE eh =
Teacher's Sign. :a
P
Noid dépcy
z
CoutK<< "Values ¢.
i F 1st motyix\n”s
a ORI S41; itt) 7
toyCi=o; ject; j++)
2
Coutkeuk 3
Cose 6 mu ltiC 3 break}EXPERIMENT -
a )
ae CY eal
aoe meee ts ont yay
E whilecche=!y);
[defeats cout .
Heinduide >hs e
- - C t ee ( l es f e Oxk \ nn . |
__faxclieg, ix; itt)
Z
_Cin >ralil;
| cout205J--)
Teacher's Sign. :WFeacsm< ast)
Stempeacielt
ac itty = at iT;
acs7=temP;
Foo Cint 1=051<15 444)
2 ”
Coutecati tes "1"
Me
Cout<< TAWNS
forlizo; i aci+2I>
z temp = aceitids
acitI=acsy;
2 acid= ten;
oe Cnt Deo ;Lens J++)
CcourcatdT
Class Node
Publict
drt lat 3
| ede adders
(E;
|eede ahend, fire, Haat, + Prev $
Lint 1,1, d;
Joid ate C)_
e :
I head = piet-= neu! nodec)s
Coutxe"ontex the aumbex ct “tod
cin ns
fox Cisopicnsitt)
Coutxe" enter sine data" §
“Cino> Fixst = data }
pext= neu modes
Sixst paddr= nextj
| Fixer op videly = next;
[2 sirse => addy = NULL}
g - :
veil
| S$ sizd = head; —
—Cout> newt date 5
NOL adel = heals
endl = newt 5
?
Voiel nsatanye >
int pos;
Rode * Newi= new neder ); :
Coutk<'Entey the Position edhere you want fo entey cated
Cin>> Pos 5
Teo;
head 5 .
0 j1> newl date ;
Newt addy = fiyst daddy;
firsts addy = newt ;
nies
Void insectlagtC )
2 Fyst= heads
Mode €new3=new Yoder;
Couts<" Enter dataCat/ last Pesitiowt):";
Cim>> NewS deta 7
Mew3-> adda = NULL
ublle Civst Saddo> adder! = NueL >
& shst= Firstoaddy;
iPr —addy= news; Nets
void deleC)
Shak Hast heads
head = head Paddy;
delete fingr;
Void deleatanyc )
2 s ff
nt poss Stay alle
ithe eaigh the Positions";
Cimp> Poss
first = head
Ts05
while 73 <90S) Settee CESSES SECSSESES SEE
7EXPERIMENT be
aan ane
2 Dev= fiasts
fiyst= fivst? adda 5
itty
£
Prev 2adda = fivsteadda 3
delete fixct 4 n=--3
as
id _deleatt last?
2 ficct = head $
i l= u
2 Prey = fist}
finst= Liat S adix;
£
Pre > addr = ticstradde $
delete fixgt a=-3
£
voll weve D
oa peof j= n-Lj
fixst= head $
Coutec" datas" $
ae | while ¢ izem?
i=
Ci 2
feeceee [cts
whit Cied
| § fixct= fixst adda;
[tty
|_£
Gout Pinst— data breaky
cose Satany C) 5 break;
cose 6 WS atlast0)5 breaks
case ét deleC) sbreak;
case 1: deleatangOs brea
le atlas +05 b:
xi-C0); breaths
dlefautts couteW In yaliclty!” j break;
A i
pel % you want to continue Lyin ys
SuhileCch=="Y)5
getchc)
=
output:
Selecti-an options
Y tov Greatins
Display
3) for inserting values at headl Reston
‘Dfoy msexting values at amy Position
pps ae at last Position
lete. value fyom +i, .
Delete value from an ran
Delete value. From last position
D Reverse display
extr
1
enter the number of nodes 4
enter the dota 1 234
Der you Wart 4O Continge (vin)
* . 7
Jelec tion oPtions ye
x
pata 2 234
Do yor watt 40 Cottifve (yin) y
selection options
énter tne dete at the head HSH) Psion: s
Bo you ubyt to continue Yn ¥
Selection cottons
splay lo Exit \n"s
J j
+
oc Un EE
ar
icEXPERIMENT : (*) (rage no] J
ai
Pato: OS | 2 44
to__continuet Yin) +
Selecttan aptians
La
‘Enter the fosition where You unit to enter data
Enter data at 3 Position 6. .
Do_gpu_ wart to centimecymnry
$e lection oPtion
Dota: 5 1 2 6 Hf.
Do \ Hi
Selection options
+t to continue CY) ¥
election OpHans-
few
Data: 4
D Q vant to Continue Cia} ¥
electiav’ Option
Teacher's Sign. :Enter the Position 3
Do yeu Wont to contivuel yin) ¥
S€lec How OPHons
2
Detar 12 6 U7
Oe de want +o CentinueC Wp) y
Selection Options
3
De you want to Continue (Yn) y
Selection aptlone
Z
Datuz ( 9 ¢ 4
Do FOX want +, Continue Cyn) y
9Clection oP tionic
2
Detar H4 6 2 1
De dou Wont to Continge CWn y
Selec Hon Hons /
'0