jagomart
digital resources
picture1_Pseudo Code Pdf 197115 | 02 Item Download 2023-02-07 16-25-03


 134x       Filetype PDF       File size 1.09 MB       Source: www.cs.unc.edu


File: Pseudo Code Pdf 197115 | 02 Item Download 2023-02-07 16-25-03
1 pseudo code describe algorithms 2 asymptonc notanon discuss eciency 3 design techniques design algorithms the sor ng problem inser on sort true at ini aliza on maintained during each ...

icon picture PDF Filetype PDF | Posted on 07 Feb 2023 | 2 years ago
Partial capture of text on file.
             1.   Pseudo-code	–	describe	algorithms	
             2.   AsymptoNc	notaNon	–	discuss	efficiency	
             3.   Design	techniques	–	design	algorithms	
        The	sor*ng	problem	
          Inser*on	Sort	
                                                                  •    	True	at	Ini*aliza*on	
                                                                  •    	Maintained	during	each	iteraNon	of	the	loop	
                                                                  •    	It	and	termina*on	condi*on	implies	correctness		
                                                                                            Algorithm	design	technique:	
                                                                                                             Incremental	Design	
           You	should	know	about	loop	invariants	to	show	correctness	(of	loops)	
                   (Read	pages	18—20	of	the	text)	
    A	model	for	analyzing	running	*mes	
    The	Random	Access	Machine	(RAM)	model	[p	23-24]	
   Assume	instrucNons	commonly	found	on	most	real	computers	take	constant	Nme	
   per	instrucNon	
           A	model	for	analyzing	running	*mes	
        An	algorithm’s	running	Nme	depends	upon	input	size	and	input	value	
              •    Takes	more	Nme	to	sort	more	elements		
                     •   Usually,	size	is	the	number	of	elements	in	the	input	
                     •   SomeNmes,	(e.g.,	number	problems)	the	number	of	bits	
                         needed	
                     •   SomeNmes,	mul*ple	parameters	(e.g.,	graphs)	
              •    Primality	tesNng	–	trivial	for	even	numbers	
              •    [We’ll	see	that]	InserNon	sort	takes	least/	most	Nme	on	sorted/		
                   reverse-sorted	input	
The words contained in this file might help you see if this file matches what you are looking for:

...Pseudo code describe algorithms asymptonc notanon discuss eciency design techniques the sor ng problem inser on sort true at ini aliza maintained during each iteranon of loop it and termina condi implies correctness algorithm technique incremental you should know about invariants to show loops read pages text a model for analyzing running mes random access machine ram assume instrucnons commonly found most real computers take constant nme per instrucnon an s depends upon input size value takes more elements usually is number in somenmes e g problems bits needed mul ple parameters graphs primality tesnng trivial even numbers insernon least sorted reverse...

no reviews yet
Please Login to review.