FINAL_Algorithm_pres.pptx
Document Details
Uploaded by Deleted User
Tags
Full Transcript
Algorithms Algorithm originally referred to any computation performed via a set of rules applied to numbers written in decimal form word is derived from the phonetic pronunciation of the last name of Abu Ja'far Mohammed ibn Musa al-Khowarizmi, who was an Arabic mathematician who inven...
Algorithms Algorithm originally referred to any computation performed via a set of rules applied to numbers written in decimal form word is derived from the phonetic pronunciation of the last name of Abu Ja'far Mohammed ibn Musa al-Khowarizmi, who was an Arabic mathematician who invented a set of rules for performing the four basic arithmetic operations is a step-by-step procedure to solve a given problem A procedure is a finite sequence of well- defined instructions, each of which can be mechanically carried out in a finite amount Basic Algorithm Concept Inputs and outputs should be defined precisely. Steps in making Each steps in algorithm should be clear and unambiguous. good algorithm Algorithm should be most effective among many different ways to solve a problem. An algorithm shouldn't have computer code. Instead, the algorithm should be written in such a way that, it can be used in similar programming languages. Pseudocode is an artificial and informal language that helps develop algorithms. It is useful in developing algorithms that will be later converted into C language programming. It is similar to English statements and not executed on computers. Flowchart Flowchart is a tool developed in the computer industry, for showing the steps involved in a process. A flowchart is a diagram made up of boxes, diamonds and other shapes, connected by arrows - each shape represents a step in the process, and the arrows show the order in which they occur. Flowchartin g Basic Symbols General Rules for flowcharting Flowchart symbols have an entry point on Generally, a flowchart the top of the symbol The Decision symbol will flow from top to All boxes of the with no other entry has two exit points; bottom. However, an flowchart are points. The exit point these can be on the upward flow can be connected with Arrows. for all flowchart sides or the bottom shown as long as it (Not lines) symbols is on the and one side. does not exceed 3 bottom except for the symbols. Decision symbol. Subroutines and All flow charts start Connectors are used to Interrupt programs with a Terminal or All flowcharts end with connect breaks in the have their own and Predefined Process (for a terminal. flowchart. independent interrupt programs or flowcharts. subroutines) symbol.