How to create an algorithm: Difference between revisions
Jump to navigation
Jump to search
Rim Halaby (talk | contribs) |
Rim Halaby (talk | contribs) |
||
Line 2: | Line 2: | ||
An algorithm is a schematic drawing that helps organizing step by step approaches in a visually simplified way. An algorithm is formed by a set of boxes and lines that join them. | An algorithm is a schematic drawing that helps organizing step by step approaches in a visually simplified way. An algorithm is formed by a set of boxes and lines that join them. | ||
== | ==Create an Algorithm== | ||
===Introduction=== | ===Introduction=== | ||
* To begin an algorithm, you should start with the following code '''<nowiki>{{family tree/start}}</nowiki>''' and end it with '''<nowiki>{{family tree/end}}</nowiki>'''. | * To begin an algorithm, you should start with the following code '''<nowiki>{{family tree/start}}</nowiki>''' and end it with '''<nowiki>{{family tree/end}}</nowiki>'''. | ||
Line 29: | Line 29: | ||
** - will link two boxes placed horizontally next to each other | ** - will link two boxes placed horizontally next to each other | ||
** ^ will link bifurcate a line arising from a box into two branches. | ** ^ will link bifurcate a line arising from a box into two branches. | ||
==Step By Step== | |||
{| width="75%" style="border: solid 1px #aaaaff" cellpadding="4" cellspacing="1" | {| width="75%" style="border: solid 1px #aaaaff" cellpadding="4" cellspacing="1" |
Revision as of 17:21, 18 August 2013
Overview
An algorithm is a schematic drawing that helps organizing step by step approaches in a visually simplified way. An algorithm is formed by a set of boxes and lines that join them.
Create an Algorithm
Introduction
- To begin an algorithm, you should start with the following code {{family tree/start}} and end it with {{family tree/end}}.
- You can name an algorithm by starting with following: {{family tree/summary= Name of the algorithm}}
- The algorithm consists of boxes that occupy virtual rows:
Box 1 in Row 1 | |||||||||||||||||||||||
Box 2 in Row 2 | |||||||||||||||||||||||
Box 3 in Row 3 | Box 4 in Row 3 | ||||||||||||||||||||||
- Each row is represented by the following where each | | represents a space.:
{{Family tree | | | | | | | | | }}
- Each box is represented by the content that fills the space in | |, for example | A01 | will give:
A01 | |||||||
- In order to link the boxes you need to use symbols. The basic symbols that you will most commonly use are the following:
- ! will link two boxes placed vertically on top of each other
- - will link two boxes placed horizontally next to each other
- ^ will link bifurcate a line arising from a box into two branches.
Step By Step
Linking cells horizontally: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AAA | BBB | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Linking cells vertically: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AAA | BBB | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Step 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AAA | BBB | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Putting it together: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You type:
{{Family tree/start}} |
You get:
|