(i)(ii)
PARTB-(5x16=80marks)Writeanalgorithmto convertcharactero numericvalues'
Writeastring assignmentprocedurefor theworkspace/indextable11.(a)L2.(a)13.(a)method.Or(b)(i)Writeanalgorithmthat checksfor thelargestandsmallestentriesin anintegerarray.(8)(ii)Whystudyof datastructuresis alsonecessarilyastudyofthealgorithmthat controlthem?(8)(8)(8)writean(8)circular(8)(i)(ii)Howto usestack insolvingtowerofHanoiproblem andalgorithmto solve t?Writedown theinsertionanddeletionalgorithmforaqueue.
(b)
OrWhatisa doublylinkedlist?Writedownthedetailedalgorithmforinseptinganodeto the leftand deletinga nodefrom a doublylinkedlist.(16)(i)writedown analgorithmtoperform matrixmultiplicationwithmultilinkedstructures.(8)(ii)Explainvariouskindsof traversalsin abinarytreeandillustratethesamewith thefollowingexamples.(8)(b)(i)(ii)Writedownsystem.Explainthealgorithm.Oranalgorithmforallocatingstorageusingthebuddy(8)DFSandBFStraversalsin agraph andwritethe(8)
2
B2271
w w w . M a a n a v a N . c o m