Lecture+08+-+Algorithms

Lecture+08+-+Algorithms - CS170Lecture7: Algorithms...

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

View Full Document Right Arrow Icon
CS 170 Lecture 7:  Algorithms Kristian Stout stouty@rci.rutgers.edu Office IN: Livingston Student Center, A lounge near “the rock” and the commuter lounge. Office Hours: TTH 5:30 – 6:30
Background image of page 1

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

View Full DocumentRight Arrow Icon
Algorithm A precise, systematic method for producing a  specified result An algorithm is a logical process by which a  problem can be solved or a decision made.  An algorithm is more abstract than a program  written in a programming language.  Examples: recipe, assembly instructions,  driving directions.
Background image of page 2
Programs vs Algorithm A program is an algorithm that has been  customized to solve a specific task under a  specific set of circumstances using a specific  language Algorithm is a general “approach”; program is  a specific method An algorithm can be adapted to any  environment 
Background image of page 3

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

View Full DocumentRight Arrow Icon
Program vs Algorithm (cont) Programming Language Formal language designed to express computer algorithms Precisely defined; no ambiguity Language used in algorithms  Natural language for people to understand (like English) Everybody should be able to understand easily Ambiguity is common. Carefully chose your words Should not be left open to interpretation. 
Background image of page 4
(aka Structures)
Background image of page 5

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

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

Page1 / 20

Lecture+08+-+Algorithms - CS170Lecture7: Algorithms...

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