Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Algorithms - What are they? , how do you write them?

Beschreibung

Der Nutzer hat seine Fachbereichs-Information gelöscht. Notiz am Algorithms - What are they? , how do you write them?, erstellt von Gelöschter Nutzer am 14/11/2016.
Gelöschter Nutzer
Notiz von Gelöschter Nutzer, aktualisiert more than 1 year ago Mehr Weniger
Oliver Faragher
Erstellt von Oliver Faragher vor mehr als 8 Jahre
Oliver Faragher
Kopiert von Oliver Faragher vor mehr als 8 Jahre
309
0
1 2 3 4 5 (0)

Zusammenfassung der Ressource

Seite 1

What are algorithms?Algorithms are representations of how to solve problems. These problems can be in code or in everyday life. For instance you could write an algorithm on how to brush your teeth. In fact you probably, without even knowing it, mentally write hundreds of algorithms every day. How can algorithms be written?Algorithms can be written as both flowcharts and pseudocode. FlowchartsFlowcharts are diagrammatic representations of steps taken to solve a problem. They use various shapes to represent different things.The shapes are:Rhombus = decisionParallelogram = Output or input (information going out or in)Rectangle = Process (somthing being done)Rectangular circle = Start / stopLines with arrows indicate the direction of flow (in which order things are done).This is an example of a flowchart

Seite 2

What is pseudocode?Pseudocode is a written representation of an algorithm using various code like terms but remember pseudocode is not actual code. These are the pseudocode terms:OUPUT: showing something on the screen or electronic device - usually requiring an input afterwardsINPUT: something that the user puts into the programSTORE: a process that stores data in the programIF: represents a condition e.g if colour = redTHEN: Showing what to do if the condition is trueELSE: showing what to do if the condition is falseHere is an exampleOUPUT: "How are you?"INPUT: User inputs how they areSTORE: Store users input in answer variable IF: answer = fine THEN OUTPUT: "That's good"ELSE OUPUT: "You need to go to a doctor"

Zusammenfassung anzeigen Zusammenfassung ausblenden

0 Kommentare

There are no comments, be the first and leave one below:

ähnlicher Inhalt

Epochen und Literaturströmungen_1
barbara91
Mitose
Cornelius Ges
Deutsch-Abitur-Basiswissen für Gedichts- & Lektürenvergleich
danastone
Thermodynamik I/II
K G
1.2 Die Entwicklung der modernen Psychologie
achdrewes
Stilmittel mit Wirkung & Beispiel
Antonia C
MVB ASVG B-KUVG GSVG
Bianca Guggenberger
METH STADA SS 2019
Caroline Hannah
Vetie - AVO 2018
Fioras Hu
Vetie Pharma 2019
Lea Schmidt