Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 71 - 2625 PortGPt V2.1
P. 71

    So, to find the meaning of a particular word in a dictionary, you need to follow a set of steps.
                     Similarly, before writing a program for a given problem, it is important to define a set of
                     steps which need to be followed to solve the problem successfully. This sequence of the set
                     of steps is called an algorithm.

                                              Coding fact

                       The first computer game 'Spacewar' was created in 1962, by MIT programmer Steve Russell and

                       his team.

                     ALGORITHM

                     An algorithm is a set of steps that must be followed to solve a problem.

                     Characteristics of an algorithm
                        Each step of an algorithm should be understandable.
                        An algorithm must have zero or more than zero well-defined input and one or more
                         than one well-defined output

                        Algorithms must terminate after a finite number of steps.
                        Algorithm must be language-independent.

                     Advantages of an algorithm
                        Representation of  solution of a given problem in a step by step manner.

                        Follows a definite procedure.
                        Easy to understand.

                                              Coding fact

                       Ada Lovelace created and published the first algorithm for execution  on a  machine.

                       Coding          uiz    01

                                                                                                          Subject Enrichment
                        State whether the following statements are true (T) or false (F).

                        a.  In a dictionary words and phrases are listed in an alphabetical

                            order with their meanings.

                        b.  Algorithm is a set of steps which need to be followed to solve a problem.

                                                                                           Algorithms with Block Coding  69

| 66 67 68 69 70 71 72 73 74 75 76 |