jagomart
digital resources
picture1_Pseudo Code Pdf 198581 | Pseudo Code Summary


 155x       Filetype PDF       File size 0.15 MB       Source: www3.nd.edu


File: Pseudo Code Pdf 198581 | Pseudo Code Summary
summary of pseudo code language constructions an algorithm is an ordered sequence of unambiguous and well defined instructions that performs some tasks pseudo code allows ones to focus on the ...

icon picture PDF Filetype PDF | Posted on 08 Feb 2023 | 2 years ago
Partial capture of text on file.
                 Summary of Pseudo-code Language Constructions 
       An algorithm is an ordered sequence of unambiguous and well-defined instructions that performs 
       some tasks.  Pseudo-code  allows  ones  to  focus  on  the  logic  of  the  algorithm  without  being 
       distracted  by  details  of  language  syntax.   At  the  same  time,  the  pseudo-code  needs  to  be 
       complete.   It  describes  the  entire  logic  of  the  algorithm  so  that  implementation  is  a  task  of 
       translating line by line into source code. 
       Three Categories of Algorithmic Operations 
       Three basic constructs for flow of control are sufficient to implement any “proper” algorithm. 
       1.  sequential operations (Sequence) - instructions are executed in order 
       2.  conditional operations (If-Then-Else) - a control structure that asks a true/false question and 
         then selects the next instruction based on the answer 
       3.  iterative (loop) operations (While) - a control structure that repeats the execution of a block 
         of instructions 
       Although these constructs are sufficient, it is often useful to include three more constructs:  
        
       4. Repeat-Until is a loop with a simple conditional test at the bottom.   
       5. Case is a multiway branch (decision) based on the value of an expression. Case is a 
       generalization of If-Then-Else.   
       6. For is a “counting” loop. 
       Pseudo-code Structure: 
       INPUT: 
       OUTPUT: 
       Step1: 
       Step2: 
       etc… 
       Computation/Assignment  
               set the value of "variable" to :"arithmetic expression" or  
               "variable" equals "expression" or  
               "variable" = "expression" 
       Input/Output 
               get "variable", "variable", ...  
               display "variable", "variable", ... 
       Conditional 
                                                 1 
        
                   if  "condition" then  
                               (subordinate) statement 1   
                                etc ...  
                   else  
                               (subordinate) statement 2  
                               etc ... 
       Iterative 
                   while "condition"   
                               (subordinate) statement 1  
                               (subordinate) statement 2 ... 
                   for "iteration bounds"   
                               (subordinate) statement 1  
                               (subordinate) statement 2 ... 
        
                                                 2 
        
The words contained in this file might help you see if this file matches what you are looking for:

...Summary of pseudo code language constructions an algorithm is ordered sequence unambiguous and well defined instructions that performs some tasks allows ones to focus on the logic without being distracted by details syntax at same time needs be complete it describes entire so implementation a task translating line into source three categories algorithmic operations basic constructs for flow control are sufficient implement any proper sequential executed in order conditional if then else structure asks true false question selects next instruction based answer iterative loop while repeats execution block although these often useful include more repeat until with simple test bottom case multiway branch decision value expression generalization counting input output step etc computation assignment set variable arithmetic or equals get display condition subordinate statement iteration bounds...

no reviews yet
Please Login to review.