algorithm

12
ALGORITHM ASSIGNMENT HELP

Upload: stevejohnson

Post on 17-Aug-2015

232 views

Category:

Documents


0 download

DESCRIPTION

Algorithm is a step wise process to give accurate output form the received input.

TRANSCRIPT

ALGORITHM ASSIGNMENT HELP CONTENTS 1. Defnition 2. Major subjets !. S"e#tere$ to%is &. C#assifation o' A#(orit") *.S+)bo#s use$ ,.Reasons 'or stu$+DE-INITIONA#(orit") an be $efne$ in se.era# /a+s1.It is a set o' ru#es t"at (i.es a %artiu#ar out%ut.2.A 'or)u#a t"at is re0uire$ 'or so#.in( a %rob#e).!.A s)a## %roe$ure t"at (i.es a %artiu#ar resu#t.&.Se0uene o' e1%#iit instrution. S234ECT THAT HA5E ALGORITHM AS THE MAIN TOPICMat"e)atisP"+sisCo)%uter sieneALGORITHM 2SED IN COMP2TERIn%ut (i.en6%rob#e)7Proessin(6 ste%/ise )et"o$ 'or so#.in( t"e (i.en %rob#e)7A#(orit")Out%ut6so#ution7THREE MAIN PARADIGMSIMPORTANT TOPIC ROO-ED 2NDER ALGORITHM Gra%" A#(orit")O%ti)i8ation A#(orit")Co)binatoria# A#(orit")Gra%" Dra/in(Net/or9 T"eor+Routin( 'or (ra%"Se0uene sortin(Database a#(orit")O%eratin( s+ste) a#(orit")Distribute$ s+ste) a#(orit")Nu)ber t"eoreti a#(orit")CLASSI-ICATION O- ALGORITHMDi.i$e an$ on0uerDerease an$ on0uerTrans'or) an$ on0uerGree$+ A#(orit")3a9tra9in( A#(orit"):D+na)i %ro(ra))in(3rute 'ore3ran" an$ 3oun$ A#(orit")Ran$o)i8e$ A#(orit")IMPORTANT S;M3OLS 2SED IN ALGORITHM 1. T"eta 6 7= It s+)bo#i8es t"e bestase runti)e o' an a#(orit").IMPORTANCE O- ST2D;ING ALGORITHMIt "a.e an i)%ortant ro#e in $esi(nin( a## t"e te"no#o(ia# $e.ie.It sets u% t"e "a##en(e to o)%#ete t"e (i.en tas9.He#%s in $e.e#o%)ent o' %attern reo(nition s9i##.De.e#o% ana#+tia# s9i##s to o)%are t/o %rob#e) an$ (et aurate so#ution.startstopS = 12 Enterpis p evenIs p primeIs p< 5p = p + 2 s = s - 2p = p +1s= s-1IsS= 0OutputpYesYesYesNoNoNoNoYesTO GET MORE IN-ORMATION 5ISIT= "tt%=??///.)+assi(n)ent"e#%.net?a#(orit")@assi(n)ent@"e#%.%"%