SlideShare une entreprise Scribd logo
1  sur  68
Télécharger pour lire hors ligne
DRAKON Visual
Language
Tutorial. Part 1:
How to draw DRAKON flowcharts
Types of DRAKON diagrams
Primitive
Silhouette
Used for the most simple
algorithms
Recommended for all
other algorithms
Primitive
What does a primitive consist of?
What does a primitive consist of?
A vertical skewer
What does a primitive consist of?
The header
What does a primitive consist of?
The algorithm
What does a primitive consist of?
The “End” icon
“Action” icon
An “Action” icon
“Action” icon
an order to do
something
The skewer must be vertical
Wrong!
Wrong again
●
Use lines instead of arrows
●
Arrows create visual noise
In DRAKON,
the next icon is always below
Even worse
●
It is not allowed to break the skewer
“Insertion” icon
It is a reference
to an algorithm
that is defined elsewhere
“Insertion” icon
“If” icon
“If” icon
Contains a question
that can be answered
“yes” or “no”
The happy path goes straight
The happy path
is the most successful
and desirable route
The unlucky scenario goes to the right
The further to the right,
the worse it is
Good
Bad
Worst
Wrong
The happy path
is broken
Right
The happy path
is straight
Visual noise is bad
Too many angles
Horizontal joining
The problem is solved
Repetition is bad
Vertical joining
Removes repetition
Line intersections
are forbidden
Intersections kill readability
Silhouette
The recommended type of diagrams
What can silhouette do?
●
It can cleanly split the diagram into logical
parts
●
It can represent a finite automaton (state
machine)
●
It helps get rid of line intersections in complex
algorithms
What does a silhouette consist of?
The header
The branches
What does a branch consist of?
A header with
the branch name
What does a branch consist of?
The algorithm
of the branch
What does a branch consist of?
The address
of the next branch
Silhouette answers
the three questions of the king:
1. What is the name of the problem?
2. How many parts does the problem have?
3. What are the names of the parts?
1. What is the name of the problem?
2. How many problems does the problem have?
3. What are the names of the parts?
The leftmost branch is run first
Then follow the other branches
The rightmost branch goes last
There can be only one
“End” icon
on the DRAKON diagram
The order of branches is defined in the “Address” icons
The branches should by sorted left-to-right
When is it allowed to go to the left?
1. When some branches need to be repeated.
2. When the diagram represents a finite
automaton (state machine).
A branch can have several “Address” icons
The algorithm of such branch
decides which branch to run next
A direct jump from one branch to another is
forbidden
Icon “Select”
Contains a question:
●
that cannot be answered “yes” or “no”
●
that can have several answers
Icon “Select”
How to arrange the answers?
●
Following the principle “The further to the right, the
worse it is”
or
●
Following the principle “The further to the right, the
larger it is”
or
●
Following the principle “The further to the right, the
higher it is”
or...
The key thing is to sort the answers
The further to the right, the larger it is
Loops
Lift the weight while not tired
The body of this loop
is run at least once
Hungry?
If yes, then
eat a hamburger
start from the
beginning
If no, then leave
This loop is skipped if the condition is not met
The loop condition is inside the loop body
“For each” loop
There can be several exits from a loop
There can be only ONE ENTRANCE
into a loop
Wrong!
A second
entrance is
not allowed
Silhouette loop: some branches are run several times
Silhouette loop: some branches are run several times
Loop branches are marked
with black triangles
“Select” loop
Stepan Mitkin
stipan.mitkin@gmail.com
The diagrams on the slides were made with
DRAKON Editor
http://drakon-editor.sourceforge.net/
June 2013
End

Contenu connexe

Tendances

In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...
In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...
In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...
Bharat Chandra Sahu
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computers
Bảo Hoang
 

Tendances (20)

Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 
Chapter#8
Chapter#8Chapter#8
Chapter#8
 
Assembly language
Assembly language Assembly language
Assembly language
 
Instruction types
Instruction typesInstruction types
Instruction types
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructions
 
Introduction to intel 8086 part1
Introduction to intel 8086 part1Introduction to intel 8086 part1
Introduction to intel 8086 part1
 
In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...
In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...
In sight into wavelets from theory to practice , soman k.p. ,ramachandran k.i...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem
 
Binary and hex input/output (in 8086 assembuly langyage)
Binary and hex input/output (in 8086 assembuly langyage)Binary and hex input/output (in 8086 assembuly langyage)
Binary and hex input/output (in 8086 assembuly langyage)
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computers
 
Chapter11 addressing
Chapter11 addressingChapter11 addressing
Chapter11 addressing
 
Program control instructions
Program control instructionsProgram control instructions
Program control instructions
 
Enzymes for Engineers, Biologists, Physicists and Chemists
Enzymes for Engineers, Biologists, Physicists and ChemistsEnzymes for Engineers, Biologists, Physicists and Chemists
Enzymes for Engineers, Biologists, Physicists and Chemists
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
bubble sorting of an array in 8086 assembly language
bubble sorting of an array in 8086 assembly languagebubble sorting of an array in 8086 assembly language
bubble sorting of an array in 8086 assembly language
 
Flag registers (assembly language) with types and examples
Flag registers (assembly language) with types and examplesFlag registers (assembly language) with types and examples
Flag registers (assembly language) with types and examples
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 

Similaire à DRAKON Visual Language: Tutorial. Part 1

School inactionnightaurasma
School inactionnightaurasmaSchool inactionnightaurasma
School inactionnightaurasma
elliotel
 
Introduction to flowcharts and algorithms
Introduction to flowcharts and algorithmsIntroduction to flowcharts and algorithms
Introduction to flowcharts and algorithms
asrctw
 

Similaire à DRAKON Visual Language: Tutorial. Part 1 (9)

Drakon Visual Algorithms
Drakon Visual AlgorithmsDrakon Visual Algorithms
Drakon Visual Algorithms
 
ABISOLA CUBE upload
ABISOLA CUBE uploadABISOLA CUBE upload
ABISOLA CUBE upload
 
GRADE 6 ALGORITHM.pptx
GRADE 6 ALGORITHM.pptxGRADE 6 ALGORITHM.pptx
GRADE 6 ALGORITHM.pptx
 
School inactionnightaurasma
School inactionnightaurasmaSchool inactionnightaurasma
School inactionnightaurasma
 
Inkscape Beginner Tutorial: How to Make a Yoga Class Flyer
Inkscape Beginner Tutorial: How to Make a Yoga Class FlyerInkscape Beginner Tutorial: How to Make a Yoga Class Flyer
Inkscape Beginner Tutorial: How to Make a Yoga Class Flyer
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
 
Introduction to flowcharts and algorithms
Introduction to flowcharts and algorithmsIntroduction to flowcharts and algorithms
Introduction to flowcharts and algorithms
 
Your Agile Leadership Journey: Leading People-Managing Paradoxes - Agile Char...
Your Agile Leadership Journey: Leading People-Managing Paradoxes - Agile Char...Your Agile Leadership Journey: Leading People-Managing Paradoxes - Agile Char...
Your Agile Leadership Journey: Leading People-Managing Paradoxes - Agile Char...
 
Interm Progr
Interm ProgrInterm Progr
Interm Progr
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Dernier (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

DRAKON Visual Language: Tutorial. Part 1