Module 1 Flashcards
Memorization
It is a sequence of unambiguous instructions for solving a problem, i.e., for obtaining a required output for any legitimate input in a finite amount of time.
Algorithm
It is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output.
Algorithm
It is a sequence of computational steps that transform the input into the output.
Algorithm
What are the requirements of an algorithm
(FDCCE)
- Finiteness
- Definiteness
- Clearly specified input
- Clearly specified or expected output
- Effectiveness
True or False. An algorithm may only be represented in one single form, a sequence of steps.
False
(An algorithm can be represented in various forms. Recipes, processes, methods, etc.)
What are the steps involved in solving computational problems?
(PDSDCAIPD)
- Problem Definition
- Development of a Model
- Specification of an Algorithm
- Designing an Algorithm
- Checking the Correctness of an Algorithm
- Analysis of an Algorithm
- Implementation of an Algorithm
- Program Testing
- Documentation
This step states that before you start to work on a solution the developer or/and programmer must be able to understand fully the problem statement.
Problem Definition
How many elements do problem statements often have?
Three
What are the three elements of problem statements?
-The problem
- The method of solving the problem
- The purpose
It involves the definition of model objectives, conceptualization of the problem, translation into a computational model, and model testing, revision, and application.
Model Development
It is an iterative process, in which many models are derived, tested, and built upon until a model fitting the desired criteria is built.
Model Development
True or False. Subsequent modelling work may need to begin the search at a different place as the original model building began, rather than where it finished.
False
(Modelling work may need to begin at THE SAME PLACE)
All algorithms must satisfy which criteria? (Enumerate all 5)
(IODFE)
- Input
- Output
- Definiteness
- Finiteness
- Effectiveness
This algorithm criteria states that An algorithm has zero or more inputs, taken from a specified set of objects.
Input
(ZERO or more inputs)
This algorithm criteria states that Each step must be precisely defined; Each instruction is clear and unambiguous.
Definiteness
(precisely defined, clear and unambiguous)
This algorithm criteria states that The algorithm must terminate after a finite number of steps.
Finiteness
(finite number of steps)
This algorithm criteria states that An algorithm has one or more outputs, which have a specified relation to the inputs.
Output
(ONE or more outputs)
This algorithm criteria states that All operations to be performed must be sufficiently basic that they can be done exactly in finite length
Effectiveness
(finite length)