SlideShare une entreprise Scribd logo
Explication
1-12-2020
Rappel
• La minimisation d’un automate fini déterministe
• La minimisation consiste à retrouver l’automate le plus simple qui
reconnait un langage.
• L’analyse lexicale  la reconnaissance des unités lexicales.
• 1) retrouver l’expression régulière de L sur V.
• 2) A partir du e(L) retrouver l’AFN qui engendre L.
• 3) A partir d’un AFN retrouver un AFDM ( AFDM il faut passer par
ADF)
Correction exercice I - AFDM
A B C
Bilan 1 I I II
a I II II
b I I II
Bilan 2 I III II
Le nombre de classe est égale au nombre des états  l’automate est déjà minimal
Correction exercice II –
Minimisation
qo q1 q2 q3
Bilan 1 II I II I
a I II I II
b I II I II
Bilan 2 II I II I
Bilan I  Bilan 2 !
II I
a,b
a,b
(a+b)*
Matrice de transition
• Retrouver l’analyseur lexical du langage binaire des mots qui commencent
par 1.
• 1) e(L) : 1.(1+0)*
• 2) AFN
• 3) AFDM
• L’automate est déjà minimal
q0 q1
1
1,0
q0 Q1
Bilan 1 I II
1 II II
0 Ensemble vide II
Bilan 2 I II
Implémentation de l’analyseur lexical
• 4) matrice de transition
q0 q1
1
1,0
0 1
q0
q1
L’état initial
o/ q1
q1 q1
1000
M[q0][1]=q1
M[q1][0]=q1
M[q1][0]=q1
M[q1][0]=q1
Q1 un état final  le
mot est reconnu.
Implémentation de l’analyseur lexical
• 4) matrice de transition
0 1
1
1,0
0 1
0
1
L’état initial
-1 1
1 1
1000
M[0][1]=1
M[1][0]=1
M[1][0]=1
M[1][0]=1
1 un état final  le
mot est reconnu.
Toujours l’ensemble vide on le remplace par -1
Exercice
• Donner la matrice de transition pour le langage L des mots binaires
qui acceptent la division sur 2. (1+0)*0
q0 q1
0
1,0
0 1
{q0} {q0,q1} {q0}
{q0,q1} {q0,q1} {q0}
q0 q0,q1
0
1
0
1
Question – correction q0 q1
0
1
0
1
q0 q1
Bilan 1 I II
0 II II
1 I I
Bilan 2 I II
0 1
0
1
0
1
0 1
1 0
1 0
0
1
Structure de code pour l’analyseur lexicale
• 1) fonction de saisie de matrice
• 2) fonction de saisie de mot ( un tableau)
• 3) fonction trace qui permet de retrouver la trace d’un mot
• 4) fonction reconnaissance qui teste est ce que la trace est un état
final ou non.

Contenu connexe

En vedette

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

En vedette (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Explication systeme d exploitation-11-12.pptx

  • 2. Rappel • La minimisation d’un automate fini déterministe • La minimisation consiste à retrouver l’automate le plus simple qui reconnait un langage. • L’analyse lexicale  la reconnaissance des unités lexicales. • 1) retrouver l’expression régulière de L sur V. • 2) A partir du e(L) retrouver l’AFN qui engendre L. • 3) A partir d’un AFN retrouver un AFDM ( AFDM il faut passer par ADF)
  • 3. Correction exercice I - AFDM A B C Bilan 1 I I II a I II II b I I II Bilan 2 I III II Le nombre de classe est égale au nombre des états  l’automate est déjà minimal
  • 4. Correction exercice II – Minimisation qo q1 q2 q3 Bilan 1 II I II I a I II I II b I II I II Bilan 2 II I II I Bilan I  Bilan 2 ! II I a,b a,b (a+b)*
  • 5. Matrice de transition • Retrouver l’analyseur lexical du langage binaire des mots qui commencent par 1. • 1) e(L) : 1.(1+0)* • 2) AFN • 3) AFDM • L’automate est déjà minimal q0 q1 1 1,0 q0 Q1 Bilan 1 I II 1 II II 0 Ensemble vide II Bilan 2 I II
  • 6. Implémentation de l’analyseur lexical • 4) matrice de transition q0 q1 1 1,0 0 1 q0 q1 L’état initial o/ q1 q1 q1 1000 M[q0][1]=q1 M[q1][0]=q1 M[q1][0]=q1 M[q1][0]=q1 Q1 un état final  le mot est reconnu.
  • 7. Implémentation de l’analyseur lexical • 4) matrice de transition 0 1 1 1,0 0 1 0 1 L’état initial -1 1 1 1 1000 M[0][1]=1 M[1][0]=1 M[1][0]=1 M[1][0]=1 1 un état final  le mot est reconnu. Toujours l’ensemble vide on le remplace par -1
  • 8. Exercice • Donner la matrice de transition pour le langage L des mots binaires qui acceptent la division sur 2. (1+0)*0 q0 q1 0 1,0 0 1 {q0} {q0,q1} {q0} {q0,q1} {q0,q1} {q0} q0 q0,q1 0 1 0 1
  • 9. Question – correction q0 q1 0 1 0 1 q0 q1 Bilan 1 I II 0 II II 1 I I Bilan 2 I II 0 1 0 1 0 1 0 1 1 0 1 0 0 1
  • 10. Structure de code pour l’analyseur lexicale • 1) fonction de saisie de matrice • 2) fonction de saisie de mot ( un tableau) • 3) fonction trace qui permet de retrouver la trace d’un mot • 4) fonction reconnaissance qui teste est ce que la trace est un état final ou non.