Flashcards
Week 1: Intro to Algorithms & Python
Cards in this deck (4)
- 1Algorithm- Sequence of unambiguous instructions for solving a problem
- Obtain a required output for any legitimate input in a finite amount of time - 2Properties of an algorithm1. Input: zero or more
2. Output: one or more
3. Finiteness: must always terminate
4. Definiteness: each step well-defined
5. Effectiveness: each step can be performed by the agent - 3Computational problem- An infinite collection of questions, together with (at least) one answer for every question
- E.g. addition is a computational problem, and 17+4 is an instance/question of the computational problem - 4MethodsFunctions “attached” to a value
Information
- Description
- Computer Science (FIT1045: Algorithms & Programming Fundamentals in Python) Flashcards on Week 1: Intro to Algorithms & Python, created by Melina Mackey on 02/09/2019.
- Created by
- Melina Mackey
- Views
- 1
- Rating