Algorithm Analysis

Algorithm Analysis - CSC2100a Tutorial Algorithm Analysis...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC2100a Tutorial Algorithm Analysis Spring 2006/2007
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Outline • Algorithm Analysis • Space complexity • Time complexity • “Big Oh” • Mathematics Review • Different Growth Rates
Background image of page 2
Algorithm Analysis • There are many ways to solve a problem, using different programs. • For example, there are many file compression programs: WinZip , WinRar , etc. • How to compare different programs and find out which one is better? • Performance Analysis –Space comp
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Space complexity • The amount of memory that it needs to run to completion. • The space needed is the sum of following components. – Fixed space requirements (e.g. instructions, simple variables, constants) – Variable space requirements (e.g. array to store input)
Background image of page 4
• The amount of computer time that it needs to run to completion. • How to measure the time complexity of a program? • One way is to count number of steps for the
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 21

Algorithm Analysis - CSC2100a Tutorial Algorithm Analysis...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online