SlideShare ist ein Scribd-Unternehmen logo
1 von 68
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Integrated circuit (IC).pptx
Integrated circuit (IC).pptxIntegrated circuit (IC).pptx
Integrated circuit (IC).pptx
 
9 semiconductor memory
9 semiconductor memory9 semiconductor memory
9 semiconductor memory
 
ARM
ARMARM
ARM
 
Essential of VLSI
Essential of VLSIEssential of VLSI
Essential of VLSI
 
Regular buffer v/s Clock buffer
Regular buffer v/s Clock bufferRegular buffer v/s Clock buffer
Regular buffer v/s Clock buffer
 
AMD processors
AMD processorsAMD processors
AMD processors
 
ATE boards designs
ATE boards designsATE boards designs
ATE boards designs
 
ZERO WIRE LOAD MODEL.pptx
ZERO WIRE LOAD MODEL.pptxZERO WIRE LOAD MODEL.pptx
ZERO WIRE LOAD MODEL.pptx
 
Three dimensional integrated circuit
Three dimensional integrated circuitThree dimensional integrated circuit
Three dimensional integrated circuit
 
CMOS analog IC Design presentation.pptx
CMOS analog IC Design presentation.pptxCMOS analog IC Design presentation.pptx
CMOS analog IC Design presentation.pptx
 
Pcb 101
Pcb 101Pcb 101
Pcb 101
 
Matching concept in Microelectronics
Matching concept in MicroelectronicsMatching concept in Microelectronics
Matching concept in Microelectronics
 
Chiplets in Data Centers
Chiplets in Data CentersChiplets in Data Centers
Chiplets in Data Centers
 
Proteus Circuits Design and Simulation - Examples and Projects
Proteus Circuits Design and Simulation - Examples and ProjectsProteus Circuits Design and Simulation - Examples and Projects
Proteus Circuits Design and Simulation - Examples and Projects
 
Vlsi interview questions compilation
Vlsi interview questions compilationVlsi interview questions compilation
Vlsi interview questions compilation
 
SOC design
SOC design SOC design
SOC design
 
Analog vlsi
Analog vlsiAnalog vlsi
Analog vlsi
 
Floor plan & Power Plan
Floor plan & Power Plan Floor plan & Power Plan
Floor plan & Power Plan
 
Floorplanning in physical design
Floorplanning in physical designFloorplanning in physical design
Floorplanning in physical design
 
Second order effects
Second order effectsSecond order effects
Second order effects
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
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
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
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
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

DRAKON Visual Language: Tutorial. Part 1