Introduction to Algorithms

Descrição

FlashCards sobre Introduction to Algorithms, criado por Maribel Angeles em 17-06-2014.
Maribel Angeles
FlashCards por Maribel Angeles, atualizado more than 1 year ago
Maribel Angeles
Criado por Maribel Angeles mais de 11 anos atrás
339
0

Resumo de Recurso

Questão Responda
Algorithm? Set of instructions in specific order leading to a result.
What are the main characteristics of an algorithm? 1. Precision. Steps are clearly defined, logical and ordered. 2. Uniqueness – each step is unique and the result depends of the inputs. 3. Finiteness – has a finite number of instructions
What are the stages of an algorithm? 1. Inputs (initial state, initial conditions) 2. Process (when all the conditions and activities are done) 3. Outputs (final state, when we have a result)
How can we represent an algorithm? 1. Pseudocode - write the instructions in natural language (with words). 2. Flowcharts – Graphical representation of an algorithm. 3. Code - instructions for computers.