7th 10 Flashcards
this is the simplest and consists of a sequence of numbered steps or points
Step-form algorithm
one of the most convenient methods of checking the correctness of an algorithm or a section of code is to use a blank
Trace Table (this may be incorporated into the debugging portion of a compiler or it may be performed manually)
what are the two types of two decision constructs
if then
if then else
what are the repetition constructs
repeat loop
while loop
what are the defined life cycles
1) the need for a program is recognized
2) the requirements are analyzed
3) a possible solution is designed
4) the prototype is built and tested
5) the program is put into use, and finally
6) the program is maintained
software development life cycles
1) problem definition
2) problem analysis
3) algorithm developments
4) coding and documentation
5) test and debug
6) maintenance
WHAT ARE THREE STRATEGY FOR DESIGNING
ALGORITHMS?
Step 1: Investigation step
Step 2: Preliminary algorithm step
Step 3: Refining the algorithm step
What are the four categories of computer?
1) Supercomputers
2) Mainframe Computers
3) Minicomputers
4) Microcomputer
Algorithms show these three features
Sequence (also known as process)
Decision (also known as Selection)
Repetition (also known as iteration or looping)
different ways of stating an algorithm
- Step-Form
- Pseudocode
- Flowchart
- Nassi-Schneiderman