ALGORITHM

ALGORITHM

To solve any problem on a computer, we need to analyze and understand the nature of the problem we plan the input and apply the required methods step by step to get the desired result ” this step by step procedure to solve any logic and mathematical problem in called algorithm “

sequential statements writer in simple english represents the solution of a problem in termed as an ” ALGORITHM”

THE STEP BY STEP PROCEDURE TO SOLVE ANY LOGIC AND MATHEMATICAL PROBLEM IS CALL ” ALGORITHM ” DOES NOT FOLLOW ANY PARTICULAR RULES AND REGULATION BUT IT JUST REPRESENTS THE THE SOLUTION OF A PROBLEM IN A SIMPLER WAY.

RULES FOR WRITING :

  • IT SHOULD WRITTEN IN ENGLISH LIKE LANGUAGED .
  • IT SHOULD WRITTEN AN A SIMPLE AND PRECISE MANNER SO THAT EVERYONE CAN UNDERSTAND IT
  • AN INPUT IS REQUIRE
  • EACH STEP SHOULD BE WRITTE IN A SEQUENTIAL MANNER
  • ONE CAN INCLUDE VARIABLES AND DEFINE MATHEMATICAL EXPRESSION TO CALCULATE THE RESULTS
  • STATEMENT THAT ARE OF SIMILAR TYPE SHOULD BE COMBIN TO AVOID A LENGTH CODE.
  • EACH INSTRUCTION SHOULD BE EXECUTE WITHIN A REASONABLE TIME FRAME .
  • TO ENSURE THAT AN ALGORITHM PRODUCES THE EXPECTED OUTPUT IT SHOULD BE CHECK USING SAMPLE VALUES.

EXAMPLE

ALGORITHM TO PACK YOUR SCHOOL BAG .

  • STEP : OPEN THE BAG.
  • STEP2: TAKE OUT YOUR SCHOOL DIARY
  • STEP3: SEE THE TIME TABLE
  • STEP4: GO TO YOUR BOOKSHEET
  • STEP5: TAKE OUT THE BOOKS AND NOTEBOOK
  • STEP6: KEEP THEM IN THE BAG
  • STEP7: CLOSE THE BAG.

CHARACTERISTICS OF AN ALGORITHM

A GOOD ALGORITHM SHOULD POSSES THE FOLLOWING FEATURES:-

INPUT : AN ALGORITHM ACCEPT AN INPUT

GENERALITY: AN ALGORITHM WORKS AN A SET OF INPUTS

DEFINITINESS: EACH INSTRUCTION SHOULD BE WRITTE IN A SIMPLE AND PRECISE MANNERS SO THAT ANYONE CAN UNDERSTAND IT.

UNIQUENESS: EACH STEP IN AN ALGORITHM SHOULD BE UNIQUELY IDENTIFIE AND AN OUTPUT OF EACH STEP SHOULD DEPEND ON THE PREVIOUS STEP.

FINITENESS: IT SHOULD INVOLVE FINITE NUMBERS OF STEP TO REACH A SOLUTION

INPUT : ALTER THE INSTRUCTOR ONE EXECUTED THE USER MUST GET THE DESIRED RESULTS.

IMPORTANCE OF EXCEL

THANK YOU ,KEEEP SMILING

If you want to know more about computer science topics , kindly visit our site regularly.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *